beginner v1 • Updated 7 hours ago

DHCP (Dynamic Host Configuration Protocol)

DHCP is an automated client-server network protocol that dynamically assigns IP addresses, subnet masks, default gateways, and DNS server addresses to hosts.

Remember This Key Rule

DORA: Discover -> Offer -> Request -> Acknowledge. Uses UDP 67 (Server) and UDP 68 (Client).

In Simple Terms

Instead of a network technician manually walking to every laptop, phone, and printer to type in static IP addresses, DHCP automatically leases an IP configuration to devices when they join the network.

Visual Diagram & Flow

Client (UDP 68)
1. Discover (Bcast) ──►
◄── 2. Offer
3. Request (Bcast) ──►
◄── 4. ACK
DHCP Server (UDP 67)
Why It Matters in Real Networks

Without DHCP, managing thousands of mobile client devices in an enterprise or Wi-Fi network would be logistically impossible.

How It Works (Technical Breakdown)

The 4-Step DORA Process (UDP Ports 67 Server / 68 Client): 1. **Discover**: Client broadcasts `DHCPDISCOVER` (Src: `0.0.0.0`, Dest: `255.255.255.255`). 2. **Offer**: DHCP Server reserves an IP and unicasts/broadcasts `DHCPOFFER`. 3. **Request**: Client broadcasts `DHCPREQUEST` confirming acceptance of the offered lease. 4. **Acknowledge**: Server responds with `DHCPACK` containing the lease duration, gateway, and DNS servers. - **DHCP Relay Agent (`ip helper-address`)**: Forwards broadcast DHCP discoveries across routers to a centralized DHCP server in another subnet.
Real-World Analogy

Renting a car: You walk to the counter (Discover), the agent shows available car models (Offer), you sign the paperwork choosing Car 4 (Request), and the agent hands you the keys and parking pass (Acknowledge).

Concrete Example

A home router acts as a DHCP server with a pool of `192.168.1.100` - `192.168.1.200`, subnet mask `255.255.255.0`, gateway `192.168.1.1`, and DNS `8.8.8.8` with a 24-hour lease.

Common Engineering Mistakes & Pitfalls

Having two unauthorized rogue DHCP servers on the same VLAN handing out overlapping IP pools and incorrect default gateways.

Concept Mastery Quiz

Test your comprehension with active-recall questions.

No quiz questions generated for this topic yet.

Active Recall Flashcards

Click each flashcard to reveal the answer and test your memory.

Flashcard Cue
What are the 4 steps of the DHCP allocation process in order?
D.O.R.A.: Discover -> Offer -> Request -> Acknowledge (ACK).
DHCP DORA

Content Versioning

Audit trail of revisions and updates for this knowledge topic.

Version Change Summary Author Timestamp
v1 (Current) Active production content system Sun, Aug 23, 2026 11:09 AM
Searching...
No matching topics found for "".
Type at least 2 characters to search across all topics, protocols, and scenarios.
Navigate with mouse or click ESC to close