Workstations connected through a network switch for the DHCP trace

DHCP Logistics

The Architecture of Automated Onboarding

Section Progress 0%

The Archive: Manual Mapping Chaos

Picture an office before DHCP. Every device needed a static IP address, and someone had to walk over and type it in by hand.

Five computers? Fine. Hundreds of machines? That turned into a full-time job nobody wanted.

Before: by hand

Static addressing everywhere

  • Admins tracked addresses in notebooks or spreadsheets.
  • When a machine moved, someone had to update its settings.
  • Troubleshooting meant walking to the device and checking its configuration line by line.
Weak spot
Hoping no two devices ever end up with the same address
Failure clue
A single typo could knock several systems offline
vs
After: DHCP

A server lends the settings

  • A central server hands out the address, mask, gateway and DNS.
  • Laptops and phones that come and go all day get configured automatically.
  • The server keeps the records, not a person.
Big idea
Reusable, time-limited leases
Built on
BOOTP, which first let a central server hand out configuration

The real lesson: Static addressing didn't fail because it was technically wrong. It failed because it depended on people keeping perfect records, forever.

  1. Before 1985Every address typed by hand and tracked on paper or in spreadsheets.
  2. 1985BOOTP (RFC 951) lets a central server hand a device its configuration. Each assignment is fixed, with no leases.
  3. 1993DHCP is standardized, building on BOOTP and adding reusable, time-limited leases.
  4. 1997RFC 2131 updates DHCP. It's still the DHCPv4 standard today.
  5. 2003DHCPv6 arrives for IPv6 (RFC 3315, since replaced by RFC 8415).

What DHCP Actually Solves

It's easy to think of DHCP as "the thing that gives you an IP address." That's only part of the story.

Dynamic Host Configuration Protocol (DHCP) exists to help a device join a network before it knows anything about that network.

Think about a laptop the moment it plugs in. It doesn't know its own address, its gateway or where DNS lives.

So how can it ask anyone for help when it can't even address a message?

DHCP solves exactly that: it gives the device a way to ask those questions and get usable answers in a couple of seconds.

OrganizationDHCP scopes

Address Management

Plain meaning: A DHCP scope is the address range for one subnet plus the settings that go with it.

Lease database
The server records which client has which address and when each lease expires, which beats tracking addresses in an informal spreadsheet.
On the job
Before you add a batch of devices, check the free addresses, lease usage and exclusions.
Watch for
An exclusion only removes an address from dynamic allocation; it doesn't configure the device that will use it. Running more than one server? Coordinate them so their allocations never overlap.
Exam angle
When new clients can't get addresses, investigate scope exhaustion before touching client settings (N10-009 network services, A+ addressing).

Remember: Central allocation cuts down on mistakes, but it can't stop a conflict caused by someone typing in an unmanaged static address.

DeliveryDHCP options

Configuration

Plain meaning: DHCP hands out more than an address. Its options carry the rest of the settings a client needs to actually get somewhere.

What the options carry
The subnet mask (which destinations are local), the router option (the default gateway), the DNS server option (the resolvers that turn names into addresses), and a domain-name option that supplies the client's DNS suffix.
On the job
After a renewal, compare the client's full configuration with what the scope should hand out. A host can reach a numeric IP while name lookups fail because DNS is wrong, and a wrong gateway can block everything beyond the local subnet.
Exam angle
Getting an address and having working connectivity are two different things (220-1201, N10-009).

Remember: A DHCPACK confirms the lease; it doesn't prove the gateway or resolver it handed out are healthy.

Tactical Evaluation: Automatic vs. Static

A new network printer arrives on Monday. Do you let DHCP hand it an address, or type one in yourself?

It depends on whether anything needs to find that device at the same address every day. Let's compare the two approaches side by side.

DynamicLease time

Automatic Addressing

Plain meaning: DHCP lends a client an address for a limited lease time. The client borrows it; it never owns it.

How it works
The client asks for configuration, receives a lease, and tries to renew it before it runs out. Once a lease is no longer in use, the server can eventually hand that address to someone else.
On the job
For workstations and guest devices, this saves you from typing settings every time a device moves. When new users can't connect, check the server's active leases and the free addresses left in the pool.
Exam angle
A+ 220-1201 and N10-009 both cover DHCP.

Remember: The client never owns the address, and once a lease expires the client may not keep using it.

ManualStatic IP

Static Addressing

Plain meaning: A static address is typed into the device by hand instead of coming from a DHCP lease.

What you enter
All four settings together: the address, the subnet mask, the default gateway and the DNS servers. The mask decides which destinations are local; the gateway is the next router for everything else.
On the job
Infrastructure such as routers and servers usually needs a predictable address. Document every static assignment and exclude it from the DHCP pool. Printers can go either way, since a reservation works too, so a static address isn't mandatory for every printer.
Exam angle
Know static settings from reservations. A manually configured host never renews a DHCP lease.
netsh interface ipv4 set address name="Ethernet" static 192.168.1.10 255.255.255.0 192.168.1.1
netsh interface ipv4 set dnsservers name="Ethernet" source=static address=192.168.1.5

Remember: A static host never renews a lease, and a duplicate static address can still knock another device offline.

Implementation Scopes: Home vs. Enterprise

The DHCP conversation is the same everywhere, but where the server lives changes a lot between a living room and a campus. Knowing where the service runs tells you where to look when it breaks.

Home gateway and laptop beside an enterprise switch and server rack.
Generated teaching comparison: home gateway service and centralized enterprise infrastructure. These are examples, not required topologies.
Home / SOHOSOHO routers

