DHCP (Dynamic Host Configuration Protocol)
What is DHCP (Dynamic Host Configuration Protocol)?
DHCP (Dynamic Host Configuration Protocol), defined in RFC 2131, is how a device joining a network automatically gets an IP address, subnet mask, gateway and DNS servers, without anyone typing them in by hand. AdminKit's subnet calculator works out the subnet math a DHCP server's address pool is carved from.
By AdminKit team, Netbase JSC · Updated
DHCP (Dynamic Host Configuration Protocol), defined in RFC 2131 (document record at the IETF Datatracker), is how a device joining a network gets an IP address, subnet mask, default gateway and DNS servers without anyone typing them in by hand — the specific options a server can hand out, like DNS servers and lease time, are catalogued in the companion RFC 2132, with the current, still-growing option-code assignments tracked in IANA’s BOOTP/DHCP Parameters registry. A client broadcasts a DISCOVER message, a server offers an address from a configured pool, the client requests it, and the server acknowledges it — the DORA exchange — after which the client holds that address for a fixed lease time and must renew before it expires. This is what lets a laptop, phone or IoT device get working network settings the moment it connects to a router, and it’s the mechanism behind every dynamic IP a LAN hands out on its own. Microsoft’s overview of the DHCP Server role in Windows Server describes the same model from the server side: the server maintains a pool of IP addresses, leases one to each DHCP-enabled client when it starts up, and returns addresses no longer in use to the pool. Open-source servers work the same way, and ISC Kea’s DHCPv4 server documentation covers configuring the address pools and lease storage this exchange relies on. A DHCP server’s pool is carved out of whatever subnet it serves, so planning how many addresses a scope needs starts with the same subnet math AdminKit’s subnet calculator works through. When no DHCP server answers at all, many IPv4 devices fall back to self-assigning a link-local address instead of staying unconfigured. Once a device actually has an IPv4 address, whether from DHCP or self-assigned, reaching another device on the same subnet still requires ARP to resolve that address to a MAC address for local delivery.
The DORA exchange, in order:
- Discover — the client broadcasts a request for any server listening.
- Offer — a server proposes an address from its configured pool.
- Request / Acknowledge — the client asks for that address, and the server confirms the lease.
AdminKit groups dHCP (Dynamic Host Configuration Protocol) under its IP & network cluster — browse the AdminKit glossary index for other related terms.
Frequently asked questions
What is the DORA exchange?
DORA is the four-step handshake a device uses to get an address from a DHCP server: Discover (the client broadcasts a request), Offer (a server proposes an address from its pool), Request (the client asks for that specific address), and Acknowledge (the server confirms the lease).
What happens if no DHCP server answers?
Many IPv4 devices fall back to self-assigning a link-local address instead of staying unconfigured, though that address only works for communicating with other devices on the same local segment, not for reaching the wider network.
What does a DHCP lease actually control?
It sets how long a client can hold an assigned IP address before it must renew; the client typically renews well before the lease expires, and if it can't reach the server in time it eventually loses the address and has to request a new one.
Does DHCP hand out more than just an IP address?
Yes -- a DHCP response also carries the subnet mask, default gateway and DNS servers a device needs, and RFC 2132 catalogues the full set of options (like lease time and DNS servers) a server can hand out beyond the address itself.
Sources
- RFC 2131 -- Dynamic Host Configuration Protocol
- RFC 2132 -- DHCP Options and BOOTP Vendor Extensions
- IANA -- BOOTP Vendor Extensions and DHCP Parameters registry
- IETF Datatracker -- RFC 2131 document record
- Microsoft Learn -- What is DHCP Server in Windows Server?
- ISC Kea documentation -- The DHCPv4 Server