show ipv6 route

This command displays the IPv6 routing table The ipv6-addressspecifies a specific IPv6 address for which the best-matching route would be displayed. The ipv6-prefix/ipv6-prefix-length specifies a specific IPv6 network for which the matching route would be displayed. The interface specifies that the routes with next-hops on the interface be displayed. The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The keyword vlan is used to specify the VLAN ID of the routing VLAN directly instead of a unit/slot/port format. The protocol specifies the protocol that installed the routes. The protocol is one of the following keywords: connected, ospf, static. The keyword all specifies that all routes including best and nonbest routes are displayed. Otherwise, only the best routes are displayed.

Note: If you use the connected keyword for protocol, the all option is not available because there are no best or nonbest connected routes.
Format show ipv6 route [{ipv6-address [protocol] | {{ipv6-prefix/ipv6-prefix-length | unit/slot/port|vlan 1-4093} [protocol] | protocol | summary} [all] | all}]
Mode
  • User EXEC
  • Privileged EXEC
Term Definition
Route Codes The key for the routing protocol codes that might appear in the routing table output.

The show ipv6 route command displays the routing tables in the following format:

Codes: C - connected, S - static
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF Ext 1, OE2 - OSPF Ext 2
       ON1 - OSPF NSSA Ext Type 1, ON2 - OSPF NSSA Ext Type 2, Truncated

The columns for the routing table display the following information:

Term Definition
Code The code for the routing protocol that created this routing entry.
Default Gateway The IPv6 address of the default gateway. When the system does not have a more specific route to a packet's destination, it sends the packet to the default gateway.
IPv6-Prefix/IPv6- Prefix-Length The IPv6-Prefix and prefix-length of the destination IPv6 network corresponding to this route.
Preference/Metric The administrative distance (preference) and cost (metric) associated with this route. An example of this output is [1/0], where 1 is the preference and 0 is the metric.
Tag The decimal value of the tag associated with a redistributed route, if it is not 0.
Next-Hop The outgoing router IPv6 address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Route-Timestamp The last updated time for dynamic routes. The format of Route-Timestamp will be
  • Days:Hours:Minutes if days > = 1
  • Hours:Minutes:Seconds if days < 1
Interface The outgoing router interface to use when forwarding traffic to the next destination. For reject routes, the next hop interface would be Null0 interface.
T A flag appended to an IPv6 route to indicate that it is an ECMP route, but only one of its next hops has been installed in the forwarding table. The forwarding table may limit the number of ECMP routes or the number of ECMP groups. When an ECMP route cannot be installed because such a limit is reached, the route is installed with a single next hop. Such truncated routes are identified by a T after the interface name.

To administratively control the traffic destined to a particular network and prevent it from being forwarded through the router, you can configure a static reject route on the router. Such traffic would be discarded and the ICMP destination unreachable message is sent back to the source. This is typically used for preventing routing loops. The reject route added in the RTO is of the type OSPF Inter-Area. Reject routes (routes of REJECT type installed by any protocol) are not redistributed by OSPF/ RIP. Reject routes are supported in both OSPFv2 and OSPFv3.

Example: The following shows example CLI display output for the command.

(Routing) #show ipv6 route

IPv6 Routing Table - 3 entries

Codes: C - connected, S - static
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF Ext 1, OE2 - OSPF Ext 2
       ON1 - OSPF NSSA Ext Type 1, ON2 - OSPF NSSA Ext Type 2, P - Net Prototype

S    2001::/64 [10/0] directly connected,   Null0
C    2003::/64 [0/0]
      via ::,   0/11
S    2005::/64 [1/0]
      via 2003::2,   0/11
C    5001::/64 [0/0]
      via ::,   0/5
OE1 6001::/64 [110/1]
    via fe80::200:42ff:fe7d:2f19,   00h:00m:23s,  0/5
OI 7000::/64 [110/6]
    via fe80::200:4fff:fe35:c8bb,   00h:01m:47s,  0/11

Example: The following shows example CLI display output for the command to indicate a truncated route.

(router) #show ipv6 route

IPv6 Routing Table - 2 entries

Codes: C - connected, S - static, 6To4 - 6to4 Route
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF Ext 1, OE2 - OSPF Ext 2
       ON1 - OSPF NSSA Ext Type 1, ON2 - OSPF NSSA Ext Type 2P - Net Prototype

C    2001:db9:1::/64 [0/0]
      via ::,   0/1
OI   3000::/64 [110/1]
      via fe80::200:e7ff:fe2e:ec3f,   00h:00m:11s,  0/1   T

Example: The following is an example of the CLI display output with a hardware failure.

(router) #
(router) #configure
(router) (Config)#interface 0/1
(router) (Interface 0/1)#routing
(router) (Interface 0/1)#ipv6 enable
(router) (Interface 0/1)#ipv6 address 2001::2/64
(router) (Interface 0/1)#exit
(router) (Config)#ipv6 route net-prototype 3001::/64 2001::4 1

(router) #show ipv6 route

IPv6 Routing Table - 1 entries

Codes: C - connected, S - static, 6To4 - 6to4 Route, B - BGP Derived
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF Ext 1, OE2 - OSPF Ext 2
       ON1 - OSPF NSSA Ext Type 1, ON2 - OSPF NSSA Ext Type 2, K - kernel
       P – Net Prototype

C    2001::/128 [0/0]
      via ::,   0/1
P    3001::/64 [0/1]
      via 2001::4,   00h:00m:04s,  0/1  hw-failure

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo