Users Guide
Conguring Route Leaking between VRFs on DHCP Relay
Agent
To congure route leaking between VRFs on DHCP relay agent, include the conguration similar to the following along with your DHCP
relay conguration on your system.
Route Leaking for Connected Routes
!
ip vrf VRF_1
ip route-import 1:1 rmap1
ip route-export 2:2 rmap2
!
ip vrf VRF_2
ip route-import 2:2
ip route-export 1:1
!
route-map rmap1 permit 10
match source-protocol connected
!
route-map map2 permit 20
match source-protocol connected
Route Leaking for Complete Routing Table
!
ip vrf VRF_1
ip route-import 1:1
ip route-export 2:2
!
ip vrf VRF_2
ip route-import 2:2
ip route-export 1:1
Route Leaking for Selective Routes
!
ip vrf VRF_1
ip route-import 1:1 map1
ip route-export 2:2 map2
!
ip vrf VRF_2
ip route-import 2:2
ip route-export 1:1
!
!
route-map map1 permit 10
match ip address ip1
!
route-map map2 permit 20
match ip address ip2
!
ip prefix-list ip1
seq 5 permit 20.0.0.0/24 <----- This is needed for data forwarding
seq 10 permit 20.0.0.2/32 <---- This is specific to internal operation of DHCP relay
!
ip prefix-list ip2
seq 5 permit 10.0.0.0/24
Dynamic Host
Conguration Protocol (DHCP) 359