Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DHCP (Dynamic Host Configuration Protocol)

Direct answer

DHCP automatically supplies IPv4 clients with addressing parameters such as an IP address, subnet mask, default gateway and DNS servers. It uses UDP and normally starts with broadcast traffic because a new client does not yet know its network configuration or DHCP server.

When to use this

Use DHCP when clients should receive centrally managed addressing instead of static configuration, or when troubleshooting a client that receives no address, the wrong scope, wrong gateway or wrong DNS settings.

First 30 seconds

1. Client: ipconfig /all — 169.254.x.x (no answer) or a wrong address?

2. show ip dhcp server statistics — DISCOVERs arriving?

3. None → relay missing: show ip interface <vlan> | include Helper on the gateway.

4. DISCOVERs but no OFFER → show ip dhcp pool (exhausted?) and the pool network matches the giaddr subnet?

5. show ip dhcp conflict — addresses blocked by conflicts?

Operational verification

client broadcasts DISCOVER → local server or relay (ip helper-address) receives it → server picks the pool matching the subnet → OFFER → REQUEST → ACK → client configures address, gateway and DNS

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Putting ip helper-address on the wrong interface.
  • Assuming an address in the correct subnet shows DHCP is healthy; it may be static, stale or assigned by another server.
  • Forgetting excluded infrastructure addresses.
  • Treating a DHCP ACK as evidence that DNS and the gateway work.
  • Troubleshooting the server before verifying VLAN/interface state and whether Discover leaves the client segment.
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS XE · Cisco IOS / IOS XE
Scope / prerequisiteUse DHCP when clients should receive centrally managed addressing instead of static configuration, or when troubleshoot…
What next?3 suggested next steps
Child topics (this level)3
Evidence1
On this pageJump to a specific section
Technical verification guide · documented only

Check the correct boundary

Separate DHCPv4 pool allocation, lease state, relay reachability and client delivery. A server binding does not prove the client can use its gateway.

Cisco IOS/IOS XE DHCP server commands below run on the server; a relay or third-party server has different evidence. DORA is the typical initial IPv4 exchange; renewals need not repeat all four messages.

Read-only example / checkInterpretationDoes not prove
show ip dhcp binding
Server leases and recorded clients No proof that a client retained the lease or can reach services
show ip dhcp conflict
Addresses marked conflicted on this IOS DHCP server An empty table does not exclude every addressing collision
show ip dhcp server statistics
Message counters, including Discover, Offer, Request and ACK Counters require a controlled time interval and do not reveal the full packet path

Official documentation

Documentation reviewed 12 October 2026. These are explanatory reference examples, not observed production state, captured Evidence, or a new stored verification event. Confirm exact software release and scope on the device.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and output interpretation Verify boundary

Verify the client receives an address from the intended subnet with the intended mask, gateway, DNS and lease. On a Cisco DHCP server, use binding/pool statistics to confirm lease ownership; on a relay path, verify the SVI/interface and helper configuration plus routing between relay and server. A packet capture can distinguish no Discover, Discover without Offer, Offer without Request or Request without ACK. That message boundary is more precise than simply saying “DHCP is down.” After assignment, verify gateway and DNS separately because a valid lease can still contain incorrect options.

Step 2 Verification workflow Narrow the fault

1. Check physical/interface state and VLAN membership.

2. Confirm the client is configured for DHCP.

3. Determine whether the server is local or requires a relay.

4. Check the local/relay interface configuration.

5. Check server pool utilization, bindings and conflicts.

6. Capture UDP 67/68 and find the first missing DORA transition.

7. After a lease is obtained, separately verify gateway, DNS and application reachability.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Troubleshooting trees

Start from the symptom

Prove the nearest boundary, branch on the observation, and repeat the original test after the minimum controlled change.

Symptom-first flow DHCP client receives no address 7 decision steps

First proof

Trace DORA from client access VLAN through relay to server/scope and back.

Useful read-only checks: show ip dhcp binding · show ip dhcp pool · show interfaces trunk

Step 1 Client link/VLAN Observe → decide

Confirm the client port and VLAN are correct and operational.

If healthy: Client broadcasts enter the intended VLAN.

If broken: Fix access/VLAN state before server-side work.

