Displaying IP route information for a VRF

Display IP route information for a specified VRF by entering the following command.



When BGP and static routes use an MPLS tunnel as the outgoing interface, the Gateway field displays DIRECT in the output of the show ip route vrf vrf-name command. This is only applicable when displaying IPv4 routes.
        device# show ip route vrf yellow
Total number of IP routes: 2
 Type Codes - B:BGP  D:Connected  S:Static  R:RIP  O:OSPF;   Cost - Dist/Metric
        Destination        Gateway         Port        Cost       Type
1 	 	 	 	 	 	 	 DIRECT          loopback 1  0/0        D
2 	 	 	 	 	 	 	 DIRECT          lsp to1     200/0      B

Syntax: show ip route vrf vrf-name [ num | ip-addr | bgp | connected | isis | ospf | rip | static | tags ]

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