Service Manual
purpose, routes corresponding VRF-Shared routes are leaked to only VRF-Red and VRF-Blue. And for reply, routes corresponding to
VRF-Red and VRF-Blue are leaked to VRF-Shared.
For leaking the routes from VRF-Shared to VRF-Red and VRF-Blue, you can congure route-export tag on VRF-shared (source VRF,
who is exporting the routes); the same route-export tag value should be congured on VRF-Red and VRF-blue as route-import tag
(target VRF, that is importing the routes). For a reply communication, VRF-red and VRF-blue are congured with two dierent
route-export tags, one for each, and those two values are congured as route-import tags on VRF-shared.
To congure route leaking, perform the following steps:
1.
Congure VRF-shared using the following command:ip vrf vrf-sharedinterface gigabitethernet 1/4ip vrf
forwarding vrf-sharedip address x.x.x.x 255.x.x.x
A non-default VRF named VRF-Shared is created and the interface 1/4 is assigned to this VRF.
2. Congure the export target in the source VRF:.ip route-export 1:1
3. Congure VRF-red.ip vrf vrf-red interface gigabitethernet 1/11ip vrf forwarding VRF-red ip
address x.x.x.x 255.x.x.x
A non-default VRF named VRF-red is created and the interface 1/11 is assigned to this VRF.
4. Congure the import target in VRF-red.ip route-import 1:1
5. Congure the export target in VRF-red.ip route-export 2:2
6. Congure VRF-blue.ip vrf vrf-blue interface gigabitethernet 1/12ip vrf forwarding vrf-blue
ip address x.x.x.x 255.x.x.x
A non-default VRF named VRF-blue is created and the interface 1/12 is assigned to it.
7. Congure the import target in VRF-blue.ip route-import 1:1
8. Congure the export target in VRF-blue.ip route-export 3:3
9. Congure VRF-green.ip vrf vrf-green interface gigabitethernet 1/13ip vrf forwarding VRF-
green ip address x.x.x.x 255.x.x.x
A non-default VRF named VRF-green is created and the interface 1/13 is assigned to it.
10. Congure the import target in the source VRF VRF-Shared for reverse communication with VRF-red and VRF-blue.ip vrf
vrf-sharedip route—import 2:2ip route-import 3:3
The show run output for the above conguration is as follows:
ip vrf VRF-Red
ip route-export 2:2
ip route-import 1:1
!
ip vrf VRF-Blue
ip route-export 3:3
ip route-import 1:1
!
ip vrf VRF-Green
!
ip vrf VRF-shared
ip route-export 1:1
ip route-import 2:2
ip route-import 3:3
Show routing tables of all the VRFs (without any route-export and route-import tags being congured)
Dell# show ip route vrf VRF-Red
O 11.1.1.1/32 via 111.1.1.1 110/0 00:00:10
C 111.1.1.0/24 Direct, Gi 1/11 0/0 22:39:59
Dell# show ip route vrf VRF-Blue
O 22.2.2.2/32 via 122.2.2.2 110/0
00:00:11
C 122.2.2.0/24 Direct, Gi 1/12 0/0 22:39:61
860
Virtual Routing and Forwarding (VRF)