DHCPv4 lease exchange
An address on loan
Dynamic Host Configuration Protocol (DHCP) lets an IPv4 client obtain network settings without typing them manually. A lease is permission to use an address for a bounded time. A pool is the set of addresses available for allocation. In a fictional classroom, a laptop joins 192.0.2.0/24 and obtains 192.0.2.20, mask 255.255.255.0, gateway 192.0.2.1 and DNS resolver 192.0.2.53. These addresses are for documentation only; no live service is needed. The client must still have a working link and a path to any destination.
Follow the initial exchange
A new client without an address normally starts with a local broadcast. DORA is a memory aid for the usual initial four-message exchange, not every DHCP transaction. An offer is provisional; the selecting client identifies its chosen server in its request. The acknowledgment confirms the binding and options. A negative acknowledgment (DHCPNAK) can mean the proposed address is no longer appropriate. DHCPv4 uses UDP server port 67 and client port 68.
Client -> DHCPDISCOVERServer -> DHCPOFFER (192.0.2.20)Client -> DHCPREQUEST (selected server)Server -> DHCPACK (lease 3600 s)Read the assigned settings
Options carry information in addition to the address: option 1 subnet mask, 3 routers, 6 DNS servers, 51 lease duration, 54 server identifier. The router and DHCP server need not be the same device. A correct address with the wrong gateway can reach local peers yet fail off-link; a wrong DNS resolver can break name lookups while direct IP communication works. Check all settings, not just the address. Reservations associate a chosen address with a client identity according to server policy; that identity is not always simply a MAC address. A manual static address is configured on the host instead.
Renew, rebind or stop using the address
In the ordinary finite lease model, T1 starts renewal with the original server, typically by unicast; T2 starts rebinding with any available server using broadcast. If no successful extension arrives before expiry, the client must stop using the leased address. For a 3600-second lease with default timers, T1 is 1800 seconds and T2 is 3150 seconds after the lease starts. A server may supply different timer values. A successful renewal can establish a new lease interval. Do not treat a DHCP renewal as a new DORA exchange every time.
Check a fictional lease
A host has a valid lease of 7200 seconds with default timers. Find T1 and T2. At 4000 seconds the original server does not answer: which phase is active? At 7200 seconds without any renewal, what must happen? Answer: 3600, 6300, renewal, stop using the address. See RFC 2131 and RFC 2132 for baseline behavior and option definitions. Continue with DHCP relays and IPAM.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
DHCPv4 lease exchange — knowledge check
Apply DHCP and address-management concepts to fictional scenarios.
Which message confirms a selected offer in a usual initial DHCPv4 exchange?
A lease lasts 7200 seconds with default timers. When does renewal begin?
The lease has reached T2 without renewal. What is the next usual action?
A host can reach local peers but not off-link IP addresses. Which assigned option should be checked first?
What must a client do when its lease expires without renewal?