Integrated Gateway Service

Plain meaning: A small office/home office (SOHO) router usually combines routing, Wi-Fi, switching and a DHCP server in one box. They're separate functions that happen to share a case.

Two different leases
The DHCP server hands out settings for the local network, even though the router gets its own upstream address from the provider.
On the job
In the router's admin page, check the LAN scope, how many addresses the pool holds, and the gateway it advertises.
Watch for
Swap in a replacement router with a different LAN range and any printers with manual addresses can suddenly become unreachable.
Varies
Extras like multiple scopes or redundancy depend on the product.
Exam angle
A+ 220-1201 SOHO configuration and N10-009 services meet here.

Remember: Don't confuse the router's WAN lease with the leases it gives LAN clients, and turning off the LAN DHCP service doesn't turn off routing.

EnterpriseRelay agents

Centralized Managed Infrastructure

Plain meaning: An enterprise DHCP service can manage a separate scope for every subnet from one central place.

Why a relay
A virtual LAN (VLAN) splits a switched network into separate broadcast domains, so a relay agent forwards each client subnet's DHCP exchange to the central server.
On the job
Admins keep the service healthy with centralized logs, scope settings and supported failover. Failover coordinates leases between servers, and it only works when it's deliberately configured. Network boot options can also support automated operating-system installs when the environment needs them.
Exam angle
In N10-009 relay scenarios, verify both the right scope and the relay path. Installing a second server doesn't create safe failover by itself.
interface Vlan20
 ip helper-address 10.1.1.5

Remember: Client broadcasts never cross routers on their own. The relay carries them.

Technical Intel: The DORA Handshake

Every DHCP client gets its address through four messages called DORA: Discover, Offer, Request, Acknowledge. Learn this flow and troubleshooting gets much easier, because every failure happens at a specific step.

Here's how I like to tell it. DHCP is a little cocky, and honestly, it's earned it.

Exam trap: the Offer can arrive broadcast or unicast, so don't memorize just one, and the Request sent at renewal is unicast. An ACK also doesn't promise internet: a captive portal, a wrong gateway or a bad DNS option can still block you.

One last check: before trusting the address, the client makes sure nobody else answers for it. If someone does, it sends DHCPDECLINE and starts over.

Now step through the tracer and watch the packet fields and the offered lease fill in.

Discover
Offer
Request
Acknowledge
LOG_SERVICE: RUNNING
ClientUDP 68 · workstation-042
NetworkLocal broadcast domain
DHCP server192.168.1.1 · UDP 67
DISCOVEROFFERREQUESTACK

Ready to trace the next message.

dhcpd · live events SIMULATED
SRC IP: 0.0.0.0
DST IP: 255.255.255.255
YIADDR: 0.0.0.0

DNS: N/A
GW: N/A

The tracer shows one clean handshake. Real networks throw curveballs, so here's the same conversation three ways.

DORA, three ways it plays outSheet 1 / 3
LaptopSwitchDHCP server A1 · ONE SERVER: THE NORMAL HANDSHAKEDISCOVER: 0.0.0.0:68 → 255.255.255.255:67 · BROADCAST · "ANY SERVER OUT THERE?"OFFER: SERVER A PROPOSES 192.168.1.10 + MASK, GATEWAY, DNS, LEASE TIME · NOT USABLE YETREQUEST: BROADCAST, NAMES SERVER A · ACK: LEASE BOUND, THE T1/T2 CLOCKS STARTDISCOVEROFFERREQUESTACK0.0.0.0192.168.1.102 · TWO SERVERS OFFER: THE CLIENT PICKS ONEDISCOVER IS A BROADCAST, SO SERVER A AND SERVER B BOTH HEAR IT AND BOTH SEND AN OFFERREQUEST IS BROADCAST TOO: IT NAMES SERVER A, SO SERVER B KNOWS ITS OFFER LOSTACK FROM SERVER A BINDS THE LEASE · THE UNCHOSEN OFFER GOES BACK TO B'S POOLDHCP server BDISCOVERTWO OFFERSOFFERS .10OFFERS .77REQUEST (SERVER A)NOT CHOSEN · .77 BACK IN THE POOLACK0.0.0.0192.168.1.103 · ADDRESS CONFLICT: ACK, THEN DECLINEDORA FINISHES AS NORMAL: SERVER A ACKS 192.168.1.10BEFORE USING IT, THE CLIENT CHECKS: "WHO HAS 192.168.1.10?" · THE PRINTER ANSWERSCLIENT SENDS DHCPDECLINE, DROPS THE ADDRESS AND STARTS OVER WITH A NEW DISCOVERPrinter .10STATIC, INSIDE THE POOLDISCOVEROFFERREQUESTACKARP: WHO HAS .10?PRINTER: I DO!DHCPDECLINE0.0.0.0CONFLICT

Three runs take turns: a clean handshake, two servers competing, and an address conflict caught after the ACK. Pick a run to jump straight to it. The lesson in run 3: a static device inside the pool is exactly why exclusions exist.

Every run uses the same four messages. What changes is who answers, and what the client finds before it trusts the address.

Scopes, Pools, and Authority

Before a DHCP server can hand out a single address, someone has to tell it three things.

  • The scope is the pool of addresses DHCP hands out for one subnet, plus the settings that ride along (mask, gateway, DNS).
  • Each bill is a lease, not a gift: it goes back in the pool when it expires.
  • The pool is what’s left to lend: the scope’s range minus its exclusions. When the bag is empty, new clients get nothing.
  • Authority: only an approved server belongs on that balcony. Anyone else handing out addresses is a rogue.

