The VRF routing table (mplsVpnVrfRouteTable) provides the IP routing table information for each VRF. The information available in this table can also be accessed with the show ip route vrf vrf-name command. For example, for PE1 in the figure above:
-
With the show ip route vrf vpn1 command, you would see results like the following:
Router# show ip route vrf vpn1
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
!
Gateway of last resort is not set
!
10.0.0.0/32 is subnetted, 3 subnets
B 10.3.0.0 [200/0] via 192.168.2.1, 04:36:33
C 10.1.0.0/16 is directly connected, Ethernet1
C 10.2.0.0/16 [200/0] directly connected Ethernet2, 04:36:33
-
With the show ip route vrf vpn2 command, you would see results like the following:
Router# show ip route vrf vpn2
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
!
Gateway of last resort is not set
!
172.16.0.0/32 is subnetted, 2 subnets
B 172.16.2.0 [200/0] via 192.168.2.1, 04:36:33
C 172.16.1.0 is directly connected, ATM 3/0
The figure below shows the relationship of the routing tables, the VRFs, and the mplsVpnVrfRouteTable. You can view information about the VPN1 and VPN2 route tables using the show ip route vrf vrf-name command. The global route table is the same as ipCidrRouteTable in the IP-FORWARD-MIB. You can view information about the global route table with the show ip route command.
Figure 4 |
Route Table, VRFs, and the mplsVpnVrfRouteTable |
An LSR creates an entry in this table for every route that is configured, either dynamically or statically, within the context of a specific VRF capable of supporting MPLS VPN.
The mplsVpnVrfRouteTable is indexed by the following:
-
mplsVpnVrfName--The VRF name, which provides the VRF routing context
-
mplsVpnVrfRouteDest--The IP destination address
-
mplsVpnVrfRouteMask--The IP destination mask
-
mplsVpnVrfRouteTos--The IP header ToS bits
-
mplsVpnVrfRouteNextHop--The IP address of the next hop for each route entry
Note |
The ToS bits are not supported and, therefore, are always 0.
|
The table below lists the MIB objects and their functions for the mplsVpnVrfRouteTable. This table represents VRF-specific routes. The global routing table is the ipCidrRouteTable in the IP-FORWARD-MIB.
Table 8 |
PPVPN-MPLS-VPN MIB Objects for the mplsVpnVrfRouteTable |
MIB Object |
Function |
mplsVpnVrfRouteDest |
The destination IP address defined for this route. |
mplsVpnVrfRouteDestAddrType |
The address type of the IP destination address (mplsVpnVrfRouteDest). This MIB implementation only supports IPv4 (1). Therefore, this object has a value of "ipv4 (1)." |
mplsVpnVrfRouteMask |
The destination IP address mask defined for this route. |
mplsVpnVrfRouteMaskAddrType |
The address type of the destination IP address mask. This MIB implementation only supports IPv4 (1). Therefore, this object has a value of "ipv4 (1)." |
mplsVpnVrfRouteTos |
The ToS bits from the IP header for this route. Cisco software only supports ToS bits of zero. Therefore, the object is always 0. |
mplsVpnVrfRouteNextHop |
The next hop IP address defined for this route. |
mplsVpnVrfRouteNextHopAddrType |
The address type of the next hop IP address. This MIB implementation only supports IPv4 (1). Therefore, this object has a value of "ipv4 (1)." |
mplsVpnVrfRouteIfIndex |
The interface MIB ifIndex for the interface through which this route is forwarded. The object is 0 if no interface is defined for the route. |
mplsVpnVrfRouteType |
Defines if this route is a local or remotely defined route. |
mplsVpnVrfRouteProto |
The routing protocol that was responsible for adding this route to the VRF. |
mplsVpnVrfRouteAge |
The number of seconds since this route was last updated. |
mplsVpnVrfRouteInfo |
A pointer to more information from other MIBs. This object is not supported and always returns "nullOID (0.0)." |
mplsVpnVrfRouteNextHopAS |
The autonomous system number of the next hop for this route. This object is not supported and is always 0. |
mplsVpnVrfRouteMetric1 |
The primary routing metric used for this route. |
mplsVpnVrfRouteMetric2 mplsVpnVrfRouteMetric3 mplsVpnVrfRouteMetric4 mplsVpnVrfRouteMetric5 |
Alternate routing metrics used for this route. These objects are supported only for Cisco IGRP and Cisco EIGRP. These objects display the bandwidth metrics used for the route. Otherwise, these values are set to -1. |
mplsVpnVrfRouteRowStatus |
Read-only implementation.This object normally reads "active (1)," but may read "notInService (2)," if a VRF was recently deleted. |
mplsVpnVrfRouteStorageType |
Read-only implementation. This object always reads "volatile (2)." |