Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DHCP Server

Direct answer

A DHCP server hands out IP addresses and settings — subnet mask, default gateway, DNS servers, domain name and lease time — from configured pools. On Cisco IOS it is set up with ip dhcp pool, with ip dhcp excluded-address for addresses it must not lease.

When to use this

Use the DHCP Server topic when configuring a Cisco device as a DHCP server or when clients reach the server but leases are missing, exhausted or contain the wrong options.

First 30 seconds

1. DHCP server on IOS: pool with network, default-router, dns-server.

2. Exclude static addresses.

3. Watch conflicts and utilisation.

4. Relay needed for remote subnets (ip helper-address).

5. Check lease time.

Operational verification

pool → offer/ack → binding

Evidence · next step

Verify client configuration and gateway/DNS options, then test the routed service path.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common server-side mistakes
  • A pool network/mask that does not match the client subnet.
  • Exhausted or over-excluded address ranges.
  • Wrong default-router or dns-server values.
  • Assuming a binding shows end-to-end connectivity.
  • Clearing conflicts without understanding why the address was marked conflicting.
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 / IOS XE · Cisco IOS XE
Key commandip dhcp excluded-address <start> <end>
Scope / prerequisiteUse the DHCP Server topic when configuring a Cisco device as a DHCP server or when clients reach the server but leases …
Show · 3Reference · 7
What next?3 suggested next steps
Child topics (this level)6
Catalog command links10
Evidence4
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show ip dhcp binding

Look first: IP, client identifier/MAC, lease state/expiry

Healthy: Expected client has the intended lease.

Warning: Missing/wrong binding, duplicate/conflict or unexpected scope.

Does not prove: A lease does not prove gateway, DNS or application reachability.

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

Correlate one client MAC/client identifier with DISCOVER/OFFER/REQUEST/ACK semantics, pool utilization, binding/lease state and the exact options delivered. A free pool alone does not show that the request matched it. Verification should correlate one client identity and one subnet across the exact transaction. Inspect interface/VLAN state, helper or server reachability, bindings/pool utilization and the parameters ultimately installed on the client. A packet capture or counters can show message progress, while client route/ARP/DNS checks show later stages. Keep protocol success separate from service success.

Step 2 Server verification Narrow the fault

Start with show ip dhcp pool for capacity and scope, then show ip dhcp binding for the client lease and show ip dhcp conflict for quarantined addresses. If the server has capacity but does not answer, verify that the request reaches the server and maps to the intended subnet/pool.

Evidence references

Evidence · 4 on this Topic

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

command output · 3other · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Exclude infrastructure addresses before defining the usable pool.
  • The network statement defines the pool subnet; it is not a routing command in DHCP pool mode.
  • A binding shows a lease the local server actually owns.
  • Conflicts can remove addresses from normal allocation until the cause is understood.
Key checks
  • show ip dhcp binding — leases
  • show ip dhcp pool — utilisation
  • show ip dhcp conflict — conflicts
  • show ip dhcp server statistics — message counters
ReferenceWhat it is1 section · depth on demand

What the DHCP server controls

The DHCP server selects an address from a matching pool and returns options such as default gateway, DNS server and lease lifetime. On Cisco IOS/IOS XE, globally excluded addresses are kept out of the dynamic allocation range.

ReferenceHow it works1 section · depth on demand

Lease selection and state

When a request arrives, the server identifies the client subnet, selects a matching pool, checks address availability/conflicts and creates or refreshes a binding. show ip dhcp pool, show ip dhcp binding and show ip dhcp conflict expose different parts of that state.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

DHCP server on Cisco IOS XE

A router or Layer 3 switch can serve DHCP for small sites or labs. Cisco's IOS XE DHCP server guide configures it with ip dhcp pool (network, default router, DNS servers, domain name, lease and options), excludes static addresses with ip dhcp excluded-address, and lists the defaults: the service is enabled, leases last one day unless set, and the server pings a pool address twice (2-second timeout) before assigning it.

R1(config)# ip dhcp excluded-address 10.110.0.1 10.110.0.20
R1(config)# ip dhcp pool USERS-110
R1(dhcp-config)# network 10.110.0.0 255.255.255.0
R1(dhcp-config)# default-router 10.110.0.1
R1(dhcp-config)# dns-server 10.20.0.53 10.20.0.54
R1(dhcp-config)# domain-name example.net
R1(dhcp-config)# lease 0 8
R1(dhcp-config)# option 150 ip 10.20.0.60
R1(config)# ip dhcp database flash:dhcp-bindings.db write-delay 300
R1# show ip dhcp pool USERS-110
Pool USERS-110 :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0
 Total addresses                : 254
 Leased addresses               : 87
 Excluded addresses             : 20
