Displaying the IP route table for a specified VRF

To display the IP routes for a specified VRF, enter the following command at any CLI level.

        device# show ip route vrf green 
Total number of IP routes: 99
 Type Codes - B:BGP  D:Connected  S:Static  R:RIP  O:OSPF;   Cost - Dist/Metric
        Destination        Gateway         Port        Cost       Type
1   eth 6/3     110/2      O   
2 	 	 	 	 	 	 	 lsp toR4    200/0      B   
3 	 	 	 	 	 	 	 lsp toR2    200/0      B   
4   eth 6/3     110/3      O1  
5   eth 6/3     110/3      O1  
6   eth 6/3     110/3      O1  
7   eth 6/3     110/3      O1  
8   eth 6/3     110/3      O1  
9   eth 6/3     110/3      O1  
10   eth 6/3     110/3      O1  
11   eth 6/3     110/3      O1  

Syntax: show ip route vrf vrf-name

The vrf-name parameter specifies the VRF that the user wants to display IP routes for.

The following table lists the information displayed by the show ip route vrf command.

Table 1. CLI display of IP route table

This field...


Total number of IP routes

The total number of IP routes that are in the specified VRP routing table.


The destination network of the route.


The network mask of the destination address.


The next-hop router.


The port through which this Extreme device sends packets to reach the route's destination.


The route's cost.


The route type, which can be one of the following:

  • B - The route was learned from BGP.
  • D - The destination is directly connected to this Extreme device.
  • R - The route was learned from RIP.
  • S - The route is a static route.
  • * - The route is a candidate default route.
  • O - The route is an OSPF route. Unless the user uses the ospf option to display the route table, "O" is used for all OSPF routes. When the user does use the ospf option, the following type codes are used:
    • O - OSPF intra area route (within the same area).
    • IA - The route is an OSPF inter area route (a route that passes from one area into another).
    • E1 - The route is an OSPF external type 1 route.
    • E2 - The route is an OSPF external type 2 route.