Users Guide
Static route leaking
Route leaking enables routes that are configured in a default or non-default VRF instance to be made available to another VRF
instance. You can leak routes from a source VRF instance to a destination VRF instance.
The routes need to be leaked in both source and destination VRFs to achieve end-to-end traffic flow.
If there are any connected routes in the same subnet as statically leaked routes, then the connected routes take precedence.
Limitations
● In VLT scenarios, the resolved ARP entry for the leaked route is not synchronized between the VLT peers. The ARP entry
resolved in the source VRF is programmed into the leaked VRF when the leaked route configuration is active.
Configuring static route leaking
To configure static route leaking:
1. Enter the interface in the source VRF instance that contains the static routes that you want to leak.
interface interface-name
CONFIGURATION Mode
2. In INTERFACE CONFIGURATION Mode, assign the interface to the source VRF instance.
ip vrf forwarding vrf1
INTERFACE CONFIGURATION Mode
3. Assign an IP address to the interface.
ip address ip-address
VRF CONFIGURATION Mode
4. Enter the interface of the VRF instance to which you want to leak the static routes.
interface interface-name
CONFIGURATION Mode
5. In INTERFACE CONFIGURATION Mode, assign the interface to the destination VRF instance.
ip vrf forwarding vrf2
INTERFACE CONFIGURATION Mode
6. Configure the static route that you want to leak on the destination VRF instance.
ip route vrf dest-vrf-name route nexthop-interface
7. Configure the static route that you have configured earlier in the source VRF instance to be available in the destination VRF
instance also.
ip route vrf src-vrf-name route nexthop-interface
OS10(config)#interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# ip vrf forwarding VRF1
OS10(conf-if-eth1/1/1)# ip address 120.0.0.1/24
OS10(config)#interface ethernet 1/1/2
OS10(conf-if-eth1/1/1)# ip vrf forwarding VRF2
OS10(conf-if-eth1/1/1)# ip address 140.0.0.1/24
OS10(config)#ip route vrf VRF1 140.0.0.0/24 interface ethernet 1/1/2
OS10(config)#ip route vrf VRF2 120.0.0.0/24 interface ethernet 1/1/1
The following example shows the show output:
OS10(config)# do show ip route vrf VRF1
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
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, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
730
Layer 3