Connectivity Guide

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
------------------------------------------------------------------------------------------------
----
C 120.0.0.0/24 via 120.0.0.1 ethernet1/1/1 0/0 00:00:57
S 140.0.0.0/24 Direct,VRF2 ethernet1/1/2 1/0 00:00:04
OS10(config)# do show ip route vrf VRF2
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
------------------------------------------------------------------------------------------------
----
S 120.0.0.0/24 Direct,VRF1 ethernet1/1/1 1/0 00:00:05
C 140.0.0.0/24 via 140.0.0.1 ethernet1/1/2 0/0 00:01:54
Conguring source IP address for a leaked route
If the source IP is not mentioned explicitly for any self originating packet (for example, ping or traceroute) to the leaked route destined
through the parent VRF, the system chooses a source based on its source selection algorithm.
NOTE
: For end-to-end trac to ow, you must specify the source for self originating packets and leak the same into the
destination VRF.
To mitigate this issue and have control over the source IP address for leaked routes, you can create a loopback interface and associate it
with the leaked VRF.
To explicitly mention the source interface for the leaked VRF:
Enter the following command:
update-source-if
VRF CONFIGURATION Mode
Layer 3
397