Displaying information on IPv6 static routes
You can consult the IPv6 route table for information on connected, static, and protocol
routes.
- To check whether IPv6 is enabled, enter the
show ipv6command. The command can be entered at the device prompt or in global or interface configuration mode.device# show ipv6 Global Settings IPv6 Router-Id: 1.1.1.1 load-sharing path: 4 unicast-routing enabled, ipv6 allowed to run, hop-limit 64 reverse-path-check disabled nd6 proxy disabled host drop cam limit disabled urpf-exclude-default disabled session-logging-age 5 selective-routes-download enabled No Inbound Access List Set No Outbound Access List Set source-route disabled, forward-source-route disabled, icmp-redirect disabled icmp-mpls-response enabled OSPF (default VRF): enabled
This example shows IPv6 is enabled on the device. - To display the IPv6 route table information, enter the
show ipv6 routecommand.device# show ipv6 route IPv6 Routing Table - 7 entries: Type Codes: C - Connected, S - Static, R - RIP, O - OSPF, B - BGP OSPF Sub Type Codes: O - Intra, Oi - Inter, O1 - Type1 external, O2 - Type2 external Type IPv6 Prefix Next Hop Router Interface Dis/Metric C 2000:4::/64 :: ethe 1/3/2 0/0 S 2001:DB8::/16 :: tunnel 6 1/1 S 2001:DB8:1234::/32 :: tunnel 6 1/1 C 2001:DB8:46a::/64 :: ethe 1/3/2 0/0 C 2001:DB8::1/128 :: loopback 2 0/0 O 2001:DB8::2/128 fe80::2e0:52ff:fe91:bb37 ethe 1/3/2 110/1 C 2001:DB8::/64 :: tunnel 2 0/0
As shown in the example, connected, static, RIP, OSPF, and BGP routes are listed, along with the destination address, the next hop router, the interface used toward the destination, and the administrative distance and cost for each route.