13.1k views
1 vote
What action does a DHCPv4 client take if it receives more than one DHCPOFFER from multiple DHCP servers?

User Jim Simson
by
7.9k points

1 Answer

2 votes

When a DHCPv4 client sends a DHCPDISCOVER message requesting IP configuration information, it may receive multiple DHCPOFFER messages from multiple DHCP servers. In such cases, the DHCPv4 client will follow a specific set of rules to choose which DHCPOFFER message to accept and which ones to reject.

The DHCPv4 client will compare the DHCPOFFER messages it receives based on the following criteria:

The client will select the DHCPOFFER message with the highest offered IP address.

If there is a tie in the offered IP addresses, the client will select the DHCPOFFER message with the highest value in the 'yiaddr' field of the DHCPOFFER message.

If there is still a tie, the client will select the DHCPOFFER message from the DHCP server with the lowest IP address.

Once the DHCPv4 client has selected the DHCPOFFER message it wants to accept, it will send a DHCPREQUEST message to that DHCP server, indicating that it has accepted the offer. The DHCP server will then respond with a DHCPACK message, confirming the client's lease of the IP address and providing any additional configuration information that the client may need.

The DHCPv4 client will ignore any other DHCPOFFER messages it received and will not respond to them.

User Casa
by
8.0k points