Get the scope, the pool or the authority wrong and clients end up with no address, the wrong address, or an address from a server nobody approved.

ScopeScope design

The Subnet Plan

Plain meaning: A scope is the server's configuration for one subnet: a start and end address, a subnet mask, a lease time, and the options clients get (gateway 003, DNS servers 006, domain name 015).

One per subnet
One scope serves one subnet, so a building with a Sales VLAN and a Guest VLAN needs two scopes, and the remote VLAN's requests reach the server through a relay agent (IP helper).
On the job
Scope options apply to every client in that scope; server-level options apply to every scope unless a scope overrides them. When one VLAN gets the wrong gateway, check that scope's 003 before touching the server.
Exam angle
The scope range and mask must match the real subnet. A scope for 192.168.2.0/24 on a 192.168.1.0/24 network hands out addresses no router can reach.

Remember: One scope per subnet, and its range and mask must match that subnet.

PoolAddress pool

What's Left to Lend

Plain meaning: The pool is the set of addresses the server can actually lease out: the scope's range minus its exclusions.

Reservations
They sit inside the scope too, but they're held for one client instead of going to whoever asks first.
On the job
Size the pool for peak devices, not average. Phones, laptops, printers and guests all count, and every lease stays held until it expires, so long leases on a busy guest network drain the pool even after people leave.
Failure clue
"Existing clients work, new ones get 169.254" points at an empty pool.

Remember: The fix for an empty pool is a bigger range, a shorter lease or cleaning stale leases, not rebooting clients.

AuthorityAuthorized servers

Who's Allowed to Answer

Plain meaning: A server is authoritative for a scope when it's the approved source for that subnet.

DHCPNAK
An authoritative server sends a DHCPNAK (negative acknowledgment) when a client asks to keep an address that doesn't belong on that subnet, which forces the client to start DORA over.
Active Directory
A Windows DHCP server must be authorized in AD before it will hand out leases.
Redundancy
Use DHCP failover between two servers, or a split scope (the 80/20 rule: one server holds 80 percent of the pool, the other 20 percent, with no overlap). Two servers handing out the same range with no coordination is how duplicate addresses happen.
Exam angle
Any server that isn't approved for the subnet is a rogue DHCP server.

Remember: Clients take the first offer they hear, so authority is enforced on the network with DHCP snooping, covered in the security section below.

Worked example: one office subnet

Scope 192.168.1.0/24 on the office DHCP server
SettingValueWhy
Scope range192.168.1.1 to 192.168.1.254, mask 255.255.255.0Matches the real /24 subnet
Exclusions192.168.1.1 to 192.168.1.20The router, switches and servers are set by hand here
Pool192.168.1.21 to 192.168.1.254 (234 addresses)The range minus the exclusions
Reservation192.168.1.30 for the label printer's MAC addressSame address every day, settings still delivered by DHCP
Options003 = 192.168.1.1, 006 = 192.168.1.10, 015 = corp.example.comGateway, DNS server and domain suffix for every client
Lease time8 daysOffice devices stay put; a guest network would use hours
AuthorityAuthorized in Active Directory; failover partner holds the same scopeOnly approved servers answer, and one can fail without an outage

Two scope tools from that table get mixed up on the exam more than any others: exclusions and reservations.

Loading picture…
  • Exclusion (.100–.109 here): never handed out. Use it for gear you set by hand inside the pool’s range, like printers, servers and networking equipment.
  • It only blocks the pool: an exclusion doesn’t configure that device or fix a clashing static address somewhere else.
  • Reservation (.150 here): the same address every time for one client, matched by MAC address or client ID. It still gets gateway and DNS from DHCP.
  • Watch for: the device must still be set to DHCP, and a new NIC or MAC randomization breaks the match. A reservation isn’t authentication or a static IP.
Add-DhcpServerv4ExclusionRange -ScopeId 192.168.1.0 -StartRange 192.168.1.100 -EndRange 192.168.1.109
Add-DhcpServerv4Reservation -ScopeId 192.168.1.0 -IPAddress 192.168.1.150 -ClientId "00-11-22-33-44-55" -Name "FrontDeskPC"

Lease Mechanics: Why IPs Expire

Here's the part people forget: a client never owns its IP address. It borrows it.

The loan has an expiration date, and the client has to renew on a schedule. Play the lease clock below one checkpoint at a time and watch what the client sends.

  • Why unicast first? At T1 the client still has a working address and knows its server, so there’s no reason to shout.
  • No reply at T1? It keeps using its still-valid lease and keeps asking. At T2 it asks any server.
  • Defaults, not rules: 50% and 87.5% are defaults. A server can send its own T1 and T2 (options 58 and 59).
Lease clock8-hour teaching lease
ClientUDP 68 · workstation-042
NetworkLocal broadcast domain
DHCP server192.168.1.1 · UDP 67
T1: REQUEST (unicast)T2: REQUEST (broadcast)ACK: restart lease

Ready to trace the next message.

CLIENT LEASE192.168.1.10BOUND · 8h remaining
ACK
0h
T1 · 50%
4h
T2 · 87.5%
7h
Expiry
8h

Default T1 and T2 shown. A server can supply different timers. Time advances only when you choose a checkpoint.

dhcpd · lease events SIMULATED

Three things people get wrong about leases. Click each note to flip it.

DHCP Options: The Hidden Power

DHCP can deliver far more than an address.

