Specifications

Table Of Contents
ip route static inter-vrf
MP-99
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
If the static route is already configured that points to a VRF other than the one to which the route belongs
when you issue the no ip route static inter-vrf command, the offending route is uninstalled from the
routing table and a message similar to the following is sent to the console:
01:00:06: %IPRT-3-STATICROUTESACROSSVRF: Un-installing static route
x.x.x.x/32
from global
routing table with outgoing interface
intx/x
If you enter the no ip route static inter-vrf command before a static route is configured that points to a
VRF interface in a different VRF, the static route is not installed in the routing table and a message is
sent to the console.
Configuring the no
ip route static inter-vrf command prevents traffic from following an unwanted path.
A VRF static route points to a global interface or any other VRF interface as shown in the following ip
route vrf commands:
Interface serial 1/0.0 is a global interface:
Router(config)# no ip route static inter-vrf
Router(config)# ip route vrf vpn1 10.10.1.1 255.255.255.255 seria
l 1/0.0
Interface serial 1/0.1 is in vpn2:
Router(config)# no ip route static inter-vrf
Router(config)# ip route vrf vpn1 10.10.1.1 255.255.255.255 seria
l 1/0.1
With the no ip route static inter-vrf command configured, these static routes are not installed into the
vpn1 routing table because the static routes point to an interface that is not in the same VRF.
If you require a VRF static route to point to a global interface, you can use the gl
obal keyword with the
ip route vrf command:
Router(config)# ip route vrf vpn1 10.12.1.1 255.255.255.255 serial 1/0.0 10.0.0.1 global
The global keyword allows the VRF static route to point to a global interface even when the no ip route
static inter-vrf command is configured.
Examples The following example shows how to prevent static routes that point to VRF interfaces in a different
VR
F:
Router(config)# no ip route static inter-vrf
Related Commands Command Description
ip route vrf Establishes static routes for a VRF.