Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DHCPv4 Packet Evidence

Direct answer

A DHCP message has fixed fields — transaction ID, the offered address (yiaddr), the relay's address (giaddr), the client's MAC address — and options: message type (53), mask, gateway, DNS, lease time, server identifier (54).

When to use this

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.

First 30 seconds

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.

Operational verification

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
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Key commandshow ip dhcp binding
Scope / prerequisiteUse it to read a capture of a DHCP exchange: how far it got, which server answered, which relay passed it on, and what …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 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 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
Key points

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.

Key checks
  • Capture filter dhcp (or bootp), 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

Mental model

A DHCP message has two parts: a fixed set of fields inherited from the older BOOTP protocol, and a list of options. The fixed fields carry the addresses involved; the options say what kind of message it is and deliver the settings — mask, gateway, DNS, lease time.

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.

FieldMeaning
op1 = from the client, 2 = from the server
xidTransaction ID chosen by the client; the same in all four messages of one exchange
flagsThe broadcast bit: the client asks for replies to be broadcast
ciaddrThe client's current address, when it already has one (renewals)
yiaddr"Your address" — the address the server offers or assigns
giaddrThe relay's address on the client's network; zero if no relay is involved
chaddrThe client's MAC address

Options that matter.

OptionContent
53Message type: 1 Discover, 2 Offer, 3 Request, 4 Decline, 5 ACK, 6 NAK, 7 Release, 8 Inform
1, 3, 6, 15Subnet mask, default gateway, DNS servers, domain name
51Lease time
54Server identifier — which server sent this, or which one the client chose
50Requested address
55The list of options the client asks for
61Client identifier
82Information 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

FieldMeaning
op1 = request, 2 = reply
xidTransaction ID linking one exchange
flagsThe broadcast bit
ciaddrClient address (when renewing)
yiaddr"Your" address: what the server assigns
siaddrNext server (for example TFTP for booting)
giaddrRelay agent address
chaddrClient hardware address

Frequently used options (RFC 2132)

CodeOptionExample
1Subnet mask255.255.255.0
3Router10.110.0.1
6DNS servers10.20.0.53, 10.20.0.54
15Domain nameexample.net
42NTP servers10.99.0.10
43Vendor specificWLC addresses for APs
50Requested IPThe client's previous address
51Lease time28800 (8 h)
60Vendor class"Cisco AP c9120"
61Client identifier01 + MAC address
66 / 67TFTP server / boot filePhones and PXE boot
82Relay 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
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
bootp fieldsdhcp dora packetdhcp xid
Confirmation

Confirm action

Continue?