It tells a device where the gateway is, which DNS servers to use, which domain name to append, which time server to sync with, and even where to boot from during an operating system deployment.

DHCP options and their purpose
Option Purpose
001Subnet Mask: Tells the client which addresses are on its local subnet.
003Default Gateway: Identifies the network exit point.
006DNS Servers: Tells the client which DNS servers to use for name resolution.
015Domain Name: Local DNS suffix.
042NTP Servers: Network Time Protocol servers the client syncs its clock with.
051Lease Time: How long the address lease stays valid.
066/067PXE Boot: 066 names the boot (TFTP) server and 067 names the boot file, used for network OS imaging.

Because DHCP runs automatically and early, before the user has even signed in, those options carry a lot of power.

That same power is why attackers target DHCP on internal networks, as you'll see in the security section.

Exam angle: Know the option numbers by job: 003 router, 006 DNS servers, 015 domain name, 051 lease time, 066/067 PXE boot server and file. Then match symptoms to them in the decoder that follows.

Interactive DHCP Option Decoder

Addressing is only one part of DHCP. The real technician skill is connecting a symptom to the missing option or bad value that caused it. Use this drill to match the problem to the option that deserves attention first.

PASS2 DHCP OPTION DRILL
OPTIONS_DECODER: ACTIVE

Current symptom: Clients receive an IP address, but they cannot reach networks outside the local subnet.

Choose the option or setting most likely causing the issue.

TICKET: 1 of 10
FIRST-TRY SCORE: 0 / 0
BEST FOCUS: Shown once solved
CATEGORY: Awaiting selection
STATUS: Awaiting selection
> Pick the option or setting most directly tied to the symptom. > One pick per ticket. A miss is marked wrong and shows the right option and why.

DHCP Relay (IP Helper)

DHCP depends on broadcasts, and routers don't forward broadcasts. That's fine in a one-subnet home, but a real company has devices on many VLANs and usually one central DHCP server.

So how does a laptop on VLAN 10 reach a server on another subnet?

Loading picture…
  • 1 · The client broadcasts on its own subnet, same as always.
  • 2 · The relay agent (an IP helper address on the router) hears it, stamps its own address in giaddr and unicasts it to the server.
  • 3 · The server picks the scope that matches giaddr, replies to the relay, and the relay hands the answer to the client.
  • When it breaks: check the helper address, a matching scope, the return route and any filter on UDP 67/68.
  • The trap: a scope for a remote subnet does nothing until a relay carries the broadcast across the router.

No relay, no lease for remote VLANs. Select Initiate Broadcast below to watch each hop.

INFRASTRUCTURE: L3_CROSSING
Ready
ClientUDP 68 · workstation-042
Relay agent10.1.1.1 · VLAN 10
DHCP server10.2.2.100 · UDP 67
DISCOVERRelay requestServer OFFERDeliver OFFER

Ready to trace the next message.

PACKET TYPE: N/A
DEST ADDR: N/A
RELAY (Opt 82): OFF
dhcpd · live events SIMULATED

Now watch the same Discover three ways: with no helper, with a working helper, and with a helper pointing at a server that has no matching scope.

Crossing the routerSheet 2 / 3
VLAN 10 · 10.1.1.0/24SERVER SUBNET · 10.2.2.0/24LaptopRouterVLAN 10 GW 10.1.1.1DHCP server10.2.2.1001 · NO IP HELPER: THE BROADCAST DIES AT THE ROUTERDISCOVER GOES TO 255.255.255.255 · ROUTERS DON'T FORWARD BROADCASTSTHE CLIENT RETRIES A FEW TIMES · THE SERVER NEVER HEARS A THINGRESULT: NO OFFER · WINDOWS FALLS BACK TO A 169.254.x.x (APIPA) ADDRESSBROADCAST STOPS HERE0.0.0.0169.254.37.122 · IP HELPER SET: ip helper-address 10.2.2.100 ON THE VLAN 10 INTERFACETHE RELAY HEARS THE BROADCAST, ADDS GIADDR 10.1.1.1 AND UNICASTS IT TO 10.2.2.100THE SERVER PICKS THE SCOPE THAT MATCHES GIADDR, THEN REPLIES TO THE RELAYRELAY DELIVERS THE OFFER ON VLAN 10 · REQUEST AND ACK TAKE THE SAME PATHDISCOVER (BROADCAST)UNICAST · GIADDR 10.1.1.1SCOPE 10.1.1.0/24OFFER → RELAYOFFER → LAPTOPREQUEST · ACK0.0.0.010.1.1.573 · HELPER SET, BUT THE SERVER HAS NO SCOPE FOR 10.1.1.0/24THE RELAY DOES ITS JOB AND UNICASTS THE DISCOVER TO THE SERVERGIADDR 10.1.1.1 MATCHES NO SCOPE ON THE SERVER, SO NO OFFER COMES BACKSAME SYMPTOM AS RUN 1 (169.254.x.x) · DIFFERENT FIX: CREATE THE SCOPEUNICAST · GIADDR 10.1.1.1NO MATCHING SCOPE0.0.0.0169.254.88.4

Three runs: no helper, a working helper, and a helper pointing at a server with no matching scope. Runs 1 and 3 end in the same 169.254 address for different reasons, which is why you check both the helper and the scope.

A scope for a remote subnet does nothing until a relay carries the broadcast across the router, and a relay does nothing without a matching scope.

DHCP Security Risks & Defense

DHCP trusts whoever answers.

That makes it an easy target on an open or poorly protected network. Two attacks matter most: running the pool dry, and answering clients with a fake server.

StarvationDHCP attacks

