Description
DHCP (Dynamic Host Configuration Protocol) is a protocol that allows a computer that is connected to a network to automatically obtain its TCP/IP configuration, with the primary aim of simplifying the configuration of the computers connected to the network.
Principle
This protocol uses a four step process:
Asks for an IP lease: the client will send a demand called a DHCPDISCOVER to locate all the available DHCP servers that can provide an IP address.
Offer of an IP lease: All the DHCP servers will send their address offers with the help of the DHCPOFFER packet.
Selection of the lease: The client will select an address and validate its choice with the DHCP server that sent the DHCPREQUEST packet.
Validation of the lease: The server will send a confirmation in the form of a DHCPACK packet. From here, the client can activate its entire TCP/IP protocol and communicate easily on the network.