DHCP
In plain English
Plain definition
DHCP (Dynamic Host Configuration Protocol) is the client–server protocol that automatically assigns IP addresses and related network settings to devices, removing the need for manual per-device configuration.
Technical Definition
DHCP is a client–server protocol that operates over UDP, with servers listening on port 67 and clients on port 68. A DHCP client obtains configuration through a four-step exchange commonly abbreviated DORA: Discover, Offer, Request and Acknowledge. The client broadcasts a Discover message; one or more DHCP servers respond with an Offer proposing an IP address and associated parameters; the client selects an offer and broadcasts a Request; the chosen server confirms with an Acknowledge, after which the client may use the address for a defined lease period. Alongside the IP address, a DHCP server can supply the subnet mask, default gateway, DNS servers, domain name, NTP servers and other vendor-specific options. DHCP is standardised through the Internet Engineering Task Force process and published via the RFC Series, which the RFC Editor maintains as the authoritative record of Internet technical specifications. This entry describes DHCP’s general mechanics; exact behaviour can vary by vendor implementation and protocol version, so implementation-specific and version-specific detail should be confirmed against current vendor and IETF documentation before being treated as authoritative.
Operational Relevance
DHCP removes the operational burden of manually configuring every device’s network settings. This matters wherever the number of devices exceeds what a team can track by hand: office networks, guest Wi-Fi, data centre server provisioning, virtual machine and container networking, and mobile or IoT fleets. Centralising configuration in a DHCP server, or a small number of redundant servers, means that changes to a DNS address, a gateway or a subnet boundary can be rolled out to an entire population of clients by updating the DHCP configuration and waiting for lease renewal, rather than touching each device individually. This also reduces a class of operational error associated with duplicate or mistyped IP addresses.
Architecture Relationship
DHCP sits alongside, but is distinct from, the protocols it configures clients to use. It depends on IP-level broadcast or relay mechanisms to reach clients before those clients have an address, and it typically works together with DNS to distribute name-server addresses, and with routing to distribute the correct default gateway. VLAN or subnet design generally requires each broadcast domain to have its own DHCP scope or a relay agent forwarding requests to a central server. In switched and routed environments, a DHCP relay agent, sometimes called an IP helper, forwards client broadcasts across subnet boundaries so that a single central DHCP server can serve multiple subnets. In cloud and container platforms, address assignment is frequently handled by the platform’s own control plane rather than a traditional DHCP daemon, but similar negotiation concepts often still apply underneath.
Example
A laptop joins an office Wi-Fi network. Its network interface has no IP address yet, so it broadcasts a DHCP Discover message. The office’s DHCP server, configured with an address pool for that subnet, replies with an Offer containing a candidate IP address, subnet mask, gateway and DNS server addresses. The laptop requests that offer, the server acknowledges it, and the laptop can now reach the network. The address is leased for a fixed period; if the laptop remains connected, it will attempt to renew the lease before it expires, and if it leaves and later returns, it may receive the same address or a different one from the pool.
Misunderstanding
A common misunderstanding is that DHCP assigns or changes a device’s MAC address; it does not, since the MAC address is a hardware-level identifier that DHCP reads and uses to track leases rather than one it sets. Another frequent error is treating a DHCP-assigned address as permanent: leases expire and are renewed or reassigned, so a device’s IP address can change over time unless a reservation is configured. It is also a mistake to assume a static IP address is inherently more secure than a DHCP-assigned one; security depends on the access controls and monitoring applied to the network, not on the address assignment mechanism itself.
Related Terms
- IP address
- Subnet mask
- Default gateway
- DNS
- DHCP relay agent
- DHCP lease
- BOOTP
- IP Address Management (IPAM)
Further Reading
Readers who need the precise, version-specific text of the DHCP standard should consult the current IETF publication through the RFC Editor’s RFC Series, which is the authoritative channel for Internet technical specifications, and should verify the exact document number and any applicable updates against that source rather than relying on a secondary summary, since standards documents are periodically superseded or clarified.