What is DHCP (Dynamic Host Configuration Protocol)?

DHCP (Dynamic Host Configuration Protocol) is a network protocol used to automatically assign IP addresses and other network configuration parameters (such as subnet mask, gateway, and DNS servers) to devices on a network. It eliminates the need for manual IP configuration and ensures efficient IP address management.

image.png

How DHCP Works (The DORA Process)

DHCP follows a DORA (Discover, Offer, Request, Acknowledge) process to assign an IP address:

  1. Discover:
  2. Offer:
  3. Request:
  4. Acknowledge:

If a client no longer needs an IP, it can send a DHCP Release message to return the IP to the available pool.


DHCP Lease Time


Types of DHCP Allocation

  1. Dynamic Allocation – DHCP assigns an available IP for a limited lease period.
  2. Automatic Allocation – DHCP permanently assigns the same IP to a device based on its MAC address.
  3. Static (Manual) Allocation – The administrator assigns fixed IPs using DHCP reservations (based on MAC addresses).