DHCP is an application layer protocol that automates the configuration process of hosts on a network.
Dynamic Allocation
A range of IP addresses is set aside for client devices and one of these IPs is issued to these devices when they request one.
IP could vary almost everytime it connectsw to the network.
Automatic Allocation
A range of IP addresses is set aside for assignment purposes.
the DHCP server is asked to keep track of which IPs it's assigned to certain devices in the past. Using this information, the DHCP server will assign the same IP to the same machine each time if possible.
Fixed Allocation
When a computer requests an IP, the DHCP server looks for its MAC address in a table and assigns the IP that corresponds to that MAC address.
The process by which a client configured to use DHCP attempts to get network configuration information.
It has four steps.
Server discovery step
All the requests and responds are broadcast
DHCP Client requests DHCPSIDCOVER message (from port 68)
DHCP Server responds DHPCOFFER message (from port 67)
DHCP Client would respond to the DHCOFFER message with a DHCPREQUEST message. -> "Yes, I would like to have an IP that you offered me."
DHCP Server responds DHCPACK message.
All the information that DHCP clients needs to operate in a full fledged manner on the network it's connected to.