DHCP is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway.
Figure 1. Flow of DHCP client requesting configuration from DHCP server
As shown in Figure 1, the interaction flow between DHCP server and client is as follows.
DISCOVER, and the packet is copied and forwarded to DHCP Sever1 and DHCP Sever2.OFFER to Client respectively.OFFER to respond to. OFFER received, i.e. Offer S1. And the second Offer S2 is ignored. REQUEST requesting the Offer S1. ACK to the Client, telling the client that the IP configuration is available. And Server2 will clear the state machine associated with the Client.ARP to perform ACD (Address Conflict Detection), which is to detect if the IP configuration conflicts with other client.DECLINE to Server1 to tell the server that the IP configuration is unavailable.