Resource Exhaustion

Plain meaning: DHCP starvation tries to use up the whole address pool by faking many client identities or flooding requests.

Symptom
New clients can't get leases, while clients with valid existing leases keep working until their circumstances change.
Check it
Look at free addresses, unusual lease churn and switch-port activity. Ordinary growth or overly long lease times can exhaust a scope too.
The fix
Request-rate limits and port security, where supported, help against abuse.

Remember: N10-009 ties availability to evidence. A full pool isn't automatically an attack, and restarting clients never creates more addresses.

Rogue serverDHCP attacks

Traffic Interception

Plain meaning: A rogue DHCP server is any unauthorized server handing out configuration.

How it goes wrong
An attacker's rogue server can advertise its own gateway or DNS resolver to redirect traffic or name lookups, and an accidental second home router plugged into the office can hand out bad leases too.
Check it
Compare the server identifier, gateway and DNS values clients received with your approved scope.
The fix
DHCP snooping on the switch limits server replies to trusted ports, so trust only the ports that lead to the real server or uplink.

Remember: A successful lease doesn't prove the server was authorized. DHCP doesn't encrypt application traffic or make the advertised gateway trustworthy.

The Solution: DHCP Snooping

DHCP snooping is a switch feature that controls where DHCP server replies may come from. Every port lands on one side of this line:

Trusted port

Leads to the real server

  • Mark only the ports that lead to approved DHCP servers or the uplink toward them.
  • Server replies such as Offers and ACKs are allowed through.
Cisco
ip dhcp snooping trust
Example
The uplink, Gi1/0/48
vs
Untrusted port

Where clients plug in

  • Client messages like Discover and Request pass normally.
  • Offers arriving on these ports get dropped.
Default
Every port is untrusted once snooping is on
Extra
An optional rate limit stops floods of requests

Bonus: While it watches, the switch builds a binding table that maps MAC addresses to IP addresses. That table blocks rogue servers and powers extra protections like Dynamic ARP Inspection.

Rogue server vs DHCP snoopingSheet 3 / 3
LaptopPORT Gi1/0/5Access switchDHCP server10.10.10.5Gi1/0/48 · TRUSTEDGi1/0/12 · UNTRUSTED1 · NO SNOOPING: THE ROGUE ANSWERS FIRSTDISCOVER IS FLOODED TO EVERY PORT IN THE VLAN · BOTH DHCP SERVERS HEAR ITTHE ROGUE IS CLOSER, SO ITS OFFER ARRIVES FIRST: GATEWAY AND DNS = 192.168.0.1THE CLIENT TAKES THE FIRST OFFER · ITS GATEWAY AND DNS ARE NOW THE ROGUE'S BOXHome routerDISCOVERROGUE OFFERREAL OFFER (TOO LATE)REQUEST → ROGUE0.0.0.0192.168.0.232 · DHCP SNOOPING ON: UNTRUSTED PORTS CAN'T SEND OFFERSSAME BROADCAST, SAME TWO SERVERS · BUT THE SWITCH CHECKS WHICH PORT EACH REPLY USESGi1/0/12 IS UNTRUSTED, SO THE ROGUE'S OFFER IS DROPPED AT THE SWITCHREAL OFFER VIA TRUSTED Gi1/0/48 · THE ACK ADDS A BINDING: MAC + IP + VLAN + PORTHome routerDISCOVEROFFER ON UNTRUSTED PORT → DROPPEDREAL OFFERREQUESTACK0.0.0.010.10.10.253 · STARVATION FLOOD: RATE LIMIT ON THE ACCESS PORTHUNDREDS OF DISCOVERS PER SECOND, EACH FROM A FAKE MAC ADDRESSip dhcp snooping limit rate 10 ON Gi1/0/12 · THE PORT GOES OVER THE LIMITTHE SWITCH ERR-DISABLES Gi1/0/12 · THE POOL STAYS INTACT FOR REAL CLIENTSAttackerFAKE MACS, FLOOD OF DISCOVERSPORT ERR-DISABLED10.10.10.25

Three runs: a home router plugged into a wall jack wins the race, DHCP snooping drops that same offer, and a rate limit shuts down a starvation flood. The client never checks who answered; the switch does.

DHCP snooping lives on the switch. The clients don't change at all.

DHCP States & Failure Conditions

DHCP rarely fails silently. The configuration a client ends up with is evidence, and once you recognize the patterns you stop guessing where to look.

DHCP states and failure conditions
Symptom Meaning Check next
Valid IP in the right subnetLease successful.If things still fail, check the gateway and DNS values the lease delivered.
169.254.x.xNo DHCP response (APIPA).Link and VLAN first, then the server, scope and relay.
Intermittent dropsLease renewal failures.Whether renewals reach the server at T1 and T2.
Wrong gateway or DNSRogue DHCP or misconfigured scope.The DHCP server address in ipconfig /all against your approved server.
Address from the wrong subnetPort in the wrong VLAN, or a relay pointing at the wrong scope.The switch port's VLAN and the relay's helper address.

Now put that table to work. Each ticket shows the evidence a tech would collect. Watch which clue gives the failure away.

dhcp-triage.sh: which DHCP failure is this?

The APIPA Red Flag (169.254.x.x)

A new hire plugs in on her first morning and gets nothing. ipconfig shows 169.254.37.12. That address is Windows telling you, "I asked for DHCP and nobody answered."

