Cisco DHCP – Behavior of IP DHCP Pool and IP Helper-Address

ciscodhcp

If a device has a dhcp pool defined:

ip dhcp pool DATA
  network 192.0.2.0 255.255.255.0
  default-router 192.0.2.1
  domain-name test.net

But it also has a DHCP helper setup on the interface:

interface GigabitEthernet0/1
  ip address 192.0.2.1 255.255.255.0
  ip helper-address 198.51.100.10

Then what is the result? Is the DHCP addresses given from the helper? or from the local pool?

Best Answer

Is the DHCP addresses given from the helper? or from the local pool?

You would get two possible DHCPOffer's from the device's internal DHCP pool and the DHCP server defined by the helper-address, but it's up to the client to decide which DHCPOffer to accept and to then unicast a DHCPRequest to the DHCP server of choice.

Often clients choose the DHCP server with the fastest DHCPOffer. Unless your device's CPU is bogged down, I would expect typical clients to select the DHCP pool more often than not. You'd expect a little less latency in a L2 operation vs L3 which is required to get to the DHCP server via the helper-address.

Related Topic