View Routes Information

View routes information to view the current configuration.

About this task

Not all parameters are available in non-default VRFs.

IPv6 host routes created for the IPv6 local interfaces do not display in the routing table.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Show route information for alternative routes:

    show ipv6 route alternative [vrf WORD<1–16> | vrfids WORD<1–256>]

  3. Show the number of OSPF, RIP, static, and local routes:

    show ipv6 route count-summary [vrf WORD<1–16> | vrfids WORD<1–256>]

  4. Show route information for a destination:

    show ipv6 route dest WORD<0–46> [vrf WORD<1–16> | vrfids WORD<1–256>]

  5. Show route information for a port:

    show ipv6 route gigabitethernet {slot/port[sub-port]}

  6. Show route information for a next-hop address:

    show ipv6 route next-hop WORD<0–46> [vrf WORD<1–16> | vrfids WORD<1–256>]

  7. Show route information for an SPBM IPv6 route:

    show ipv6 route spbm-nh-as-mac

  8. Show route information for a static route:

    show ipv6 route static [vrf WORD<1–16> | vrfids WORD<1–256>]

  9. Show route information for a tunnel:

    show ipv6 route tunnel <1–2000>

  10. Show route information for a VLAN:

    show ipv6 route vlan <1-4059>

Example

Switch:1(config-if)#show ipv6 route
==========================================================================================================================
                                     IPv6 Routing Table Information - GlobalRouter
==========================================================================================================================
Destination Address/PrefixLen            NEXT HOP            NH VRF/ISID       VID/BID/TID  PROTO   COST  AGE   TYPE PREF
--------------------------------------------------------------------------------------------------------------------------
22:0:0:0:0:0:0:0/64                      42-VSP-8404             -               V-22        LOCAL   1     0     B    0   
123:0:0:0:0:0:0:0/64                     39-4900-24XE            -               C-1         LOCAL   1     0     B    0   
--------------------------------------------------------------------------------------------------------------------------

2 out of 2 Total Num of Route Entries displayed.
--------------------------------------------------------------------------------------------------------------------------
TYPE Legend:
A=Alternative Route, B=Best Route, E=Ecmp Route
Switch:1#show ipv6 route count-summary      

================================================================================
                         IPv6 Route Summary - GlobalRouter
================================================================================
  VRF NAME      TOTAL     OSPF      RIP      BGP   STATIC    LOCAL     ISIS
--------------------------------------------------------------------------------
  GlobalRouter   13       10       0        3        1        2        7
================================================================================
 
Switch:1#show ipv6 route static 

====================================================================================================
                              Static Route Information - GlobalRouter
====================================================================================================
DEST-IP                                  NET IFINDX(VID/BRT/TUN) ENABLE  STATUS           NAME
NEXT-HOP                                 PREFERENCE
----------------------------------------------------------------------------------------------------
22:0:0:0:0:0:0:0                         64  2059  (V-11     ) enable  NotReachable	ExtSer10
66:0:0:0:0:0:0:66                        5         

1 out of 1 Total Num of Static Routes displayed.

Global IPv6 Static Routes Admin Status: enable

Switch:1#show ipv6 route spbm-nh-as-mac
==========================================================================================================
                          IPv6 Routing Table Information - GlobalRouter
==========================================================================================================
Destination Address/PrefixLen     NEXT HOP          NH VRF/ISID   VID/BID/TID  PROTO   COST AGE  TYPE PREF

----------------------------------------------------------------------------------------------------------
2001:cdab:0:0:0:0:0:0/32         42-VSP-8404           -           V-611        LOCAL   1   0     B    0
2002:cdab:0:0:0:0:0:0/32         VSP-8404              -           V-10         ISIS    1   0     B    0 
----------------------------------------------------------------------------------------------------------

Variable Definitions

Use the data in the following table to use the show ipv6 route command.

Variable

Value

count-summary

Shows the total number of OSPF, static, and local routes.

dest WORD<0–46>

Specifies the IPv6 destination network address. The prefix value must match the prefix length.

next-hop WORD<0–46>

Specifies the IPv6 address of the next hop on this route.

spbm-nh-as-mac

Shows the B-MAC address as the next hop rather than the host name.

{slot/port[/sub-port]}

Identifies a single slot and port. If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

static

Shows static IPv6 routes.

tunnel <1–2000>

Shows route entries for a specific tunnel ID.

vlan<1-4059>

Shows route entries for a specific VLAN ID.

vrfWORD<1–16>

Shows the VRF name.

vrfidsWORD<1–256>

Shows the VRF ID.