Loading picture…
  • 169.254.0.0/16 is Automatic Private IP Addressing (APIPA): no usable lease arrived, so Windows picked its own address after checking nobody on the link had it.
  • No gateway: it can talk to neighbors on the same link, but nothing beyond it. No internet.
  • Why no answer? An empty scope, a server that’s down, a missing relay, or a client on the wrong link or VLAN.

Treat APIPA as a symptom, not a diagnosis.

Try it below: use Toggle Server Power to take the server down, start a DHCP search, and watch what the client falls back to.

DIAGNOSTIC: DHCP_TIMEOUT
ClientUDP 68 · workstation-042
NetworkLocal broadcast domain
DHCP server192.168.1.1 · UDP 67
DISCOVEROFFERREQUESTACK

Ready to trace the next message.

CURRENT IP: 0.0.0.0
MASK: 0.0.0.0
DNS: UNREACHABLE
client · diagnostic capture SIMULATED

Troubleshooting DHCP

Tuesday, 9:10 AM. Three new laptops in the training room all show 169.254 addresses, while the desktops that have sat there for months work fine.

Is the DHCP server dead? Not necessarily.

Those desktops may just be riding on leases they got last week.

ipconfig /all

Start at the client. Read the address, mask, gateway, DNS and DHCP Server lines. No lease at all (169.254), or the wrong settings?

ipconfig /release

Drop the lease. Your connection drops with it, so don’t run this over remote desktop.

ipconfig /renew

Run DHCP again. Still failing? Follow the path toward the server one stop at a time.

Follow the lease path

  1. Link and VLAN

    Cable, Wi-Fi network and the switch port's VLAN decide which subnet the client is on.show vlan · link lights

  2. Reach the server

    Same subnet, or a relay (IP helper) carrying the broadcast across the router.ipconfig /renew

  3. Free address

    The scope needs an unused address with no conflict waiting.scope statistics · arp -a

  4. Right options

    Mask, gateway, DNS, suffix and PXE values must match the site.ipconfig /all

  5. Renewal

    At T1 the client unicasts a renewal; at T2 it broadcasts to any server.DHCP server logs

A client with 169.254.x.x failed somewhere in stops 1 to 3. A client with the wrong settings got past them and failed at stop 4.

Practical troubleshooting steps

  1. APIPA or wrong settings?

    Confirm whether the client failed to get an address at all (169.254.x.x) or got the wrong configuration.

  2. Check the relay

    If the client and server are on different subnets, verify the relay (IP helper) on the gateway.

  3. Scope health

    Check scope health: free leases, exclusions, reservations and conflicts.

  4. Compare the options

    Compare the delivered options with what the site actually needs, especially gateway, DNS, domain suffix and PXE values.

  5. Rogue or failover?

    If behavior is inconsistent, look for rogue servers, DHCP snooping status or failover sync problems, and read the DHCP logs for unauthorized activity.

Exam angle (220-1201, N10-009): Test one suspected cause at a time and verify connectivity after each renewal.

Exam trap: An APIPA address is a clue, not proof that the DHCP server is broken. A disconnected link, wrong VLAN or missing relay produces exactly the same symptom.

The three fixes people skip

Most guides tell you to "check the scope" and stop there. Here's what to actually do once you've found the problem.

Pool exhaustionTroubleshooting

Fix a full scope

Plain meaning: New devices get 169.254 addresses while devices that already had leases keep working.

Check it
Look at the scope statistics: zero free addresses means the pool is exhausted.
The fix
First clear out stale leases left by devices that are gone. Then shorten the lease time on busy guest networks so addresses come back sooner.
Still short?
Expand the scope (a larger range, or a bigger subnet such as /23 instead of /24) if the network has simply grown.
Watch for
If churn is wild and the MAC addresses look random, treat it as possible starvation.
Get-DhcpServerv4ScopeStatistics -ScopeId 192.168.1.0

Remember: Zero free addresses: clean out stale leases first, then shorten the lease or grow the scope.

Duplicate IPTroubleshooting

Detect and fix a conflict

Plain meaning: Windows warns about an IP address conflict, or two devices take turns dropping.

Likely cause
A static address typed inside the DHCP pool, or two servers handing out overlapping ranges.
Detect
ping the address, then arp -a shows which MAC answered; the lease table shows who should have it. A client that detects a conflict sends DHCPDECLINE and asks again.
The fix
Exclude or move the static address, turn on server conflict detection (the server pings an address before offering it), and keep server ranges separate.
ping 192.168.1.50
arp -a | findstr 192.168.1.50

Remember: arp -a tells you who answered; the lease table tells you who should have.

Intermittent dropsTroubleshooting

Trace the renewal path

Plain meaning: The connection drops every few hours, often near the lease's halfway point, then recovers.

Likely cause
Renewal: the T1 unicast isn't reaching the server, or the server isn't answering.
Check it
Lease Obtained and Lease Expires in ipconfig /all, the server's renewal logs, and whether a firewall or relay drops UDP 67/68.
The fix
Repair that path, resolve failover sync problems between servers, and rule out a rogue server answering some requests.
Lease Obtained. . . : Saturday, November 7, 2026 8:00:00 AM
Lease Expires . . . : Sunday, November 8, 2026 8:00:00 AM

Remember: Drops near the lease's halfway point mean you trace the renewal path first.

Symptom, cause, check, fix

This table covers every DHCP and addressing symptom in the A+ 220-1201 and Network+ N10-009 troubleshooting objectives. Read across each row: the symptom points to a likely cause, the check proves it, and only then do you apply the fix.