Step 2 Broadcast reaches relay/server boundary Observe → decide

Verify the request reaches the local DHCP server or relay.

If healthy: DISCOVER/REQUEST crosses the expected boundary.

If broken: Inspect VLAN, trunk or relay placement.

Step 3 Relay is correct Observe → decide

Verify helper/relay target and source interface context.

If healthy: Relay forwards toward the intended server.

If broken: Correct relay target or routing to the server.

Step 4 Scope can allocate Observe → decide

Check scope existence, free addresses and exclusions/conflicts.

If healthy: A valid lease is available for this subnet.

If broken: Resolve exhausted/wrong scope or conflicts.

Step 5 Offer/ACK returns Observe → decide

Confirm server response returns through relay/VLAN to the client.

If healthy: OFFER/ACK reaches the client segment.

If broken: Trace return routing, ACL or snooping boundary.

Step 6 Binding matches client Observe → decide

Check the resulting lease/binding identity and options.

If healthy: Client has the intended address and options.

If broken: Resolve wrong scope/options or stale identity.

Step 7 Verify downstream services Observe → decide

Test gateway, DNS and the original application separately.

If healthy: The client works beyond lease acquisition.

If broken: A lease alone does not prove routing or DNS.

Proof limit

A passing step proves only that boundary; continue until the original symptom is explained and retested.

Failure signatures

Recognize the symptom, then prove the boundary

Observed symptom → candidate boundary → discriminating check → original-test closure. A signature narrows the search; it never proves root cause by itself.

DHCP Discover seen, no Offer returns
1 · Observe

The client starts DORA but no usable Offer reaches it.

2 · Candidate boundaries

relay/helper path · server reachability · scope exhaustion/mismatch · DHCP snooping/security

3 · Discriminate

prove Discover reaches relay/server boundary → check scope availability → trace Offer return path

4 · Proof limit

No Offer at the client does not prove the DHCP server is down.

Repeat the original failing test after the minimum controlled change before calling recovery verified.
Offer exists but client does not obtain a lease
1 · Observe

DORA progresses beyond Discover but does not complete with a usable ACK/lease.

2 · Candidate boundaries

request/ACK return path · duplicate/conflict handling · client state · security filtering

3 · Discriminate

follow Request/ACK → check binding/conflict state → repeat from the same client/VLAN

4 · Proof limit

An Offer does not prove the client can receive or accept the final lease.

Repeat the original failing test after the minimum controlled change before calling recovery verified.
Operational depth

DHCP operational boundary

Boundary-first guidance: prove the nearest state before moving outward.

Fast answer

Treat lease acquisition, relay forwarding, scope selection and post-lease services as separate boundaries.

Boundary chain

client link → DISCOVER/OFFER → relay/giaddr → server/scope → REQUEST/ACK → installed lease → DNS/gateway/application

Healthy

Client receives the expected address, mask, gateway and DNS options from the intended scope, then reaches the next service boundary.

Broken

No OFFER, wrong scope, exhausted pool, relay failure or wrong options are distinguished before blaming downstream routing.

Does not prove

A valid lease does not prove DNS, default-gateway reachability, Internet access or application health.

Key points
  • Server UDP port: 67
  • Client UDP port: 68
  • Initial exchange: Discover → Offer → Request → ACK (DORA)
  • Broadcasts do not cross routers unless a relay function such as ip helper-address is configured.
Key checks
  • show ip dhcp binding — leases handed out by the IOS server.
  • show ip dhcp pool — pool range, leased and free addresses.
  • show ip dhcp conflict — addresses found in use by ping or gratuitous ARP.
  • show ip dhcp server statistics — DISCOVER/OFFER/REQUEST/ACK counters.
  • show ip interface <if> | include Helper — relay address on the client VLAN.
  • debug ip dhcp server packet — DORA step by step (briefly).
ReferenceWhat it is1 section · depth on demand

What DHCP is

DHCP is an application-layer client/server protocol that automates IPv4 host configuration. A new client can start without an IPv4 address and use broadcast traffic to discover a DHCP service. The server or relay then supplies a lease containing an address and associated options.

ReferenceWhy it matters1 section · depth on demand

Why DHCP matters

