PROTOCOL FIELD GUIDE
How DHCP works
Join an IPv4 network using Discover, Offer, Request and Acknowledge. A lease can include an address, subnet mask, router and DNS settings.
- Default port
- 67 server / 68 client
- Transport / carrier
- UDP
- Category
- application
1. Discover available servers
A client without an address broadcasts from 0.0.0.0:68 to 255.255.255.255:67. A transaction ID connects the following messages.
2. Receive an offer
A DHCP server offers an address and lease options. Receiving an offer does not yet finish address configuration.
3. Request the selected lease
The client identifies the selected server and requested address. Other offering servers can see which offer was accepted.
4. Acknowledge and renew
ACK authorizes the lease. The client later renews at T1 and may rebind at T2; an expired lease cannot be used indefinitely.
Protocol relationships
Protocols cooperate across layers. Compare the neighboring lessons to distinguish addressing, delivery, application semantics and encryption.
Standards and editorial method
Written and implemented independently by NavSprout. Lessons summarize public protocol standards using synthetic documentation addresses and fictional credentials. Consult the standards for complete wire formats and normative behavior.
RFC 2131 ↗ RFC 2132 ↗