R1# show ip dhcp binding | include 10.110.0.64
10.110.0.64     0150.5400.1234.56       Nov 28 2026 06:41 PM    Automatic  Active     Vlan110
R1# show ip dhcp conflict
R1# show ip dhcp server statistics

Features (DHCP server guide)

FeatureCommand
Manual bindinghost, client-identifier or hardware-address in a pool
Database agentip dhcp database <url>; strongly recommended so bindings survive reloads
Utilisation alertsutilization mark high <n> low <n> log
Optionsoption <code> {ascii | hex | ip}
Disableno service dhcp (also disables the relay)

Conflict detection (guide)

The server uses ping and gratuitous ARP to detect conflicts; conflicting addresses are removed from the pool until an administrator clears them (clear ip dhcp conflict).

When to use a central server instead

For larger networks, use central DHCP servers (with failover) and relays on the gateways; device DHCP suits small branches and labs.

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.

Quick reference

A Cisco IOS DHCP server hands out addresses from configured pools along with the gateway, DNS servers, domain name and lease time. Excluded addresses keep static devices out of the pool.

ip dhcp excluded-address 10.20.0.1 10.20.0.20
ip dhcp pool USERS
 network 10.20.0.0 255.255.255.0
 default-router 10.20.0.1
 dns-server 10.0.0.53 10.0.0.54
 domain-name corp.example.com
 lease 1
show ip dhcp binding
show ip dhcp conflict

Documented example, not captured output.

The router pings an address before leasing it and records conflicts if something answers.

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

Protocol/service mechanics and state model

A server evaluates the incoming client identity and relay context, selects an eligible pool, allocates or reuses an address, returns options such as default gateway and DNS, and records lease state. DORA is protocol sequencing, while the lease database is durable server-side state that explains what address the server believes it owns for the client. DHCP should be read as a stateful configuration-delivery protocol across Layer-2 and Layer-3 boundaries. Broadcast discovery, relay behavior, server pool selection, client identity, lease timers and applied interface state are separate pieces of evidence. Server and client can each look locally healthy while a relay, VRF, helper target, return route or VLAN boundary prevents the complete exchange. DORA is useful shorthand, but operational certainty comes from following one exact client through message direction, selected scope and resulting lease.

Limits and common misconceptions

An ACK shows that DHCP completed a lease transaction, but it does not show ARP/ND, default-gateway reachability, DNS resolution or application connectivity. Do not treat DHCP as a universal connectivity test. An address lease shows configuration delivery, not gateway forwarding, DNS health, security policy or application reachability. Conversely, a static-address test succeeding does not show DHCP itself works. Preserve the distinction between discovery transport, server allocation logic, relay context, client-applied state and the later forwarding path.

ReferenceConfiguration & state2 sections · depth on demand

Minimal Cisco server workflow

1. Exclude infrastructure/static addresses with ip dhcp excluded-address.

2. Create the pool with ip dhcp pool <name>.

3. Define the served subnet with network <network> <mask>.

4. Add default-router, dns-server, optional domain/lease settings.

5. Verify pool, binding and conflict state before packet-level troubleshooting.

Design and configuration intent

Keep scopes/pools aligned with routed subnets, exclude infrastructure addresses, make lease duration intentional, and ensure option values represent the gateway/DNS services actually reachable from that client segment. Configuration should preserve a clear ownership boundary between the client subnet, relay/default gateway and server scopes. Address ranges, exclusions, default-router and DNS options, lease times and relay targets should reflect the real routed design. Avoid using a broad helper or pool as evidence of correctness; a syntactically valid configuration can still choose the wrong scope or source context.

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 → DHCP Server. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2131.html · confidence 94%
Embedded reference data

Quick lookup tables

DHCP server command map

Which Cisco command answers which server-side question.

QuestionCommand
Is the address scope configured and available?show ip dhcp pool
Did this local server grant a client lease?show ip dhcp binding
Has this server quarantined an address as conflicting?show ip dhcp conflict
Which addresses must never be dynamically allocated?ip dhcp excluded-address <start> <end>
Where are subnet/options configured?ip dhcp pool <name>

DHCP Server · operational reference

Compact protocol/state/evidence reference for fast lookup.

StateMeaning
Pool eligibleRequest maps to scope
Binding presentLease state exists
Options deliveredClient parameters supplied
Client trafficSeparate forwarding proof
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Healthy vs suspicious server evidence

Healthy: matching pool exists, capacity remains, intended client binding appears after DORA, and conflict state is understood/empty.

Suspicious: wrong pool/mask, exhausted addresses, no binding despite received requests, or conflict entries consuming expected client addresses.

Confirmation

Confirm action

Continue?