IP address allocation process

Figure 10: IP address allocation process

  1. The client broadcasts a DHCP-DISCOVER message to locate a DHCP server.

  2. Each DHCP server offers configuration parameters such as an IP address to the client in a DHCP-OFFER message. The sending mode of the DHCP-OFFER is determined by the flag field in the DHCP-DISCOVER message. For related information, see "DHCP message format."

  3. If several DHCP servers send offers to the client, the client accepts the first received offer, and broadcasts it in a DHCP-REQUEST message to formally request the IP address. (IP addresses offered by other DHCP servers can be assigned to other clients.)

  4. All DHCP servers receive the DHCP-REQUEST message, but only the server selected by the client returns a DHCP-ACK message to confirm that the IP address has been allocated to the client, or a DHCP-NAK message to deny the IP address allocation.

After receiving the DHCP-ACK message, the client verifies the following before using the assigned IP address:

Otherwise, the client sends a DHCP-DECLINE message to the server to request an IP address again.