Skip to content

DHCP

The Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks.

DHCP allows devices to automatically receive IP addresses and other network configuration parameters, such as subnet masks, default gateways, and DNS server addresses, from a DHCP server.

This eliminates the need for manual configuration of network settings on each device, making it easier to manage large networks.

When a device connects to a network, it sends a DHCPDISCOVER message to locate a DHCP server.

The DHCP server responds with a DHCPOFFER message, which includes an available IP address and other configuration parameters.

The device then sends a DHCPREQUEST message to request the offered IP address, and the DHCP server responds with a DHCPACK message to confirm the assignment.

The assigned IP address is typically leased for a specific period, after which the device must renew the lease to continue using the address.

DHCP operates using the User Datagram Protocol (UDP) at the Transport Layer (Layer 4) of the OSI Model.

It uses UDP Port 67 for DHCP server communication and UDP Port 68 for DHCP client communication.

DHCP is widely used in both home and enterprise networks to simplify network administration and ensure efficient allocation of IP addresses.