DHCP stands for Dynamic Host Configuration Protocol. It automatically assigns network settings to devices so they can communicate on a network and access the internet — without you having to manually type an IP address, subnet mask, gateway, or DNS server.
On most home networks, your router is the DHCP server.
What Does DHCP Assign?
When a device connects, DHCP hands it everything it needs to communicate:
How Does DHCP Work? (The DORA Process)
DHCP uses a 4-step handshake called DORA — good to recognize for the A+ exam:
Focus on the overall idea — DHCP is an automated "handshake" that assigns network settings — rather than memorizing every packet detail.
Lock In DHCP Quickly
Take the practice exams, then come back and review the troubleshooting section.
What Is a DHCP Lease?
The server assigns an IP address for a set time period (hours or days). Before it expires, the device tries to renew it automatically. This prevents two devices from accidentally sharing the same IP.
Memory trick: Lease = "you don't own the IP forever."
How to Check DHCP on Windows
Open Command Prompt and run ipconfig /all to see full DHCP details. Look for these key lines:
Common DHCP Problems (Troubleshooting Clues)
If DHCP fails, watch for these symptoms:
Common causes:
How to Troubleshoot DHCP Issues
ipconfig /release then ipconfig /renewIf you still get a 169.254 address after running /release and /renew, focus troubleshooting on the path to the DHCP server: router → switch → cable → Wi-Fi authentication.
The device is trying — the network path is blocked.
DHCP vs Static IP
Best for: Laptops, phones, classroom PCs — anything that moves or doesn't need a fixed address.
Automatic and scalable. No manual configuration needed.
Best for: Servers, printers, network gear — devices that must always be reachable at the same address.
Or use a DHCP reservation to give a dynamic device a permanent address.
DHCP Scopes, Exclusions & Reservations
These three concepts define how a DHCP server controls address assignment. Study them together for Network+.
Exclusion: The DHCP server skips those addresses entirely — they're available for manual static assignment but DHCP will never touch them.
Reservation: The DHCP server still manages the address — but always assigns that specific IP to that specific MAC address. The device uses DHCP; it just always gets the same answer.
DHCP Relay Agents
DHCP uses broadcast packets for the Discover and Request steps. By definition, routers do not forward broadcasts — so a device on one subnet normally can't reach a DHCP server on a different subnet.
A DHCP relay agent (also called an IP helper) solves this. It's configured on a router interface and listens for DHCP broadcasts from clients. When it hears one, it converts it to a unicast packet and forwards it to the DHCP server's IP address. The server responds to the relay, which forwards the reply back to the client.
Without relay agent: Client (VLAN 10) ──broadcast──► Router ✗ drops it DHCP Server (VLAN 20) With relay agent (ip helper-address configured on router interface): Client (VLAN 10) ──broadcast──► Router ──unicast──► DHCP Server (VLAN 20) ◄──unicast── Client ◄──unicast── Router
On Cisco routers, the relay agent is configured per interface with ip helper-address [DHCP server IP].
The relay agent forwards not just DHCP traffic but also several other UDP broadcast services by default — DNS (53), TFTP (69), Time (37), NetBIOS (137/138), TACACS (49), and others. NTP (123) is not included.
"Devices on VLAN 20 are getting APIPA addresses even though a DHCP server exists on VLAN 10. What is the most likely cause?"
Answer: No DHCP relay agent configured on the router interface for VLAN 20. The DHCP broadcasts from VLAN 20 clients are being dropped at the router and never reaching the server.
APIPA — When DHCP Fails
If a Windows device sends DHCP Discover messages and gets no response, it assigns itself an address in the 169.254.0.0/16 range, a feature called APIPA (Automatic Private IP Addressing). An APIPA address is almost always a symptom of a DHCP problem: the server is down, unreachable, or the scope is exhausted, and the device can reach only other hosts on the same local segment. For the range rules, RFC 3927 and the full fix sequence, see What Is APIPA?
Rogue DHCP Servers
A rogue DHCP server is an unauthorized device on the network that responds to DHCP Discover messages. Because DHCP is first-come-first-served, if the rogue server responds faster than the legitimate one, it wins — and can hand out false IP addresses, a wrong default gateway (routing traffic through an attacker's machine), or a malicious DNS server (redirecting web traffic).
What the attacker controls: Default gateway (enabling man-in-the-middle), DNS server (enabling phishing via DNS hijacking), or simply an incorrect subnet — causing a denial of service.
Defense — DHCP snooping: A managed switch feature that designates only certain ports as "trusted" DHCP sources. Any DHCP Offer or Acknowledge arriving on an untrusted port is dropped. This is the primary mitigation.
Also know: On Windows Server networks, the DHCP server must be authorized in Active Directory before it can respond to clients — a built-in rogue server prevention mechanism.
Final Summary
Related Networking Articles
Preparing for the A+ Exam?
See the books, practice exams, and free resources that actually work.