Use it to read a capture of a DHCP exchange: how far it got, which server answered, which relay passed it on, and what the client was told.
DHCPv4 Packet Evidence
1. In the capture: which of Discover, Offer, Request, ACK are present for the transaction?
2. Only Discovers → no server or relay hears them.
3. Offer but no ACK → the Offer or Request is lost; DHCP snooping on an untrusted port?
4. Read yiaddr, giaddr and option 54 — right subnet, right relay, right server?
5. NAK → the client asked for an address not valid here.
Discover broadcast → relay sets giaddr and forwards → server picks the pool for giaddr → Offer with yiaddr and options → Request naming the server (option 54) → ACK → client uses the address
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip dhcp bindingVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
show ip dhcp binding
show ip dhcp pool
show ip dhcp conflict
show ip dhcp server statistics
debug ip dhcp server packet
On a Cisco DHCP server: the bindings list the addresses handed out with client identifier and lease expiry; the pool view shows how many addresses are in use; conflicts lists addresses the server found already in use; the statistics count each message type sent and received. The debug shows the exchange per client; use it briefly. On a relay, show ip interface <interface> shows the helper address.
In a capture, filter on dhcp (or bootp) and on one transaction ID. Check which of the four messages are present, the value of yiaddr, giaddr and option 54, and the options in the ACK.
Known-good: Discover, Offer, Request and ACK with the same transaction ID, an address in the right subnet, and the expected gateway and DNS servers in the ACK.
Step 2 Failure isolation workflow Narrow the fault
- Only Discovers, repeated. No server or relay hears them: the client is in the wrong VLAN, the helper address is missing, or the server is down.
- Discover and Offer, then nothing. The Offer does not reach the client — a filter such as DHCP snooping on an untrusted port, or the reply is sent to an address the client cannot receive.
- Offers from an unexpected server. A second DHCP server on the network; option 54 identifies it.
- A NAK follows the Request. The client asked for an address that is not valid on this network — typically after moving between networks.
- giaddr is zero in a relayed setup. The message did not pass through the relay.
- The address is from the wrong subnet. giaddr is not the address the server expects, or the server's pools are mapped wrongly.
- The client gets an address but a wrong gateway or DNS. Read options 3 and 6 in the ACK; the pool is misconfigured.
- The server reports no free addresses. The pool is exhausted, or filled with stale leases and conflicts.
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.
Follow one transaction ID through Discover, Offer, Request and ACK. giaddr shows the relay and decides the pool; option 54 identifies the server; a NAK means the request was refused. The client's first messages are broadcasts from 0.0.0.0.
- Capture filter
dhcp(orbootp), then one transaction ID. show ip dhcp binding/show ip dhcp pool— the server's leases and free addresses.show ip dhcp server statistics— messages per type.debug ip dhcp server packet— the exchange per client; use briefly.
ReferenceWhat it is1 section · depth on demand
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
A client that gets no address, the wrong address or a wrong setting can be diagnosed from a capture of the four-message exchange. The fields show how far the exchange got, which server answered, which relay passed it on, and exactly what the client was told.
ReferenceHow it works1 section · depth on demand
How it works
Clients send from UDP port 68 to port 67; servers and relays answer from 67.
Fixed fields that matter.
| Field | Meaning |
|---|---|
| op | 1 = from the client, 2 = from the server |
| xid | Transaction ID chosen by the client; the same in all four messages of one exchange |
| flags | The broadcast bit: the client asks for replies to be broadcast |
| ciaddr | The client's current address, when it already has one (renewals) |
| yiaddr | "Your address" — the address the server offers or assigns |
| giaddr | The relay's address on the client's network; zero if no relay is involved |
| chaddr | The client's MAC address |
Options that matter.
| Option | Content |
|---|---|
| 53 | Message type: 1 Discover, 2 Offer, 3 Request, 4 Decline, 5 ACK, 6 NAK, 7 Release, 8 Inform |
| 1, 3, 6, 15 | Subnet mask, default gateway, DNS servers, domain name |
| 51 | Lease time |
| 54 | Server identifier — which server sent this, or which one the client chose |
| 50 | Requested address |
| 55 | The list of options the client asks for |
| 61 | Client identifier |
| 82 | Information added by a relay, such as the switch port |
The exchange.
1. Discover — the client, with no address, broadcasts from 0.0.0.0 to 255.255.255.255.
2. Offer — a server proposes an address in yiaddr, with the settings.
3. Request — the client broadcasts which offer it accepts, naming the server in option 54. Other servers see this and withdraw their offers.
4. ACK — the chosen server confirms. Only now may the client use the address. A NAK means the request was refused and the client must start over.
Renewal. At half the lease time the client sends a Request directly to its server and receives an ACK. If the server does not answer, the client broadcasts at seven-eighths of the lease, and gives up the address when the lease runs out.
Through a relay. A router configured with ip helper-address receives the client's broadcast, writes its own interface address into giaddr, and forwards the message to the server as unicast. The server uses giaddr to choose the pool for that network and sends its reply back to the relay.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
DHCPv4 packets and options
A DHCP message combines fixed BOOTP fields with a list of options, and the options carry most of what matters. RFC 2132 defines them:
- Option 53 holds the message type: 1 DISCOVER, 2 OFFER, 3 REQUEST, 4 DECLINE, 5 ACK, 6 NAK, 7 RELEASE, 8 INFORM.
- Options 1, 3 and 6 carry the subnet mask, routers and DNS servers.
- Option 51 holds the lease time, and options 58 and 59 the renewal (T1) and rebinding (T2) times.
- Option 54 identifies the server.
- Option 55 lists the options the client wants.
- Option 255 ends the list.
Fixed fields worth knowing
| Field | Meaning |
|---|---|
| op | 1 = request, 2 = reply |
| xid | Transaction ID linking one exchange |
| flags | The broadcast bit |
| ciaddr | Client address (when renewing) |
| yiaddr | "Your" address: what the server assigns |
| siaddr | Next server (for example TFTP for booting) |
| giaddr | Relay agent address |
| chaddr | Client hardware address |
Frequently used options (RFC 2132)
| Code | Option | Example |
|---|---|---|
| 1 | Subnet mask | 255.255.255.0 |
| 3 | Router | 10.110.0.1 |
| 6 | DNS servers | 10.20.0.53, 10.20.0.54 |
| 15 | Domain name | example.net |
| 42 | NTP servers | 10.99.0.10 |
| 43 | Vendor specific | WLC addresses for APs |
| 50 | Requested IP | The client's previous address |
| 51 | Lease time | 28800 (8 h) |
| 60 | Vendor class | "Cisco AP c9120" |
| 61 | Client identifier | 01 + MAC address |
| 66 / 67 | TFTP server / boot file | Phones and PXE boot |
| 82 | Relay agent information (RFC 3046) | Switch and port of the client |
host$ sudo tcpdump -ni eth0 -vvv 'udp port 67 or udp port 68' | grep -E "DHCP-Message|Requested-IP|Server-ID|Subnet-Mask|Default-Gateway|Domain-Name-Server|Lease-Time"
DHCP-Message (53), length 1: Offer
Server-ID (54), length 4: 10.20.0.15
Lease-Time (51), length 4: 28800
Subnet-Mask (1), length 4: 255.255.255.0
Default-Gateway (3), length 4: 10.110.0.1
Domain-Name-Server (6), length 8: 10.20.0.53,10.20.0.54
R1(config)# ip dhcp pool APS
R1(dhcp-config)# option 43 hex f108.0a14.0010.0a14.0011
Option 43 for Cisco APs
The value f1 08 0a140010 0a140011 is type 0xf1, length 8 (two addresses × 4 bytes), followed by the WLC addresses 10.20.0.16 and 10.20.0.17 in hex. A wrong length byte is a common reason APs don't find their controller.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → DHCPv4 Packet Evidence. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%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.