When you configure the DHCP relay application or the DHCP relay proxy application in the same virtual router (VR) as the DHCP external server application, we recommend that you define interface profiles to create the dynamic subscriber interfaces when the primary IP interface is static. Otherwise, the gateway IP address (giaddr) used for DHCP rebind or renewal requests might be inconsistent. Renewal requests apply only when DHCP relay proxy is configured in the same VR as DHCP external server.
The use of inconsistent giaddrs results in the transmission of negative acknowledgment (NAK) messages from the DHCP server and the removal of existing DHCP client bindings.
To apply an interface profile to a dynamic subscriber interface:
- host1(config)#profile dsiTest
- host1(config-profile)#ip unnumbered loopback
5500
- host1(config-profile)#exit
- host1(config)#virtual-router relay
- Proceed with new virtual-router creation? [confirm]
- host1:relay(config)#route-map dsiTest
- host1:relay(config-route-map)#set ip interface-profile
dsiTest
- host1:relay(config-route-map)#exit
- host1:relay(config)#interface loopback 5500
- host1:relay(config-if)#ip address 71.23.1.2/32
- host1:relay(config)#interface fastEthernet
5/5.100
- host1:relay(config-if)#ip unnumbered loopback
5500
- host1:relay(config-if)#ip auto-configure ip-subscriber
exclude-primary
- host1:relay(config-if)#ip route-map ip-subscriber
dsiTest
Use the exclude-primary keyword in the ip auto-configure ip-subscriber command to specify that the primary interface cannot be assigned to a subscriber.
- host1:relay(config-if)#ip auto-detect ip-subscriber
Issuing the ip auto-detect ip-subscriber command creates a dynamic subscriber interface back to the DHCP client when the router receives a packet with a source IP address that does not match any entries in the demultiplexer table. This method requires you to configure the primary IP interface to support creation of dynamic subscribers interfaces, which is accomplished by issuing the ip auto-configure ip-subscriber exclude-primary command, as shown in Step 4.
- host1:relay(config)#ip route 71.23.0.0/24
fastEthernet 5/5.100