Centralized leases reduce manual addressing work and make large client networks easier to operate consistently. DHCP is also a troubleshooting dependency: a client may have perfect Layer-2 connectivity but still fail because the correct server, relay, scope or option is missing.

ReferenceHow it works2 sections · depth on demand

How DHCP works

The common first lease follows DORA: Discover → Offer → Request → ACK. The client uses UDP 68 and the server uses UDP 67. When the server is on another subnet, a relay receives the local broadcast and forwards the request as routable unicast while identifying the client-side subnet.

DHCP step by step

The exchange. Four messages, known by their initials as DORA:

1. Discover — the client broadcasts: "is there a DHCP server?"

2. Offer — a server proposes an address and settings.

3. Request — the client asks for that offer.

4. Acknowledge — the server confirms; the client may now use the address.

Leases. The address belongs to the client for the lease time. Halfway through, the client asks its server to extend it. If the server stays silent, the client tries any server later on, and gives the address up when the lease expires.

Across routers. The Discover is a broadcast and stops at the router. For clients on a network without a server of its own, the router forwards the messages:

interface Vlan20
 ip address 10.20.0.1 255.255.255.0
 ip helper-address 10.0.0.10

The router adds its own address on the client's network to the forwarded message. The server uses that address to pick the right pool.

A pool on a Cisco router:

ip dhcp excluded-address 10.20.0.1 10.20.0.20
ip dhcp pool VLAN20
 network 10.20.0.0 255.255.255.0
 default-router 10.20.0.1
 dns-server 10.0.0.53
 lease 1

Excluded addresses are those the server must not hand out — the gateway, servers, printers with fixed addresses.

Options carry everything beyond the address: 1 subnet mask, 3 default gateway, 6 DNS servers, 15 domain name, 51 lease time, and vendor-specific ones for phones and access points.

Protection. Any device can answer a Discover. DHCP snooping on the switches allows server messages only from trusted ports, so a stray router or a hostile device cannot hand out addresses.

When it fails, a client typically assigns itself an address in 169.254.0.0/16 — the visible sign that no offer arrived.

ReferenceImportant terms & boundaries4 sections · depth on demand

Important terms and limits

Scope / pool: addresses and options available for one subnet.

Binding / lease: server-side state for an assigned client address.

Relay: Layer-3 function that forwards DHCP between subnets.

Boundary: a successful ACK shows a lease was granted, but it does not show DNS, default-gateway reachability or application connectivity.

In depth

DHCP

DHCP gives hosts their IP configuration automatically. RFC 2131 describes the four-message exchange: the client broadcasts a DHCPDISCOVER, servers answer with DHCPOFFERs, the client sends a DHCPREQUEST naming the chosen server, and that server commits the lease with a DHCPACK. Clients send to UDP port 67 and servers reply to port 68.

Messages (RFC 2131)

MessagePurpose
DISCOVERClient looks for servers
OFFERServer offers an address and options
REQUESTClient accepts one offer (or renews)
ACKServer confirms the lease
NAKServer refuses the request
DECLINEClient found the address already in use
RELEASEClient gives up its lease
INFORMClient with an address asks only for options

Relays (RFC 2131)

When client and server are on different subnets, a relay agent forwards the messages and sets giaddr; the server uses giaddr to pick the pool and sends replies back to the relay.

Leases and renewal (RFC 2131)

StateAction
BOUNDUsing the address
RENEWING (T1)Unicast renewal to the leasing server
REBINDING (T2)Broadcast to any server
Lease expiryStop using the address, restart at INIT
SW-DIST(config)# interface Vlan110
SW-DIST(config-if)# ip helper-address 10.20.0.10
host$ sudo dhclient -v eth0
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 10.110.0.64 from 10.110.0.1
DHCPREQUEST for 10.110.0.64 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.110.0.64 from 10.110.0.1
bound to 10.110.0.64 -- renewal in 41837 seconds.

Where each exchange can fail

Missing stepLikely cause
No OFFERNo relay, the server is unreachable, the pool is exhausted, or DHCP snooping drops the reply (untrusted uplink)
OFFER, but no ACKThe client can't receive the reply (broadcast flag, VLAN issue)
NAKThe client moved to another subnet with an old address
DECLINEAn address conflict; check show ip dhcp conflict

