How a DHCP lease gives a device its address
Follow a laptop through an IPv4 lease, calculate its renewal times, and learn what the router’s lease list can tell you.
Join a network without typing an address
When a laptop joins your Wi-Fi, it often needs an IPv4 address, a subnet mask, a gateway, and the address of a DNS resolver. A DHCP server, commonly built into the home router, supplies these details. An address lease gives the laptop permission to use an assigned address for a specified time.
On a first connection, a typical exchange has four parts. The laptop announces that it is looking for configuration. A server offers an address. The laptop requests the offer it wants. The server acknowledges the assignment and supplies the lease details. A returning laptop can sometimes use a shorter exchange when it remembers a previous address. The DHCP protocol
Put a renewal on the clock
Say the laptop receives an eight-hour lease at 09:00. With the protocol’s default timers, it first tries to renew halfway through the lease, at 13:00. It asks the server that issued the address. If that server stays silent, the laptop can keep using the current lease in the meantime.
At seven-eighths of the interval, 16:00 in this example, the laptop broadens its request so that another available DHCP server can respond. If it receives no extension by 17:00, the lease expires and the laptop must stop using that assignment. A server can provide different timers. Successful renewal changes the timetable.
Interpret the router’s device list
A router may still list a tablet that has already left the house because its address lease has time remaining. A lease list tells you about assignments. A separate Wi-Fi client list can help you see which devices are currently associated with an access point. If a printer needs to keep an address, the router may support reserving one for it. Compare dynamic and static addresses
Check your understanding
At 15:00 you see the original 09:00 lease with two hours remaining. Has the laptop already lost permission to use its address because the 13:00 renewal was unsuccessful?
Show the answer
No. The 13:00 timer marks its first renewal attempt. The eight-hour lease still authorizes that assignment until 17:00 unless the server explicitly invalidates it or the client releases it.