In enterprise and educational networks, Dynamic Host Configuration Protocol (DHCP) is the backbone of IP address management. When a DHCP scope becomes exhausted, clients cannot obtain an IP address, leading to complete network isolation. While Cisco Packet Tracer provides a simulated environment to model these scenarios, true troubleshooting often requires deep packet inspection using Wireshark to distinguish between a simple scope exhaustion and other DHCP failures like rogue servers or misconfigured relay agents. This guide walks you through a concrete lab scenario where you will simulate an exhausted DHCP pool and use Wireshark analysis to identify lease renewal failures.
Understanding the Scenario and Prerequisites
Before launching into the troubleshooting process, it is essential to understand the mechanics of DHCP scope exhaustion. A DHCP scope defines the range of IP addresses available for assignment. When every address in this range is leased and all leases are active (clients have not yet renewed or released their IPs), the DHCP server rejects new requests with a “No Available Addresses” error.
Prerequisites for this Lab:
* Cisco Packet Tracer installed on your local machine.
* Basic knowledge of IPv4 subnetting (Classless Inter-Domain Routing).
* Familiarity with the Wireshark interface, specifically filtering by protocol.
* A simulated network topology involving at least one DHCP server, a router or Layer 3 switch acting as a gateway, and multiple client devices (PCs).
Step 1: Constructing the Network Topology in Packet Tracer
The first phase involves building a realistic network environment within Packet Tracer. You will create a VLAN-based setup to mimic modern enterprise structures.
- Create the Layout: Place a Cisco Catalyst switch, a Router (acting as the default gateway), and three PCs on one side of the network. Add a second set of PCs connected via a different interface or VLAN to simulate a growing network demand.
- Configure the DHCP Server: Assign an IP address to one of the routers or a dedicated server device within Packet Tracer. Configure the DHCP service with a specific pool, for example,
192.168.10.0/24with a subnet mask of255.255.255.0. Set the default gateway to192.168.10.1and the DNS server to8.8.8.8. - Simulate Exhaustion: To trigger the condition, manually assign static IP addresses from the DHCP pool (e.g.,
192.168.10.50through192.168.10.99) to various devices or simply configure the router’s DHCP address pool size to be very small (e.g., 10 addresses) and ensure all clients are connected and requesting leases. In Packet Tracer, you can force this by checking the “DHCP Server” status in the CLI and ensuring theaddress-poolis full.
Step 2: Capturing Traffic with Wireshark Integration
Once the topology is built and the scope is theoretically exhausted, we must capture the traffic to see what happens when a client tries to renew its lease or request a new one. Although Packet Tracer has a built-in packet tracer mode, for detailed analysis, we simulate the capture logic using Wireshark concepts.
- Start Capture: In a real-world scenario, you would connect a network tap or use port mirroring on a switch to send traffic to a monitoring PC running Wireshark. In Packet Tracer, right-click the router interface connected to the client VLAN and select “Capture Filter.”
- Define Filters: Configure the capture filter to show only
bootpordhcptraffic. This isolates relevant signals from background noise like ARP requests or HTTP traffic. - Trigger the Event: Disconnect a network cable briefly or simulate a reboot on a client PC that has an IP lease expiring shortly. Reconnect and observe the DHCP Discover, Offer, Request, and Acknowledge (DORA) process.
Step 3: Analyzing Wireshark Output for Exhaustion Errors
The core of the troubleshooting exercise lies in interpreting the packet details. When a scope is exhausted, the DHCP server does not respond with a standard DHCP ACK. Instead, it responds with a DHCP Nak (Negative Acknowledge) or simply ignores the request if the pool is strictly full depending on the implementation.
Expected Illustrative Output:
When you open the captured .pcap file in Wireshark and apply the filter bootp, you will see a sequence of packets. Look specifically at the “DHCP” tab in the packet details pane.
Frame 12: ...
DHCP:
Transaction ID: 0x1a2b3c4d
Op: Bootstrap
Hardware Type: Ethernet
Hardware Addr Length: 6
Client Identifier: 00:50:56:c0:00:08
Requested IP Address: 192.168.10.100 (or higher than pool max)
Message Type: DHCP DISCOVER
Frame 13: ...
DHCP:
Transaction ID: 0x1a2b3c4d
Message Type: DHCP NAK
Server Identifier: 192.168.10.1
Hostname: Router-01
In this output, the critical indicator is the Message Type: DHCP NAK. This explicitly tells the client that its request cannot be fulfilled. If the scope were not exhausted but there was a configuration error (like an incorrect subnet mask), you might see a DHCP ACK with an invalid IP or a DHCP DECLINE. However, exhaustion typically results in silence (no response) if the server implementation drops packets upon hitting the limit, or a NAK if the server logic checks the pool count actively.
Step 4: Verifying Scope Status and Lease Times
After identifying the NAK or lack of response, you must verify the status on the DHCP server side. In Packet Tracer, this is done by examining the router’s configuration.
- Check Active Leases: Navigate to the DHCP server settings in Packet Tracer. View the list of active leases. You should see that the number of active leases equals the total pool size defined in the
ip dhcp poolcommand. - Analyze Lease Renewal Logic: A client renews its IP at the T1 timer (typically 50% of the lease time). If the scope is full, the renewal fails even if the original IP was valid. Use Wireshark to filter for
DHCP REQUESTpackets and verify that they are not being acknowledged. - DNS Verification: Ensure that the DNS server address provided in the DHCP options is reachable. Even if DHCP succeeds, a misconfigured DNS can cause connectivity issues that mimic exhaustion symptoms. Verify by pinging the DNS server from a client with a static IP obtained outside the pool.
Step 5: Common Mistakes and Fixes
When troubleshooting DHCP scope exhaustion, practitioners often fall into specific traps:
- Mistake 1: Confusing Exhaustion with Rogue Servers. A rogue DHCP server on the network might be responding to requests, causing clients to get incorrect IPs. This looks like a failure but is not exhaustion.
- Fix: Check for multiple
Server Identifierfields in Wireshark. Only one should match the authorized server.
- Fix: Check for multiple
- Mistake 2: Ignoring Relay Agents. If you have VLANs, ensure IP Helper addresses are configured on the router interfaces. Without them, broadcasts from clients won’t reach the server, mimicking exhaustion.
- Fix: Verify
ip helper-addresscommands on router sub-interfaces.
- Fix: Verify
- Mistake 3: Not Reserving Addresses. Critical servers (printers, DNS) should have static DHCP reservations. If the pool is exhausted, these critical devices lose connectivity.
- Fix: Configure
ip dhcp pool [name] hostentries to reserve specific IPs for known MAC addresses.
- Fix: Configure
Student Practice Task and Industry Application
Student Practice Task:
Create a Packet Tracer topology with a /24 network containing only 5 usable IP addresses in the DHCP pool. Connect 6 PCs. Attempt to connect all 6. Observe the Wireshark capture showing the 5th PC getting an IP and the 6th receiving a NAK. Document the packet counts and the specific fields in the NAK message that indicate exhaustion.
Industry Application:
In a real workplace, this scenario occurs during peak deployment times or after a mass device update. Network engineers use tools like dhcpd logs (on Linux) or Cisco IOS show ip dhcp binding to monitor pool usage. When approaching 90% capacity, administrators should proactively extend the scope or add a secondary DHCP server to prevent service degradation. The analysis of lease renewal failures via packet capture is standard procedure for root cause analysis in Service Level Agreement (SLA) investigations regarding network uptime.
Conclusion
Troubleshooting DHCP scope exhaustion requires a blend of logical deduction and deep packet inspection. By constructing a realistic environment in Packet Tracer, simulating an exhausted pool, and analyzing the resulting traffic with Wireshark, you can definitively identify lease renewal failures. The presence of a DHCP NAK or the absence of any response to a DHCP REQUEST is the smoking gun for scope exhaustion. Remember to always verify server configurations, check for rogue devices, and ensure relay agents are properly configured to avoid misdiagnosis. This skill set is vital for maintaining high-availability networks in both educational labs and production environments.
Educational-use notice: This tutorial is for learning and controlled lab use only. Test carefully, use backups, and obtain authorization before making changes. Do not run unfamiliar commands on production systems. We accept no responsibility for misuse, damage, data loss, or production issues.

