FunctionThe display ipv6 routing-table command displays information about an IPv6 routing table. Show Formatdisplay ipv6 routing-table [ vpn-instance vpn-instance-name ] [ verbose | brief ] display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address [ prefix-length ] [ longer-match ] [ verbose | brief ] display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address1 [ prefix-length2 ] ipv6-address2 prefix-length2 [ verbose | brief ] display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl { acl6-number | acl6-name } [ verbose | brief ] display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-prefix ipv6-prefix-name [ verbose | brief ] Parameters
Default Level1: Monitoring level Usage GuidelinesIf the verbose keyword is not specified, the command output includes the destination address, prefix length, protocol type, preference, cost, next hop, outbound interface, tunnel ID, flag, and status of a route. A recursive route is counted as one route regardless of how many outbound interfaces and next hops the route finds. Example# Display brief information about the current IPv6 routing table. <HUAWEI> display ipv6 routing-table
Routing Table : Public
Destinations : 4 Routes : 4
Destination : ::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : FC00:0:0:112:: PrefixLength : 64
NextHop : FC00:0:0:112::2 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D
Destination : FC00:0:0:112::2 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D
Destination : FE80:: PrefixLength : 10
NextHop : :: Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : NULL0 Flags : D
Table 6-101 Description of the display ipv6 routing-table command output
# Display detailed information about the IPv6 routing table. <HUAWEI> display ipv6 routing-table verbose Routing Table : Public Destinations : 2 Routes : 2 Destination : ::1 PrefixLength : 128 NextHop : ::1 Preference : 0 Neighbour : :: ProcessID : 0 Label : NULL Protocol : Direct State : Active NoAdv Cost : 0 Entry ID : 1 EntryFlags : 0x80010050 Reference Cnt: 1 Tag : 0 Priority : high Age : 84410sec IndirectID : 0x0 RelayNextHop : :: TunnelID : 0x0 Interface : InLoopBack0 Flags : D Destination : FC00:0:0:1::1 PrefixLength : 128 NextHop : FC00:0:0:2::2 Preference : 60 Neighbour : :: ProcessID : 0 Label : NULL Protocol : Static State : Active Adv Relied Cost : 0 Entry ID : 2 EntryFlags : 0x80020140 Reference Cnt: 1 Tag : 0 Priority : high Age : 79036sec IndirectID : 0x80000001 RelayNextHop : :: TunnelID : 0x0 Interface : NULL0 Flags : RD Table 6-102 Description of the display ipv6 routing-table verbose command output
# Display brief information about the active routes that match ACL6 2000. <HUAWEI> display ipv6 routing-table acl 2000
Routes Matched by Access list 2000 :
Summary Count : 2
Destination : ::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : FC00:0:0:111:: PrefixLength : 64
NextHop : FC00:0:0:111::2 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D # Display brief information about the routes with the specified IPv6 destination address. <HUAWEI> display ipv6 routing-table fc00:0:0:111::1 64
Routing Table :Public
Summary Count : 1
Destination : FC00:0:0:111:: PrefixLength : 64
NextHop : FC00:0:0:111::2 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D
# Display the routes within the specified IPv6 address range. <HUAWEI> display ipv6 routing-table fc00:0:0:111::1 64 fc00:0:0:111::2 128
Routing Table :
Summary Count : 2
Destination : FC00:0:0:111:: PrefixLength : 64
NextHop : FC00:0:0:111::2 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D
Destination : FC00:0:0:111::2 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D # Display brief information about the active routes that match IPv6 prefix list abc2. <HUAWEI> display ipv6 routing-table ipv6-prefix abc2
Routes Matched by Prefix-list abc2 :
Summary Count: 3
Destination : ::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : FC00:0:0:112:: PrefixLength : 64
NextHop : FC00:0:0:112::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif20 Flags : D
Destination : FC00:0:0:112::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif20 Flags : D
How to IP route IPv6?To configure a basic IPv6 static route, perform these steps.. Enter global configuration mode. device# configure terminal.. Designate the route destination as an IPv6 address in hexadecimal with 16-bit values between colons, as specified in RFC 2373, and include the address prefix length preceded by a slash.. Does IPv6 have a routing table?The IPv6 Routing Table displays the active routes in the system. It includes a combination of connected routes, static routes, and any routes established through the dynamic routing protocols (i.e. RIP and OSPF). This table applies to IPv6 routes; for IPv4 route data, see Viewing Routing Table.
How does routing work with IPv6?Routing in IPv6 is almost identical to IPv4 routing under CIDR. The only difference is the addresses are 128-bit IPv6 addresses instead of 32-bit IPv4 addresses. With very straightforward extensions, all of IPv4's routing algorithms, such as OSPF, RIP, IDRP, IS-IS, can be used to route IPv6.
Which command will only display the IPv6 static routes in the IPv6 routing table?Explanation: To display only the host routes within the IPv6 routing table, use the show ipv6 route local Cisco IOS command.
|