DHCP troubleshooting: symptom, likely cause, check first, fix
SymptomLikely causeCheck firstFix
One client shows 169.254.x.xA+ 5.5 limited connectivityLink down, wrong Wi-Fi network, or the port isn't in the right VLANLink lights, ipconfig /all, the switch port's VLAN (show vlan)Fix the link or VLAN, then ipconfig /release and ipconfig /renew
Every client in one VLAN shows 169.254.x.xA+ 5.5 limited connectivityMissing or wrong relay (IP helper), no scope for that subnet, or the DHCP service is downHelper address on that VLAN's gateway; the DHCP service; a scope for the subnetPoint the helper at the DHCP server, create the scope, or restart the service
New devices get no lease while existing devices keep workingN10-009 5.3 address pool exhaustionThe scope has no free addresses left (growth, long leases, or starvation)Scope statistics: free addresses and active leases in the DHCP consoleClear stale leases, shorten the lease time, or expand the scope; turn on port security if lease churn looks abusive
Client gets an address from the wrong subnetN10-009 5.3 incorrect VLAN assignmentThe switch port is assigned to the wrong VLAN, so DHCP serves that VLAN's scopeshow vlan and show interface on the switch; ipconfig /allMove the port to the right VLAN, then renew
"IP address conflict" warning, or two devices take turns droppingN10-009 5.3 duplicate IP addressA static address inside the DHCP pool, or two servers with overlapping rangesping the address, then arp -a to see which MAC answers; the server's lease tableExclude or move the static address, enable server conflict detection, and keep server ranges separate
Connection drops every few hours, then comes backA+ 5.5 intermittent internet connectivityRenewals at T1 and T2 aren't reaching the server, or failover servers are out of syncLease Obtained and Lease Expires in ipconfig /all; DHCP server logsRepair the relay, route or filter carrying UDP 67/68, and fix failover sync
Local devices work, nothing beyond the subnet doesN10-009 5.3 incorrect default gatewayThe scope's router option (003) is wrongipconfig /all default gateway; ping the gatewayCorrect option 003, then renew the clients
Clients reach some local devices but not othersN10-009 5.3 incorrect subnet maskThe scope hands out the wrong subnet mask (option 001)ipconfig /all mask against the subnet designCorrect the scope's mask, then renew
IP addresses work, names don'tOption 006 points at a wrong or dead DNS serveripconfig /all, then nslookupCorrect option 006, then renew
Clients get a gateway or DNS server you never configuredN10-009 5.3 incorrect IP addressA rogue DHCP server, often a home router plugged into a wall jackThe DHCP Server line in ipconfig /allFind and remove the device, then enable DHCP snooping
Guest gets an address but no internetA+ 5.5 limited connectivityCaptive-portal sign-in not completedOpen a browser and look for the sign-in pageComplete the portal sign-in
IP phone gets an address but never registersTFTP option (66 or 150) or voice VLAN setting is wrongThe phone's network information screenCorrect the phone options in the scope
Network boot says "no boot file found"PXE options 066 (boot server) or 067 (boot file) are wrongThe scope options; the boot server's file nameCorrect options 066 and 067
Only an fe80:: address, no global IPv6 addressNo router advertisement reaching the VLAN, or RA Guard blocking the real routeripconfig /all; the router interface's RA settings; RA Guard trust on the uplinkEnable RAs on that router interface, or trust the router's port
IPv6 address present but no IPv6 DNS servers listedThe RA has the O flag off, or no DHCPv6 server or relay answersThe RA's M and O flags; ipconfig /renew6; the DHCPv6 relay on the VLANSet the O flag and supply option 23, or add RDNSS to the RA
Laptops get an unknown IPv6 prefix and gateway; IPv4 looks normalRogue router advertisement from an unauthorized deviceipconfig /all default gateway (fe80::); the switch port the RA came fromRemove the device and enable RA Guard on access ports
Exam angle: "existing clients work, new clients don't" means pool exhaustion; "a whole VLAN gets 169.254" means a relay or scope problem; "one client gets 169.254" starts with its link and VLAN. Pick the answer that matches the scope of the failure.

Quick check: Back to the training room. The scope shows 0 free addresses out of 200, and the lease time is 30 days. Which two fixes would you try first, and why would rebooting the laptops not help?

Real-World Use Cases & Myths

DHCP is everywhere: corporate LANs, guest Wi-Fi, OS deployment systems, VoIP phones and IoT devices.

Most of the time it works quietly in the background, which is exactly why it only gets attention when something breaks. Let's clear up three myths, then look at where you'll meet it on the job.

IP desk phone with Ethernet cable seated beside a second pass-through jack.
Generated teaching image: an IP phone can receive network configuration through DHCP. Its network and pass-through ports have different roles; DHCP option values stay in the lesson.

Common Myths

MythLease contents

"It got an IP, so the network is fine"

Reality: An ACK only proves the lease was granted. It says nothing about whether the settings inside it are right.

Why it fools people
The address looks normal, so nobody checks the rest of the lease. A wrong gateway, a dead DNS server or a mismatched mask still breaks everything.
Check it
Compare the mask, gateway and DNS the client received against what the scope should hand out. In this output the mask is a /16, but the scope is a /24.
IPv4 Address. . . : 192.168.1.10
Subnet Mask . . . : 255.255.0.0
Default Gateway . : 192.168.1.254

Remember: An address is step one. Mask, gateway and DNS finish the job.

MythReservations

"A reservation is just a static IP"

Reality: A reservation is still DHCP. The server hands the same address to one recognized client, and the device still asks for it.

