Insights

DHCP lease time: What it means and when to change it

DHCP lease time is how long a device can use its assigned IP address without renewal. Shorter leases free addresses sooner but add renewal traffic.

Illustration of mechanical timer with captive address tag.
On this page

Dynamic Host Configuration Protocol (DHCP) lease time is how long a device can use an assigned Internet Protocol (IP) address without renewing it. Your device normally asks to keep the address before the lease runs out. If the lease expires without a renewal, the device must stop using that address and request a new lease.

In short:

  • Know your time limit. The lease duration is the full term, not the time left on your current lease.
  • Expect an early request. Your device usually asks to keep its address halfway through the lease.
  • Shorten for turnover. A shorter lease can free up addresses sooner on a busy guest network.

What the lease time measures

The lease duration is the full period the DHCP server granted when it assigned or renewed the address. To find the time remaining on a device's current lease, subtract the current time from its expiration time. Two devices with the same lease duration can expire at different times because they got their leases at different times.

When your device asks to keep its address

For Internet Protocol version 4 (IPv4), your device normally asks the server that issued its address to renew the lease halfway through the full lease duration. That first renewal timer is called T1. A successful renewal extends the lease without requiring a different address.

If the device hasn't renewed by T2, normally 87.5% of the way through the full lease, it broadcasts a request so another DHCP server authorized to extend the lease can respond. That's called rebinding. The server can set different values for either timer, and a device can ask to renew before T1.

Neither timer ends the lease. If the requests go unanswered, your device can keep using its current address and settings until the lease expires. It must then stop using the address and start over by requesting a new lease.

When to use a shorter lease

Keep your current duration if most devices stay put and your address pool, the range of addresses the server can hand out, has room. On a busy guest network, consider shortening it if leases from departed devices regularly tie up addresses that new guests need. Shorter leases create more renewal traffic and leave less time before an unrenewed lease expires. Defaults vary by product, so check the setting on the DHCP server for the pool you want to adjust.

Changing the lease duration or the Domain Name System (DNS) servers that DHCP hands out doesn't rewrite leases already on devices. A client can receive the new settings when the server acknowledges a renewal or grants a new lease. An unanswered request doesn't install those settings.

Work from the lease the device already has

Suppose a device gets a 24-hour lease at 08:00. At 16:00, when the lease is eight hours old, you set a four-hour duration and change the DNS servers. Assume the device stays online, uses the default timers and hasn't renewed early.

The first renewal attempt is due around 20:00: half of 24 hours is 12 hours after the grant, or four hours after the edit. If renewal succeeds, the reply can deliver the new four-hour duration and DNS settings. If no renewal succeeds, rebinding starts around 05:00 the next day: 87.5% of 24 hours is 21 hours after the grant, or 13 hours after the edit. Without an extension, the old lease expires at 08:00 the next day, 24 hours after the grant and 16 hours after the edit.

The new four-hour setting doesn't schedule any of those events. Use the original lease to estimate when this device will ask, then check the device to see whether it received the change. Custom timers or early renewal can move that request, and a request can go unanswered.

How to check when your lease expires

On a Windows device you're authorized to inspect, open Command Prompt. This check is read-only.

1. Run the command to show the full configuration for all adapters.

ipconfig /all

2. Find the Wi-Fi or Ethernet adapter that's connected.

3. Read the Lease Expires line. It shows when that adapter's current lease will end if it isn't extended. If no lease is listed, confirm you're looking at the connected adapter and that it uses DHCP.

4. Compare the lease and DNS settings after a change. If Lease Obtained and Lease Expires still match the times you recorded before the edit, the adapter is still showing its old lease. Check DNS Servers separately to see whether the new addresses are listed. This check tells you what's on that adapter, not whether every device has updated.

Where doxx.net fits. doxx.net is a private network that runs on its own IP address space, DNS root and hardware. To connect a device or agent, you can create an account and download the doxx.net app.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

Keep your browsing, messages, files, and agents private.