Concept Guide

Table Of Contents
DHCP Relay When DHCP Server and Client are in
Different VRFs
When the DHCP server and DHCP clients belong to different VRFs on the relay agent, you can configure the system to leak
routes across VRFs.
You can configure the system to leak the following routes across VRFs:
● Connected routes
● The complete routing table
● Selective routes
The following illustration depicts the topology in which routes are leaked between VRFs in the relay agent.
VRF_1 VRF_2
DHCP Server --------------------- DHCP relay agent --------------------------- Client
(10.0.0.1) (10.0.0.2) (20.0.0.2) (20.0.0.4)
Configuring Route Leaking between VRFs on DHCP Relay Agent
To configure route leaking between VRFs on DHCP relay agent, include the configuration similar to the following along with your
DHCP relay configuration 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
!
Dynamic Host Configuration Protocol (DHCP)
251