Dynamic Host Configuration Protocol (DHCP) is the backbone of modern network address management, yet it remains a frequent source of connectivity failures. When devices fail to obtain an IP address or experience intermittent internet loss, two primary culprits often emerge: DHCP scope exhaustion, where the pool of available addresses is depleted, and duplicate IP assignments, which corrupt the Address Resolution Protocol (ARP) cache and cause packet collisions. Resolving these issues requires a methodical approach that combines configuration analysis with deep packet inspection. This guide walks IT students and engineers through identifying and fixing these problems using Wireshark filters, specifically within a Packet Tracer or GNS3 lab environment that mirrors real-world topologies involving VLANs, routing, and DNS integration.
Understanding the Symptoms of Scope Exhaustion and Duplication
Before diving into packet captures, it is crucial to recognize the behavioral signs of these failures. Scope exhaustion typically manifests as clients displaying a “16.1.x.x” address in Windows environments (the APIPA link-local range) or failing to renew their lease entirely. In this state, the DHCP server has no more addresses to offer from its configured scope. Duplicate IP assignments occur when a static IP is manually assigned on a device that falls within a dynamic scope, or when two DHCP servers are inadvertently serving the same subnet without coordination (rogue DHCP). These duplicates lead to “ARP poisoning,” where network traffic destined for one MAC address may be intercepted by another, causing latency and total connectivity drops.
Prerequisites and Lab Environment Setup
To effectively troubleshoot these issues, you must have access to a simulated or live network environment capable of generating DHCP traffic. For educational purposes, Cisco Packet Tracer or GNS3 with virtual routers (such as CSR1000V) and switches are ideal. You will also need the latest version of Wireshark installed on your analysis workstation.
Prerequisites Checklist:
* Network Topology: A router connected to a switch, with at least one access port configured for VLAN 10 (or another specific VLAN).
* DHCP Server: A virtual machine or router interface acting as the DHCP server with a defined scope (e.g., 192.168.10.0/24).
* Clients: At least two end devices (PCs) configured with DHCP clients enabled.
* Software Versions: Ensure your Wireshark version supports modern DHCPv4 and DHCPv6 protocols, as older versions may lack specific filter syntax for newer options.
Step 1: Capturing the DHCP Exchange Traffic
The first step in troubleshooting is isolating the relevant traffic stream. Open Wireshark and apply a capture filter or select an interface connected to your target VLAN. Once capturing begins, you can refine the view using display filters to see only DHCP packets.
To isolate DHCP messages, use the following display filter:
bootp
This broad filter captures all DHCP traffic (which uses UDP port 67/68). To narrow down specifically to IPv4 requests and offers, use:
ip && udp.port == 67 || udp.port == 68
In a healthy environment, you will see a sequence of four packets: DHCP Discover, DHCP Offer, DHCP Request, and DHCP Acknowledge (DORA). If scope exhaustion is occurring, the server will stop sending “DHCP Offer” packets after the scope limit is reached. Conversely, in duplicate IP scenarios, you might observe multiple hosts responding with ARP requests for the same IP address simultaneously.
Step 2: Analyzing DHCP Scope Exhaustion
When investigating scope exhaustion, focus on the server-side responses. In Wireshark, apply this filter to view only messages coming from the DHCP server (usually UDP port 67):
ip && udp.port == 67
Examine the DHCP Offer packets. If you see a stream of requests with no corresponding offers, or if the server replies with an error message in the packet payload indicating “No addresses available,” the scope is full.
Illustrative Output Analysis:
Packet 150 (Client Request): Source IP: 169.254.x.x (APIPA), Destination: 255.255.255.255
Packet 151 (Server Response): None observed for subsequent requests.
This lack of response confirms the pool is exhausted. The fix involves logging into your DHCP server configuration (whether Windows Server, Linux dhcpd, or Cisco IOS) and expanding the scope size or adding a new subnet range that overlaps correctly with existing subnets to prevent fragmentation.
Step 3: Detecting Duplicate IP Assignments via ARP Analysis
Duplicate IPs are trickier because they often involve Layer 2 conflicts rather than just Layer 3 exhaustion. In Wireshark, filter for ARP traffic to spot the conflict:
arp && arp.opcode == 1
This shows ARP Request packets. Look for a situation where two different MAC addresses respond to the same IP address query within seconds of each other.
Common Scenario:
You may see an ARP request for 192.168.10.5. First, Host A (MAC: AA:AA:AA) responds. Seconds later, Host B (MAC: BB:BB:BB), which should be on a different VLAN or static range, also responds with the same IP. This indicates that either:
1. A static IP was assigned to a device inside a dynamic scope.
2. Two DHCP scopes overlap incorrectly across subnets.
3. A rogue DHCP server is injecting duplicate leases.
To verify, inspect the Packet Details pane in Wireshark. Click on an ARP response and check the “Sender Hardware Address.” If two distinct MAC addresses map to the same IP address in the network’s ARP table, you have a duplicate assignment conflict. The immediate action is to disable DHCP on one server or correct the static IP configuration of the offending device.
Step 4: Verifying DNS Integration and Lease Renewals
A frequent oversight during troubleshooting is ignoring the interaction between DHCP and DNS. When a client receives an IP via DHCP, it often relies on the server to register its hostname in DNS. If scope exhaustion prevents renewal, the client cannot update its DNS records, leading to name resolution failures even if connectivity appears restored temporarily.
Check the DHCP Acknowledge packet details for the dns-server-update flag or option 43 (Vendor Specific Information). Ensure that the lease time is reasonable; extremely short lease times can exacerbate exhaustion issues under high load. Use Wireshark to correlate the DHCP Ack with subsequent DNS queries from the client to ensure the hostname registration succeeded.
Step 5: Industry Application and Student Practice Task
Industry Application:
In a corporate environment, scope exhaustion often signals that the growth of the user base has outpaced infrastructure planning. Engineers must proactively monitor DHCP lease tables (e.g., dhcputil on Cisco or ipconfig /release & renew logs) to identify high churn rates. Duplicate IPs in an enterprise usually point to misconfigured remote office routers where a local scope overlaps with the HQ core range.
Student Practice Task:
1. Set up a Packet Tracer topology with two routers acting as DHCP servers for overlapping subnets (e.g., Router A offers 192.168.10.0/24, Router B offers 192.168.10.50-192.168.10.100).
2. Connect three PCs to the switch.
3. Force a conflict by manually assigning 192.168.10.75 to PC 1 while it is in the dynamic pool of Router A.
4. Use Wireshark on a mirror port or a separate analysis PC to capture traffic.
5. Apply the ARP filter mentioned earlier and document the timestamp of the conflict.
6. Resolve the issue by removing the static assignment and adjusting the scope exclusions in the DHCP server configuration.
Conclusion
Resolving DHCP scope exhaustion and duplicate IP assignments requires a blend of network theory and practical packet analysis. By leveraging Wireshark filters such as bootp and arp, engineers can visually confirm whether a server is silent due to address depletion or if devices are colliding due to configuration errors. Remember that while tools like Wireshark provide deep visibility, the root cause often lies in subnet design and policy enforcement. Always verify your changes by checking lease tables and ensuring static IPs do not overlap with dynamic scopes. For students and practitioners alike, mastering these diagnostic skills ensures robust network availability and prevents costly downtime caused by invisible IP conflicts.
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.