How the server knows it
Usually by MAC address or DHCP client identifier.
Static vs. exclusion
A static address is typed into the device itself. An exclusion keeps addresses out of the pool so the server never hands them out, which is where manually configured devices belong.
Example
A printer works either way: a reservation, or a static address inside an excluded range.

Remember: Reservation = the server decides. Static = the device decides. Exclusions keep the two from colliding.

MythDHCP security

"Automatic means trusted"

Reality: Clients accept the first offer they get, from any server that answers.

How it goes wrong
A rogue DHCP server, even a home router plugged into an office jack, hands out its own gateway and DNS.
The fix
DHCP snooping on the switch lets only trusted ports send server replies and drops offers from everywhere else.
ip dhcp snooping
ip dhcp snooping vlan 10
interface Gi1/0/48
 ip dhcp snooping trust

Remember: DHCP has no trust built in. The switch adds it.

Where You'll See It on the Job

On the jobVoIP

IP desk phones

Plain meaning: A phone needs more than an address. It also needs to know where its settings live.

What DHCP adds
The TFTP server that holds its configuration (often option 66 or 150) and sometimes which voice VLAN to use.
Symptom
The phone gets an IP address but never registers.
Check it
Look at those options before you touch the lease.

Remember: IP but no registration means check the options, not the lease.

On the jobImaging

PXE imaging

Plain meaning: A brand-new PC with no OS network-boots and asks DHCP where to find its boot file.

What DHCP adds
The boot server (option 66) and the boot file name (option 67).
Symptom
"No boot file found" or a PXE error during startup.
Check it
A missing or wrong option 66 or 67 is the usual cause.
PXE-E53: No boot filename received

Remember: PXE booting leans on DHCP options 66 and 67.

On the jobLease time

Guest Wi-Fi

Plain meaning: Coffee shops and lobbies use short leases (an hour or less) so addresses free up quickly as people come and go.

Symptom
At a busy event, new guests connect to the Wi-Fi but never get online.
Likely cause
The pool is exhausted: every address is already leased out. Clients may fall back to a 169.254.x.x address.
Fix
Shorten the lease or widen the scope.

Remember: A busy place with no addresses means check pool usage first.

BB Mission Check

This checkpoint mixes DORA logic, APIPA clues, scope behavior, options, relay, security and the IPv6 side of address assignment.

The goal isn't reciting terms; it's showing you can read a symptom and say where DHCP is breaking.

Part 1
Fourteen quick questions, one pick each
A miss
Marked wrong; the debrief shows the right answer and why
Part 2
Nine help desk tickets that put the same ideas on the job

Part 1: Fourteen quick questions

Final Readiness Check

DHCP Operations Review

Score: 0 / 14
Question 01

Which DORA message does a brand-new client send first?

Question 02

A Windows client shows 169.254.44.18 with no default gateway. What is the strongest clue?

Question 03

Which DHCP option usually delivers the default gateway?

Question 04

A client can ping 8.8.8.8 but cannot resolve websites by name. Which DHCP value should you inspect first?

Question 05

You want a printer to always receive the same IP from DHCP. What should you configure?

Question 06

What keeps a DHCP server from handing out an address already used by a statically configured server?

Question 07

Clients on a VLAN need leases from a DHCP server on a different subnet. What feature is usually required on the gateway?

Question 08

Several users suddenly receive the wrong gateway and DNS settings. What should be considered?

Question 09

New clients cannot get leases, but existing clients still work. What should you check early?

Question 10

Which DORA message confirms the server has granted the lease?

Question 11

Which switch feature helps defend against unauthorized DHCP servers?

Question 12

A laptop is halfway through an 8-hour lease and is still on the same network. What does it normally do now?

Question 13

A laptop has only a link-local IPv6 address. What can you conclude from that address list alone?

Question 14

A DHCPv6 server gives IPv6 clients their DNS servers. Where do those clients learn their default gateway?

Part 2: Work the help desk (DHCP tickets)

Your turn at the desk. Read who's affected and who isn't, because that's usually the biggest clue. You get one pick per ticket: a wrong pick is marked wrong, and the notes show the right move and why.

Help Desk Queue: DHCP tickets
Work each ticket from the evidence. Only your first try on each ticket counts toward the score.
INC-00000OpenP2

Loading ticket...

Requester
Department
Category
Assigned to
You (Tier 1)
Message from the user

Your call

Choose your action

Work notes will appear here once you choose an action.
First-try score: 0 / 0

DHCP: key takeaways

  • DHCP leases an address and can supply subnet mask, gateway and DNS configuration.
  • The usual initial IPv4 sequence is Discover, Offer, Request, Acknowledge.
  • A scope defines an address range and settings; exclusions prevent selected addresses from being leased.
  • Reservations associate a client with a predictable DHCP assignment; they are distinct from manually configuring a static address.
  • Relays forward DHCP exchanges across routed boundaries.
  • Lease renewal differs from a first-time discovery; scope capacity and server reachability matter.
  • An APIPA address in 169.254.0.0/16 suggests missing usable DHCP configuration and normally does not provide routed connectivity.
  • IPv6 hosts self-assign fe80:: and then use SLAAC or DHCPv6 (SARR, UDP 546/547); the gateway always comes from router advertisements, never DHCPv6.

Common mistakes

  • Confusing a reservation with a scope exclusion.
  • Diagnosing scope exhaustion as a DNS fault.
  • Expecting a broadcast discovery to cross a router without a relay.

Study next

Cheat Sheet

Keep these visual references open while you review, or print the set.

Loading cheat sheet…

LAT: 0000
LON: 0000
DEP: 0000