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       10.5.1.0/24        192.168.201.2   eth 6/3     110/2      O   
2       10.6.1.0/24        10.4.4.4 	 	 	 	 	 	 	 lsp toR4    200/0      B   
3       10.8.1.0/24        10.2.2.2 	 	 	 	 	 	 	 lsp toR2    200/0      B   
4       10.30.1.1/32       192.168.201.2   eth 6/3     110/3      O1  
5       10.30.1.2/32       192.168.201.2   eth 6/3     110/3      O1  
6       10.30.1.3/32       192.168.201.2   eth 6/3     110/3      O1  
7       10.30.1.4/32       192.168.201.2   eth 6/3     110/3      O1  
8       10.30.1.5/32       192.168.201.2   eth 6/3     110/3      O1  
9       10.30.1.6/32       192.168.201.2   eth 6/3     110/3      O1  
10      10.30.1.7/32       192.168.201.2   eth 6/3     110/3      O1  
11      10.30.1.8/32       192.168.201.2   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...

Displays...

Total number of IP routes

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

Destination

The destination network of the route.

NetMask

The network mask of the destination address.

Gateway

The next-hop router.

Port

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

Cost

The route's cost.

Type

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.