Sub topic 11
NAK, Decline, Release and Inform
This chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange and the lease lifecycle (T1 renewal, T2 rebinding, expiry). It covers four messages that fall outside the happy path: NAK, Decline, Release and Inform.
The four messages at a glance
Each of these messages answers a case that DORA does not: a server refusing a request, a client refusing an address, a client giving an address back, and a client that needs settings but not an address.
| Message | Sent by | Sent to | Meaning |
|---|---|---|---|
| DHCPNAK | Server | Client | "You may not use that address." |
| DHCPDECLINE | Client | Server | "That address is already in use, I reject it." |
| DHCPRELEASE | Client | Server | "I am done with this address." |
| DHCPINFORM | Client | Server | "I already have an address. Send me options only." |
DHCPNAK: the server refuses
A server sends a DHCPNAK (negative acknowledgement) when it cannot honor a Request. Common causes:
- The client moved to another subnet and asks to reuse its old address (the INIT-REBOOT case, where a client that restarts asks for its previous address).
- The server has no matching lease, or the address is outside every scope.
- An administrator removed the scope or reassigned the address.
When a client receives a NAK, it must stop using the address immediately, drop its lease state, and restart at Discover. The NAK is not an error to retry. It is the signal to start over.
DHCPDECLINE: the client refuses
A well-behaved client checks an offered address before using it. It typically sends an ARP probe asking who owns the address. If another host replies, the address is a duplicate, for example a device with a static address inside the pool.
The client then sends a DHCPDECLINE to the server and restarts DORA. The server should mark that address as unavailable for a while, so it is not offered again straight away. Repeated Declines in a capture point to a static address inside the dynamic range. The fix is to add an exclusion, as covered in the scopes chapter.
DHCPRELEASE: the client gives the address back
A client sends a DHCPRELEASE when it no longer needs its lease, for example when you run dhclient -r or ipconfig /release. The message is unicast to the server that granted the lease, and the server may reuse the address at once. There is no reply, so the client cannot tell whether the server received it.
Most clients do not send a Release on a normal shutdown or when you unplug them. Their leases simply run until expiry. This is why short leases suit networks with many transient devices.
DHCPINFORM: options without an address
A client with a static address can still want DHCP options such as DNS servers or a domain name. It sends a DHCPINFORM containing its own address in the ciaddr field. The server replies with a DHCPACK that carries only options. The server does not allocate an address, create a lease, or set lease times.
Windows uses this to discover details such as the DNS domain suffix on hosts that have static addresses.
How the messages fit together
Seeing them on the wire
Capture with the command from the troubleshooting chapter, and filter on the message type in option 53:
sudo tcpdump -n -i eth0 -vv 'udp and (port 67 or port 68)' | grep -E 'NACK|Decline|Release|Inform'In tcpdump output these appear as DHCP-Message Option 53, length 1: NACK, Decline, Release and Inform.
Common errors
- Treating a missing reply to Release as a failure. Release has no reply by design.
- Assuming a NAK means the server is broken. It usually means the client's remembered address is no longer valid there.
- Ignoring Declines. Each one names a real address conflict on the network.
Exercise
A laptop wakes up on a different VLAN and asks to reuse its old address. What does the server on the new VLAN send, and what does the laptop do next?
Show answer
The server sends a DHCPNAK, because the old address is outside any scope for that subnet. The laptop drops its lease state and starts again with a Discover, then completes the normal DORA exchange for a new address.
Exercise
A capture shows the same client sending Discover, Request and then DHCPDECLINE for 192.168.1.60, over and over with a different address each time. What is the likely cause, and what does the DHCPINFORM message have to do with it?
Show answer
Hosts with static addresses are sitting inside the pool, so the client's ARP probe finds each offered address already in use and the client declines it. The fix is to exclude those addresses from the pool or move the hosts out of the range. DHCPINFORM is unrelated to the fault. It is how a static host asks for options only, and it never allocates an address.