In client output such as DHCPACK of 10.110.0.64 from 10.110.0.1, the from address is the relay or gateway, not necessarily the real server.

Conflict checks (RFC 2131)

Servers should probe an address (for example with ICMP echo) before offering it; clients should check the received address (for example with ARP) and send DECLINE if it's in use.

Security

DHCP has no authentication; use DHCP snooping on switches to block rogue servers and record bindings for IP Source Guard and DAI.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Concept and state model

A new IPv4 DHCP client normally broadcasts DHCPDISCOVER, receives one or more DHCPOFFER messages, sends DHCPREQUEST for the selected offer and receives DHCPACK with the lease parameters. The server selects an address from the scope/pool associated with the client subnet and returns options such as mask, default gateway, DNS servers and lease time. When the server is not on the client broadcast domain, a relay such as ip helper-address forwards the request as unicast and supplies gateway/subnet context (commonly through the relay/gateway address field) so the server can select the correct scope. Lease renewal later uses different timing and often unicast behavior.

Operational boundaries and common misconceptions

Receiving a DHCPACK shows configuration was assigned, but it does not show the default gateway, DNS server or application path works. A 169.254/16 self-assigned address on many clients is evidence that normal DHCP assignment did not complete, but not evidence of the specific cause. A server may have free addresses while the relay path is broken, and a relay may forward requests while the server selects the wrong/missing scope. Keep client broadcast domain, relay, server scope and post-lease network function as separate boundaries.

ReferenceConfiguration & state1 section · depth on demand

Configuration model and design choices

Define non-overlapping address pools/scopes, exclude infrastructure/static addresses, and make default gateway/DNS options match the actual routed design. Place relay configuration on the Layer 3 interface that receives the client broadcast and point it at the intended server(s). If multiple DHCP servers are authoritative, coordinate scopes and failover rather than letting independent pools overlap. Treat DHCP snooping as a separate Layer 2 security feature: it can deliberately block server messages on untrusted ports and therefore interacts with delivery without changing DHCP protocol semantics.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2131

Authoritative/upstream documentation reviewed for bounded claims in IP Services → DHCP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2131.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE 17.x 17.x

Official Cisco vendor documentation reviewed for bounded reference claims: DHCP server pools, leases and client parameter assignment. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/ip-addressing/b-ip-addressing/m_config-dhcp-server-xe.html · confidence 94%
Useful command sets

Commands commonly referenced together

Compact reference collections only; they are not a guided troubleshooting workflow.

Mixed DHCP / DNS separation bundle

Lease → resolver → service

Use when a client says “network/DNS does not work”.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
Dynamic Host Configuration Protocol
Embedded reference data

Quick lookup tables

DHCP ports and roles

Fast lookup for the normal IPv4 DHCP client/server transport roles.

ItemValue
Server UDP port67
Client UDP port68
Initial client behaviorBroadcast discovery when server is unknown
Routed-network supportDHCP relay / ip helper-address
Common initial sequenceDiscover → Offer → Request → ACK

DHCP DORA

DHCPv4 address-allocation exchange.

StepMessagePurpose
1DiscoverClient looks for DHCP servers
2OfferServer offers address/options
3RequestClient requests the selected offer
4ACKServer confirms lease/options

DHCP · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

DHCP phaseClient/server action
DiscoverClient searches for DHCP service
OfferServer proposes address/options
RequestClient requests selected offer/renewal
ACKServer confirms lease
RelayForwards between client subnet and remote server
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

DHCP relay config skeleton

Relay client broadcasts from a routed VLAN to a remote server

interface Vlan20
 ip address 10.20.20.1 255.255.255.0
 ip helper-address 10.50.50.10

Verify the client VLAN/interface, relay address, routed reachability to the server and server scope. A DHCP lease still does not prove DNS.

DHCP works, DNS fails

Separate address assignment from name resolution

1. Confirm client IP/mask/gateway/DNS options.

2. Verify DHCP binding/relay only if address assignment is in question.

3. Test IP reachability to the configured resolver.

4. Query the exact DNS name and inspect answer/status.

5. Continue to TCP/application only after DNS is proven.

A valid lease does not prove DNS.

Confirmation

Confirm action

Continue?