DHCP · Introduction · Module 1
DHCP: how a host gets its address automatically
Show topologyHide topology
Interfaces and addresses · Et0/0 = Ethernet0/0; other devices use names such as GigabitEthernet0/3. The hosts have no address typed in: they get one from R1.
- 203.0.113.0/24R1 Et0/1 203.0.113.2R2 Et0/0 203.0.113.1
- 192.168.10.0/24 (through SW1)R1 Et0/0 192.168.10.1H1 Et0/0H2 eth0H3 eth0
Six icons in a column, then a row. At the top R2, the provider router, which has 198.51.100.53. Under it R1, the office router, on a cable labeled 203.0.113.0/24. Under R1, SW1, a switch, on a cable labeled 192.168.10.0/24. Under SW1 a row of three hosts, each on its own cable from SW1: H1 on the left, H2 in the middle and H3 on the right.
What DHCP is
What a host is lent, and for how long
H1 joins the office network with no address typed in and then reaches R2’s network. What did it need?
Four settings. To work in its own network, H1 needs an address and a mask, which tells it which addresses are in that network, here 192.168.10.0/24.
To reach other networks, H1 sends everything for them to its default gateway, the router, here R1 at 192.168.10.1. To use names, it also needs a DNS server, the device H1 asks to turn a name into an address. The DNS server’s address here is 198.51.100.53, which R2, the provider router, holds.
So where did they come from? Typing them into every host by hand is slow, and one mistake can cut a host off, so R1 hands them out as a DHCP server, a device that passes these settings to hosts when they ask (Figure 1.1).
H1, H2 and H3 are DHCP clients, devices that ask a DHCP server for their settings. On Wi-Fi, your phone or computer most likely got its address the same way.
The address is not given for good. A lease is the time for which a server lends an address to a client. To keep the address, the client asks again before the lease runs out.
If H1 stopped asking, its lease would end and it would have to stop using the address.
R1, the office router, at the top, SW1 under it and H1, a host, under SW1 to the left, each joined by a plain cable; the cable from R1 to SW1 is labeled 192.168.10.0/24. Short arrows beside the cables point from R1 down to SW1 and from SW1 down to H1, with the highlighted note “R1 lends”. Right of H1 a framed card titled “What R1 lends H1” lists five rows: an address from its pool, a mask, the gateway 192.168.10.1, the DNS server 198.51.100.53, and a lease time.
The mask, the gateway, the DNS server and the lease time come in the same answer as the address.
Key idea
Here R1 lends H1 an address, a mask, a default gateway and a DNS server, and the lease says for how long.
How it works
Four messages, then a lease
Four messages: DISCOVER, OFFER, REQUEST, ACK
H1 has no address yet, and it does not know R1’s. How can it ask anyone anything?
It sends a broadcast. A message to 255.255.255.255 reaches every device of H1’s own network, and H1 does not need to know any address to send it. Before it has an address, a client sends from 0.0.0.0, which means “no address” here, not “any destination” as in a default route.
Four messages give a client its address. A DHCPDISCOVER is a client’s broadcast that looks for the DHCP servers of its network. A DHCPOFFER is a server’s answer with an offer of settings, the address among them.
Why answer an offer at all? An offer is not yet a lease, and more than one server may have offered. A DHCPREQUEST is the client’s message to the servers. In this first exchange it takes one offer and declines the others, and it is broadcast too, so every server hears which offer was taken. A DHCPACK is the server’s confirmation, with the settings and the address, now committed. Their first letters make the short name DORA.
On R1, debug ip dhcp server packet prints a line for each DHCP message it handles, and debug ip udp prints the addresses and ports of each UDP message it handles. H1 first gave back its address with release dhcp Ethernet0/0, so that it would ask from the start. Both debugs were on only while it asked again with renew dhcp Ethernet0/0, and undebug all turned them off. This exchange lent H1 192.168.10.14.
Step through Figure 1.2.
Step 1 of 5
H1 has no address yet, so it sends its DISCOVER from 0.0.0.0 to 255.255.255.255, port 67. SW1 brings the broadcast to every other device. Only R1 is a DHCP server, so only R1 answers.
Step 2 of 5
R1 takes a free address of its pool and offers it, with the mask, the gateway, the DNS server and the lease time. R1 prints its reply as “broadcasting BOOTREPLY”, and sends it to 255.255.255.255, port 68.
H1 now has R1’s offer. Which source address does its next message carry?
- 0.0.0.0, because it still has no address (Correct): H1 may not use the offered address before R1 confirms it. Until the ACK, it sends from 0.0.0.0, as its DISCOVER did.
- The address R1 offered: An offer is not yet a lease, so the address is not H1’s to send from.
- 192.168.10.1, R1’s address: 192.168.10.1 is R1’s own address. A source address names the sender, and the sender here is H1.
- 255.255.255.255: 255.255.255.255 is where the REQUEST goes, to every device. The source is where it comes from.
Step 3 of 5
H1 broadcasts its REQUEST, still from 0.0.0.0: it may not use the address before R1 confirms it. The REQUEST asks for the offered 192.168.10.14 and names R1 as the server it chose.
Step 4 of 5
R1 confirms with its ACK, printed again as “broadcasting BOOTREPLY”, and records the lease. From now on H1 uses 192.168.10.14 with its mask, gateway and DNS server.
Step 5 of 5
Four messages, here all broadcast: DISCOVER and REQUEST from H1, OFFER and ACK from R1. H1 now holds a lease.
R1 at the top, SW1 under it and three hosts under SW1: H1 left, H2 middle, H3 right, each on its own cable. Step 1: arrows beside the cables go from H1 up to SW1 and on to R1, and from SW1 down to H2 and H3; a chip right of R1’s cable reads “DISCOVER, to all, port 67”. Step 2: the arrows go from R1 down to SW1 and on to all three hosts; the chip reads “OFFER, to all, port 68”. Step 3: as step 1, with the chip “REQUEST, to all, port 67”. Step 4: as step 2, with the chip “ACK, to all, port 68”, and under H1 a chip with its address 192.168.10.14. Step 5: the arrows are gone; the chip reads “DORA, here all broadcast” and H1’s address chip stays.
Answer here to see step 3, or tap “Skip, show me”.
On R1, the lines its two debugs printed while H1 asked for an address; | include keeps only the UDP and DHCPD lines.
Each UDP line names the source and the destination, with the port in brackets; each DHCPD line names the message or R1’s reply.
Lines appear as you step through.
R1#show logging | include UDP|DHCPD1UDP: rcvd src=0.0.0.0(68), dst=255.255.255.255(67), length=301… 9 more lines (see Full output)1DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.… 12 more lines (see Full output)2DHCPD: broadcasting BOOTREPLY to client aabb.cc00.0600.2UDP: sent src=0.0.0.0(67), dst=255.255.255.255(68), length=3083UDP: rcvd src=0.0.0.0(68), dst=255.255.255.255(67), length=319… 7 more lines (see Full output)3DHCPD: DHCPREQUEST received from client 01aa.bbcc.0006.00 on interface Ethernet0/03DHCPD: Client is Selecting (DHCP Request with Requested IP = 192.168.10.14, Server ID = 192.168.10.1)… 5 more lines (see Full output)4DHCPD: broadcasting BOOTREPLY to client aabb.cc00.0600.4UDP: sent src=0.0.0.0(67), dst=255.255.255.255(68), length=308
Full output · 42 lines
R1#show logging | include UDP|DHCPDUDP: rcvd src=0.0.0.0(68), dst=255.255.255.255(67), length=301DHCPD: tableid for 192.168.10.1 on Ethernet0/0 is 0DHCPD: client's VPN is .DHCPD: No option 125DHCPD: Option 124: Vendor Class Information DHCPD: Enterprise ID: 9 DHCPD: Vendor-class-data-len: 4 DHCPD: Data: 556E6978DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Selecting relay q from poolDHCPD: Attempt ping to check address availableDHCPD: Saving workspace (ID=0xAA000004)DHCPD: New packet workspace 0x7B9EDCC16BF8 (ID=0x45000005)DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.DHCPD: Setting only requested parametersDHCPD: Option 125 not present in the msg.DHCPD: egress Interface Ethernet0/0DHCPD: broadcasting BOOTREPLY to client aabb.cc00.0600.UDP: sent src=0.0.0.0(67), dst=255.255.255.255(68), length=308UDP: rcvd src=0.0.0.0(68), dst=255.255.255.255(67), length=319DHCPD: tableid for 192.168.10.1 on Ethernet0/0 is 0DHCPD: client's VPN is .DHCPD: No option 125DHCPD: Option 124: Vendor Class Information DHCPD: Enterprise ID: 9 DHCPD: Vendor-class-data-len: 4 DHCPD: Data: 556E6978DHCPD: DHCPREQUEST received from client 01aa.bbcc.0006.00 on interface Ethernet0/0DHCPD: Client is Selecting (DHCP Request with Requested IP = 192.168.10.14, Server ID = 192.168.10.1)DHCPD: Option 125 not present in the msg.DHCPD: No default domain to append - abort updateDHCPD: Setting only requested parametersDHCPD: Option 125 not present in the msg.DHCPD: egress Interface Ethernet0/0DHCPD: broadcasting BOOTREPLY to client aabb.cc00.0600.UDP: sent src=0.0.0.0(67), dst=255.255.255.255(68), length=308
Impact A debug adds work for the router. Keep it on for a few seconds only, then turn it off with undebug all.
All four went to 255.255.255.255. The two “BOOTREPLY” lines are R1’s OFFER and ACK, and they name H1 by its MAC address, aabb.cc00.0600. In the “received from client” lines, 01aa.bbcc.0006.00 is the client identifier, the value R1 uses to tell its clients apart, here 01 followed by that MAC address.
In the client’s own network, a server broadcasts its OFFER and ACK when the client asks for that. If the client does not ask, the server sends the OFFER and the ACK to that client alone.
DHCP runs over UDP. Messages to the server go to port 67, and messages to the client go to port 68.
In R1’s two sent lines, read the destination, 255.255.255.255, and its port, 68, the client’s port.
On H1, right after R1’s ACK for 192.168.10.14:
H1#show logging | include DHCP1%DHCP-6-ADDRESS_ASSIGN: Interface Ethernet0/0 assigned DHCP address 192.168.10.14, mask 255.255.255.0, hostname H1
- Ethernet0/0 got 192.168.10.14, mask 255.255.255.0, by DHCP.
H1’s own log records the moment it took the address and the mask that R1 lent.
H1 waited for the ACK before it took the address. Between the OFFER and the ACK it still sent from 0.0.0.0, as the REQUEST’s UDP line shows.
R1 sits in H1’s own network, so H1’s broadcasts reach it. Could a server in another network serve H1? It can, because a relay agent can pass the DHCP messages on to it.
Key idea
Four messages: H1 broadcasts a DISCOVER, R1 OFFERs, H1 broadcasts a REQUEST, R1 ACKs. Only after the ACK does H1 use the address.
Lent for a while: the lease and its renewal
R1 lent H1 its address. For how long?
For one day. H1 prints the times of its lease with show dhcp lease | include Lease.
On H1, holding its lease:
H1#show dhcp lease | include Lease1 DHCP Lease server: 192.168.10.1, state: 5 Bound2 Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secs
- R1, 192.168.10.1, is the server that lent the address. Bound means H1 holds it.
- Lease, 86400 seconds, is one day. Renewal, 43200 seconds, is half of that. Rebind, 75600 seconds, is when H1 would broadcast its REQUEST to any server, if no ACK had come by then.
How does H1 keep the address past that day? It asks for a renewal, a client’s request to its server to extend the lease. By default a client first renews at half the lease, which leaves the other half to try again if the server does not answer.
This time nothing is broadcast. A unicast is a message sent to one address, the opposite of a broadcast. A renewal is a REQUEST and an ACK sent straight between H1 and R1.
Here H1 was told to renew at once with renew dhcp Ethernet0/0, instead of waiting half a day (Figure 1.3). H1 still held its lease, so it renewed the lease instead of starting over with a DISCOVER.
R1 at the top, SW1 under it and H1, a host, under SW1 to the left. On the left of each cable an arrow points up from H1 toward R1, with the chip “REQUEST to 192.168.10.1”; on the right an arrow points down toward H1, with the chip “ACK to 192.168.10.14”. Under the drawing a time line marks the start, then, highlighted, half a day “renew”, and at the end one day “lease ends”.
On R1, the debug lines of H1’s renewal:
R1#show logging | include UDP|DHCPD1UDP: rcvd src=192.168.10.14(68), dst=192.168.10.1(67), length=307… 7 more lines (see Full output)2DHCPD: DHCPREQUEST received from client 01aa.bbcc.0006.00 on interface Ethernet0/02DHCPD: Client is Renewing (DHCP Renew with ciaddr = 192.168.10.14)… 7 more lines (see Full output)3DHCPD: unicasting BOOTREPLY to client aabb.cc00.0600 (192.168.10.14).3UDP: sent src=192.168.10.1(67), dst=192.168.10.14(68), length=308
- H1 sends from its own address, 192.168.10.14, to R1’s, 192.168.10.1, port 67. This is a unicast.
- A REQUEST from H1 that renews the lease it holds. No DISCOVER comes before it.
- R1’s reply goes straight back to H1, port 68. IOS prints it as “unicasting BOOTREPLY”.
Full output · 19 lines
R1#show logging | include UDP|DHCPDUDP: rcvd src=192.168.10.14(68), dst=192.168.10.1(67), length=307DHCPD: tableid for 192.168.10.1 on Ethernet0/0 is 0DHCPD: client's VPN is .DHCPD: No option 125DHCPD: Option 124: Vendor Class Information DHCPD: Enterprise ID: 9 DHCPD: Vendor-class-data-len: 4 DHCPD: Data: 556E6978DHCPD: DHCPREQUEST received from client 01aa.bbcc.0006.00 on interface Ethernet0/0DHCPD: Client is Renewing (DHCP Renew with ciaddr = 192.168.10.14)DHCPD: Option 125 not present in the msg.DHCPD: No default domain to append - abort updateDHCPD: Setting only requested parametersDHCPD: Option 125 not present in the msg.DHCPD: src nbma addr as zeroDHCPD: ARP entry exists (192.168.10.14, aabb.cc00.0600).DHCPD: egress Interface Ethernet0/0DHCPD: unicasting BOOTREPLY to client aabb.cc00.0600 (192.168.10.14).UDP: sent src=192.168.10.1(67), dst=192.168.10.14(68), length=308
If your network’s DHCP server stopped answering, your device would keep its address for the rest of its lease, and would have to stop using it only when the lease ends.
Key idea
The server lends the address for the time of the lease. By default, at half that time, the client asks its server directly to extend it.
Configure
R1’s pool
R1 had no DHCP lines at first, and H1 asked for an address and got none. What does R1 need to lend one?
An address pool, the set of addresses a DHCP server may lend and the settings that go with them. A Cisco router sets up a DHCP pool with the ip dhcp pool command, and on R1 the pool is named OFFICE. Each line under the pool sets part of what R1 lends: the network, the gateway or the DNS server.
Which addresses should R1 keep back? Those typed in by hand on a device, such as its own 192.168.10.1. Each is an excluded address, an address of the pool’s network that the server does not lend. An excluded-address line, outside the pool, keeps them back (Figure 1.4).
Titled “Pool OFFICE on R1”. Under the title the line “network 192.168.10.0 255.255.255.0”, then a bar for the whole network in two parts: on the left, highlighted and framed, “excluded, .1 to .10”; on the right, “lent from .11 to .254”. Under the bar: “kept back by the excluded-address line”. Then a framed card, “Handed out with each address”, with three rows: gateway 192.168.10.1 from the default-router line, DNS server 198.51.100.53 from the dns-server line, and a lease of one day because there is no lease line.
The client needs one line. On H1, ip address dhcp tells the interface to get its address from DHCP instead of having one typed in. H1 got this line before R1 had a pool.
On H1, in privileged EXEC:
1H1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.2H1(config)#interface Ethernet0/03H1(config-if)#ip address dhcp4H1(config-if)#end
configure terminalGlobal configuration. New prompt:H1(config)#interface Ethernet0/0Interface configuration for Et0/0. New prompt:H1(config-if)#ip address dhcpGet the address by DHCP instead of typing one in.endBack to privileged EXEC. New prompt:H1#
On H1, set to ask for an address, before R1 has a pool:
H1#show ip interface brief | include Ethernet0/01Ethernet0/0 unassigned YES DHCP up up
unassignedmeans no address yet.DHCPsays the address is to come from DHCP.
Now R1 gets its excluded-address line and its pool.
On R1, in privileged EXEC:
1R1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.2R1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.103R1(config)#ip dhcp pool OFFICE4R1(dhcp-config)#network 192.168.10.0 255.255.255.05R1(dhcp-config)#default-router 192.168.10.16R1(dhcp-config)#dns-server 198.51.100.537R1(dhcp-config)#end
configure terminalGlobal configuration. New prompt:R1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10Do not lend 192.168.10.1 to 192.168.10.10.ip dhcp pool OFFICECreates the pool OFFICE. The prompt(dhcp-config)#is for the pool’s settings. New prompt:R1(dhcp-config)#network 192.168.10.0 255.255.255.0Lend addresses of this network, with this mask.default-router 192.168.10.1The default gateway to hand out.dns-server 198.51.100.53The DNS server to hand out.endBack to privileged EXEC. New prompt:R1#
There is no lease line. With none, a Cisco DHCP server lends for one day.
Impact A wrong pool line affects every client that gets its settings from this pool after the change.
On H1, shortly after the pool was added:
H1#show ip interface brief | include Ethernet0/01Ethernet0/0 192.168.10.11 YES DHCP up up
- 192.168.10.11 by DHCP. It is the first address after the excluded ones.
Key idea
The pool names the network to lend from and the gateway and DNS server to hand out; the excluded-address line keeps addresses back.
Verify
Read the leases on R1 and H1
R1 has lent addresses to H1 and H2. Where does R1 list them, and which one is H1’s?
In its bindings, listed one row per client by show ip dhcp binding. A binding is one entry in a DHCP server’s list of what it has lent. It says which address went to which client, and when the lease ends.
H1’s row holds its client identifier, 01aa.bbcc.0006.00, which is 01 followed by its MAC address, aabb.cc00.0600.
How many bindings should the list hold? Two. R1’s own address is typed in, H1 and H2 have one lease each, and H3 has not joined yet (Figure 1.5).
The network: R2 at the top, R1 under it, SW1 under R1, and the three hosts in a row under SW1. Under R1’s role a third line reads “.1 typed in”. Under each host a chip: H1 “.11 leased”, H2 “.12 leased”, and, dimmed, H3 “no lease yet”.
On R1, while H1 holds its first lease and H2 has just joined:
Tap a line, or “Not in the output”, then submit.
Find H1’s binding. H1’s identifier is 01aa.bbcc.0006.00.
R1#show ip dhcp bindingTwo bindings, one each for H1 and H2.
- H1’s binding: 192.168.10.11 lent to 01aa.bbcc.0006.00.
- H2’s binding, 192.168.10.12.
Full output · 6 lines
R1#show ip dhcp bindingBindings from all pools not associated with VRF:IP address Client-ID/ Lease expiration Type State Interface Hardware address/ User name192.168.10.11 01aa.bbcc.0006.00 Nov 28 2026 10:18 PM Automatic Active Ethernet0/0192.168.10.12 0152.5400.0053.20 Nov 28 2026 10:19 PM Automatic Active Ethernet0/0
No address from .1 to .10 is in the list, because they are excluded. show ip dhcp pool counts them as 10 excluded addresses.
On R1, the pool’s counters:
R1#show ip dhcp pool… 1 more line (see Full output)Pool OFFICE :… 2 more lines (see Full output)1 Total addresses : 2542 Leased addresses : 23 Excluded addresses : 10… 4 more lines (see Full output)
- Every address of 192.168.10.0/24 that a host can have.
- The addresses lent now, one each to H1 and H2.
- The excluded addresses, .1 to .10.
Full output · 11 lines
R1#show ip dhcp pool Pool OFFICE : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 254 Leased addresses : 2 Excluded addresses : 10 Pending event : none 1 subnet is currently in the pool : Current index IP address range Leased/Excluded/Total 192.168.10.13 192.168.10.1 - 192.168.10.254 2 / 10 / 254
On the client side, show dhcp lease shows what H1 received. Your own laptop shows similar values in its network settings.
On H1, holding its first lease:
H1#show dhcp lease1Temp IP addr: 192.168.10.11 for peer on Interface: Ethernet0/02Temp sub net mask: 255.255.255.03 DHCP Lease server: 192.168.10.1, state: 5 Bound… 1 more line (see Full output) Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secs4Temp default-gateway addr: 192.168.10.1… 4 more lines (see Full output)
- The address, 192.168.10.11, on Ethernet0/0.
- The mask, 255.255.255.0.
- The server that lent it, R1. Bound means H1 holds the lease.
- The default gateway from the pool’s default-router line.
Full output · 10 lines
H1#show dhcp leaseTemp IP addr: 192.168.10.11 for peer on Interface: Ethernet0/0Temp sub net mask: 255.255.255.0 DHCP Lease server: 192.168.10.1, state: 5 Bound DHCP transaction id: E74907B7 Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secsTemp default-gateway addr: 192.168.10.1 Next timer fires after: 11:59:44 Retry count: 0 Client-ID: aabb.cc00.0600 Client-ID hex dump: AABBCC000600 Hostname: H1
show hosts names H1’s DNS server.
On H1:
H1#show hosts… 1 more line (see Full output)1Name servers are 198.51.100.53… 2 more lines (see Full output)
- The DNS server from the pool’s dns-server line, 198.51.100.53.
Full output · 4 lines
H1#show hostsDefault domain is not setName servers are 198.51.100.53NAME TTL CLASS TYPE DATA/ADDRESS-----------------------------------------
Key idea
R1’s binding list says which address went to which client, until when. The client’s lease says what it received.
Troubleshoot
A host with no address
A host gets no address from DHCP. What does R1 show, and what still works?
Here ping sends five test packets: each ! is a reply, each . a packet with no reply in time. H1 tests R2’s address.
On H1, with the pool as planned:
H1#ping 198.51.100.53Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 198.51.100.53, timeout is 2 seconds:1!!!!!2Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
- Five replies.
Success rate is 100 percent, all five answered.
H1 reaches R2’s address, 198.51.100.53.
H1 gets no address from R1
Symptom
H1 is set to get its address by DHCP, but it has none.
On H1:
H1#show ip interface brief | include Ethernet0/01Ethernet0/0 unassigned YES DHCP up up
unassignedwithDHCPmeans H1 asks and no address has come.
Command
Does R1 hear H1, and does it answer? R1’s DHCP debug was on for a few seconds while H1 asked.
Output
On R1:
R1#show logging | include DHCPD… 15 more lines (see Full output)1DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.… 10 more lines (see Full output)2DHCPD: there is no address pool for 192.168.10.1.… 16 more lines (see Full output)3DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.… 10 more lines (see Full output)3DHCPD: there is no address pool for 192.168.10.1.… 29 more lines (see Full output)
- H1’s DISCOVER reaches R1 on Ethernet0/0.
- Key line R1 finds no pool for the network of 192.168.10.1, its own address on Ethernet0/0. No OFFER follows.
- H1 asks again, with the same result.
Full output · 84 lines
R1#show logging | include DHCPDDHCPD: Reload workspace interface Ethernet0/0 tableid 0.DHCPD: tableid for 192.168.10.1 on Ethernet0/0 is 0DHCPD: client's VPN is .DHCPD: No option 125DHCPD: Option 124: Vendor Class Information DHCPD: Enterprise ID: 9 DHCPD: Vendor-class-data-len: 4 DHCPD: Data: 556E6978DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Sending notification of DISCOVER: DHCPD: htype 1 chaddr aabb.cc00.0600 DHCPD: remote id 020a0000c0a80a0100000000 DHCPD: interface = Ethernet0/0 DHCPD: class id 636973636f706e70DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Sending notification of DISCOVER: DHCPD: htype 1 chaddr aabb.cc00.0600 DHCPD: remote id 020a0000c0a80a0100000000 DHCPD: interface = Ethernet0/0 DHCPD: class id 636973636f706e70DHCPD: FSM state change INVALIDDHCPD: Workspace state changed from INIT to INVALIDDHCPD: classname not set in msgDHCPD: there is no address pool for 192.168.10.1.DHCPD: there is no address pool for 192.168.10.1.DHCPD: Reload workspace interface Ethernet0/0 tableid 0.DHCPD: tableid for 192.168.10.1 on Ethernet0/0 is 0DHCPD: client's VPN is .DHCPD: No option 125DHCPD: Option 124: Vendor Class Information DHCPD: Enterprise ID: 9 DHCPD: Vendor-class-data-len: 4 DHCPD: Data: 556E6978DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Sending notification of DISCOVER: DHCPD: htype 1 chaddr aabb.cc00.0600 DHCPD: remote id 020a0000c0a80a0100000000 DHCPD: interface = Ethernet0/0 DHCPD: class id 636973636f706e70DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Sending notification of DISCOVER: DHCPD: htype 1 chaddr aabb.cc00.0600 DHCPD: remote id 020a0000c0a80a0100000000 DHCPD: interface = Ethernet0/0 DHCPD: class id 636973636f706e70DHCPD: FSM state change INVALIDDHCPD: Workspace state changed from INIT to INVALIDDHCPD: classname not set in msgDHCPD: there is no address pool for 192.168.10.1.DHCPD: there is no address pool for 192.168.10.1.DHCPD: Reload workspace interface Ethernet0/0 tableid 0.DHCPD: tableid for 192.168.10.1 on Ethernet0/0 is 0DHCPD: client's VPN is .DHCPD: No option 125DHCPD: Option 124: Vendor Class Information DHCPD: Enterprise ID: 9 DHCPD: Vendor-class-data-len: 4 DHCPD: Data: 556E6978DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Sending notification of DISCOVER: DHCPD: htype 1 chaddr aabb.cc00.0600 DHCPD: remote id 020a0000c0a80a0100000000 DHCPD: interface = Ethernet0/0 DHCPD: class id 636973636f706e70DHCPD: DHCPDISCOVER received from client 01aa.bbcc.0006.00 on interface Ethernet0/0.DHCPD: Option 125 not present in the msg.DHCPD: Option 125 not present in the msg.DHCPD: Sending notification of DISCOVER: DHCPD: htype 1 chaddr aabb.cc00.0600 DHCPD: remote id 020a0000c0a80a0100000000 DHCPD: interface = Ethernet0/0 DHCPD: class id 636973636f706e70DHCPD: FSM state change INVALIDDHCPD: Workspace state changed from INIT to INVALIDDHCPD: classname not set in msgDHCPD: there is no address pool for 192.168.10.1.DHCPD: there is no address pool for 192.168.10.1.
Impact Turn the debug off with
undebug allas soon as H1 has asked.On R1, the pool:
R1#show running-config | section ip dhcp poolip dhcp pool OFFICE1 network 192.168.100.0 255.255.255.02 default-router 192.168.10.1 dns-server 198.51.100.53
- The pool lends from
192.168.100.0, with 100 where the office network has 10. - The gateway line is as planned.
How far it reaches
R1 itself tests R2’s address.
On R1:
R1#ping 198.51.100.53Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 198.51.100.53, timeout is 2 seconds:!!!!!1Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Success rate is 100 percent, so R1 still reaches R2.
What it means
Figure 1.6 · H1’s DISCOVER reaches R1, but R1’s pool lends from 192.168.100.0, not H1’s network, so no offer comes back.R1 at the top, SW1 under it and H1, a host, under SW1 to the left, each joined by a plain cable. Short arrows beside the cables point from H1 up to SW1 and from SW1 up to R1, each with the note “DISCOVER”. Left of R1’s cable a cross with the note “no offer”. Under R1’s role a highlighted third line reads “pool
192.168.100.0”.- With no relay in between, a server picks the new address by the network the DISCOVER came in on. H1’s came in on Et0/0, in 192.168.10.0/24, and no pool lends from that network.
- So R1 sends no OFFER, and H1 stays without an address. It keeps asking with DHCP broadcasts from 0.0.0.0.
- R1 itself keeps working: its own address is typed in, and it still reaches R2.
Fix
Give the pool the office network again.
On R1, the lines that change it:
R1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.1R1(config)#ip dhcp pool OFFICE2R1(dhcp-config)#network 192.168.10.0 255.255.255.0R1(dhcp-config)#end
- Opens the pool OFFICE.
- The office network, 192.168.10.0/24, in place of the wrong one.
Impact Change a pool’s network in a quiet moment. Every client that asks after the change gets its address from the new line.
Proof
H1 asks again and gets an address.
On H1:
H1#show ip interface brief | include Ethernet0/01Ethernet0/0 192.168.10.11 YES DHCP up up
- 192.168.10.11 by DHCP: H1 has an address again.
Key idea
No pool for the client’s network means no OFFER, and with no OFFER the client gets no address from that server. The server itself keeps working.
Check
On R1, after H3 has joined:
Tap a line, or “Not in the output”, then submit.
Find H3’s binding. H3’s identifier is 0152.5400.0053.30.
R1#show ip dhcp bindingFull output · 7 lines
R1#show ip dhcp bindingBindings from all pools not associated with VRF:IP address Client-ID/ Lease expiration Type State Interface Hardware address/ User name192.168.10.12 0152.5400.0053.20 Nov 28 2026 10:25 PM Automatic Active Ethernet0/0192.168.10.14 01aa.bbcc.0006.00 Nov 28 2026 10:28 PM Automatic Active Ethernet0/0192.168.10.15 0152.5400.0053.30 Nov 28 2026 10:28 PM Automatic Active Ethernet0/0
Summary
R1 at the top, SW1 under it and the three hosts under SW1. A chip right of R1’s cable reads “DORA, here all broadcast”; under H1 a highlighted chip holds its address, 192.168.10.14.
- Here R1 lends H1 an address, a mask, a default gateway and a DNS server, for the time of a lease.
- Four messages: the client broadcasts a DISCOVER and a REQUEST from 0.0.0.0, the server answers with an OFFER and an ACK; UDP port 67 is the server’s, 68 the client’s.
- By default, at half the lease, the client renews it with a unicast REQUEST straight to its server.
- The pool names the network, the gateway and the DNS server, and the excluded-address line keeps addresses back; a Cisco client needs one line,
ip address dhcp. show ip dhcp bindinglists what the server lent;show dhcp leaseshows what the client received.- With no pool for the client’s network, the server sends no OFFER, so here the client gets no address.