By the end of this guide, you will be able to design a safe address pool and identify the stage at which a client fails to receive its settings. In the example network 192.168.1.0/24, we will keep the gateway and static devices outside the dynamic pool .50–.200. DHCP means Dynamic Host Configuration Protocol: a client asks a server for an IPv4 address and other settings. RFC 2131 defines the base protocol, RFC 2132 defines many original options, and IANA maintains the evolving option registry.
Core terms
- Scope or pool: addresses available for dynamic assignment.
- Lease: a time-limited right to use an address.
- Exclusion: an address the server must not assign dynamically.
- Reservation: a binding between a client identifier and an expected address.
- Option: another setting such as mask, router, DNS, or domain name.
The DORA exchange
- DHCPDISCOVER: a client looks for servers.
- DHCPOFFER: a server proposes an address and settings.
- DHCPREQUEST: the client selects an offer or requests renewal.
- DHCPACK: the server confirms the lease; it may use DHCPNAK to reject an invalid request.
DORA is a teaching mnemonic. The real exchange depends on client state; reuse and renewal do not always start with the full four-message process.
Lease renewal
RFC 2131 defines T1 and T2. By default, a client tries unicast renewal around half the lease time (T1), then enters a broader rebinding phase at T2. It must stop using the address after expiry. Short leases reclaim guest addresses faster but increase traffic and server dependence. Long leases suit stable networks but return addresses more slowly.
Relay across VLANs
Initial client messages are local to the segment and are not forwarded as ordinary broadcasts. A relay agent on a layer-3 interface forwards the request and identifies the client's subnet, allowing one server to serve multiple networks. Each VLAN still needs the correct scope and return routing.
Planning 192.168.1.0/24
The conventional host range is 192.168.1.1–192.168.1.254. Suppose the gateway is .1, static infrastructure uses .2–.49, and the dynamic pool is .50–.200. That pool contains 151 addresses. .201–.254 remains unassigned until the plan gives it a purpose.
The DHCP pool generator always sets aside the first host address as its suggested gateway; the form has no gateway override. Reproduce the pool above with 192.168.1.0/24, 48 exclusions after the gateway (.2–.49), and 54 at the end (.201–.254). You can choose a different gateway in your actual addressing plan and router or DHCP server configuration. Adjust exclusions to that plan; the calculator's suggestion does not configure devices.
Exclusion, reservation, and static address
An exclusion merely prevents dynamic assignment. A reservation is still served by DHCP and requires a DHCP client. A static address is configured on the device and should be outside the pool or reliably excluded. Confusing the three is a common source of duplicates.
Troubleshooting
- Check the physical link, VLAN, and whether the client started DHCP.
- Confirm the pool is not exhausted and matches the subnet.
- Trace Discover, Offer, Request, and Ack in a packet capture.
- Across networks, check the relay, helper address, ACLs, and routing.
- Verify mask, router, DNS, and lease-time options.
A 169.254.x.x address often indicates IPv4 link-local configuration after DHCP failed, but the address alone does not identify one root cause.
Security
A rogue server can supply a malicious gateway or DNS server, while pool exhaustion can deny service. Managed switches may provide DHCP snooping, port limits, and trusted uplinks. Deploy these according to the platform documentation; they do not replace segmentation and monitoring.