Wi-Fi & local networks · Offline reference

DHCP Reference

Read a DHCP lease, renewal timers, address pool and configuration options. The initial renewal attempt normally occurs before expiration. The client can continue using a valid lease, retry and later rebind. T1, T2 and expiration are separate events.

Inputs

Result

Selection
All entries
Calculated or matching entries
Field or eventInterpretationExample or next check
Scope and poolThe subnet and subset available for dynamic allocationIn 192.0.2.64/27, pool .70–.94 has 25 positions. Exclude static addresses.
DORADiscover, Offer, Request, Acknowledge for an initial DHCPv4 leaseAn offer is provisional. Check that the client received an ACK and accepted the configuration.
Relay giaddrIdentifies the relay's client-facing subnet in a conventional routed designIf clients receive the wrong pool, compare relay addressing and the server's scope mapping.
Router and DNS optionsOption 3 supplies routers and option 6 supplies DNS serversA valid lease can still contain an incorrect gateway or resolver.
T1 renewalNormally unicast to the original serverWith an eight-hour lease and default timing, renewal starts around hour four.
T2 rebindingBroadcast renewal request to reach an available serverWith default timing, rebinding starts around hour seven of an eight-hour lease.
Lease expiryContinued use needs a valid lease or other authorizationIf the lease expires without extension, the client stops using the leased address.
In this guide11 sections

Introduction

Read a DHCP lease, renewal timers, address pool and configuration options. The initial renewal attempt normally occurs before expiration. The client can continue using a valid lease, retry and later rebind. T1, T2 and expiration are separate events.

Method and concepts

A new client can broadcast DHCPDISCOVER on its local link. Eligible servers send DHCPOFFER messages. In the SELECTING exchange, the client broadcasts a DHCPREQUEST identifying its chosen server and requested address. The selected server returns DHCPACK if it can grant the lease.

  1. Select an entry to isolate the relevant case.
  2. Read the associated evidence and compare it with your local configuration.

DHCPv4 leases, relays and renewal diagram

  1. DISCOVER · client seeks settings
  2. OFFER · server proposes lease
  3. REQUEST · client selects offer
  4. ACK · server grants lease
This sequence follows a client obtaining a new DHCPv4 lease. Renewal starts with a DHCPREQUEST while the current lease is still valid.

Worked examples

Read the Scope and pool entry

  1. The subnet and subset available for dynamic allocation
  2. In 192.0.2.64/27, pool .70–.94 has 25 positions. Exclude static addresses.

DHCPv4 leases, relays and renewal: Plan a relay-backed /27 pool and an eight-hour lease

  1. Use 192.0.2.64/27 on the client link. Reserve .65 for the router and relay, and .66–.69 for infrastructure. The dynamic interval .70–.94 contains 94 − 70 + 1 = 25 addresses.
  2. A relayed Discover bearing giaddr 192.0.2.65 identifies this client subnet to a central server. Suppose the lease begins at 08:00 with an eight-hour duration and default timer fractions.
  3. T1 is four hours later at 12:00. T2 is seven hours later at 15:00. If no renewal succeeds, the lease ends at 16:00. A successful ACK extends the lease according to the new parameters.

Reference table

DHCP Reference reference
Field or eventInterpretationExample or next check
Scope and poolThe subnet and subset available for dynamic allocationIn 192.0.2.64/27, pool .70–.94 has 25 positions. Exclude static addresses.
DORADiscover, Offer, Request, Acknowledge for an initial DHCPv4 leaseAn offer is provisional. Check that the client received an ACK and accepted the configuration.
Relay giaddrIdentifies the relay's client-facing subnet in a conventional routed designIf clients receive the wrong pool, compare relay addressing and the server's scope mapping.
Router and DNS optionsOption 3 supplies routers and option 6 supplies DNS serversA valid lease can still contain an incorrect gateway or resolver.
T1 renewalNormally unicast to the original serverWith an eight-hour lease and default timing, renewal starts around hour four.
T2 rebindingBroadcast renewal request to reach an available serverWith default timing, rebinding starts around hour seven of an eight-hour lease.
Lease expiryContinued use needs a valid lease or other authorizationIf the lease expires without extension, the client stops using the leased address.

Reading the result

At renewal time T1 a bound client normally unicasts DHCPREQUEST to the server that granted its lease. If unanswered, it can continue using its valid lease and retry. At T2 it enters rebinding and broadcasts so that another eligible server can respond.

Common mistakes

  • Including the router or directed broadcast address in a dynamic pool.
  • Treating a missed T1 renewal as immediate expiry and overlooking the rebinding interval.

Frequently asked questions

Why does a client keep its address after a renewal request receives no answer?

The initial renewal attempt normally occurs before expiration. The client can continue using a valid lease, retry and later rebind. T1, T2 and expiration are separate events.

What helps a centralized server choose a pool for a new client?

For a conventional relay, giaddr identifies the client-facing subnet. The server maps that information to a configured scope. Directly attached requests can use the receiving interface context.

What do UDP ports 67 and 68 identify?

DHCPv4 uses UDP port 67 for the server and UDP port 68 for the client. A relay introduces an additional server-facing exchange.

What are the usual DHCPv4 address-allocation steps?

A common exchange is Discover, Offer, Request, Acknowledgment. A client broadcasts discovery, receives an offer, requests a lease, and waits for the server's acknowledgment.

Is a DHCP reservation the same as a manually configured static address?

A reservation tells the DHCP server to offer a planned address to a matching client identifier or hardware address. The client still obtains its settings through DHCP.

What can cause a duplicate IPv4 address?

A manually assigned value can overlap a dynamic pool, a reservation can be misconfigured, or a client can retain stale configuration. Check the server scope and the local address assignment.

Does DHCP usually provide the default gateway and DNS resolver?

It can provide those configuration options along with an address and lease information. The actual options depend on the server and network configuration.

What happens when a DHCP lease approaches renewal?

A client normally attempts to renew its lease with the server that granted it, then can broaden the request if that server is unavailable. Exact timers and behavior depend on the protocol and implementation.

Why does a DHCP relay exist?

A relay forwards client configuration messages between a local broadcast domain and a DHCP server on another network, because ordinary IP routers do not forward local broadcast traffic by default.

Can a device have an address without DHCP?

Yes. An administrator can configure an address manually, or another protocol or mechanism can assign it. That address still needs to fit the network plan and avoid conflicts.

Does DHCPv6 provide the same default-router setting as DHCPv4?

IPv6 default-router information is normally learned from Router Advertisements. DHCPv6 can provide other configuration such as addresses or DNS information, depending on the network design.

What does a DHCP lease reserve?

It temporarily associates an address and configuration with a client according to the server's lease policy. The client must renew or reacquire the lease to keep using it.

Can a DHCP scope include an address already configured manually?

It should not. Exclude manually assigned addresses or reserve them through the server so the dynamic pool does not offer the same address to another client.

What happens if two DHCP servers answer the same client?

The client may receive competing offers and select one according to its behavior. Misconfigured servers can provide inconsistent gateways, DNS, or address pools, so coordinate authoritative DHCP service.

Why does a client sometimes receive a 169.254.x.x address?

Some operating systems use IPv4 link-local address assignment when DHCP fails. It supports limited local-link communication and does not provide ordinary routed connectivity.

Can DHCP options be different between subnets?

Yes. A server can use scopes or relay information to select subnet-specific pools and options, such as gateways, DNS resolvers, or boot parameters.

Further learning and references