DHCP
— Dynamic Host Configuration ProtocolDHCP automatically assigns IP addresses and other communication parameters to devices joining a network via the 4-step DORA process (Discover, Offer, Request, Acknowledge).
Interactive Session: How DHCP Works
Step through the packet exchange sequence between nodes.
Interactive Execution Sandbox
Interact with a live or clearly-labelled simulated instance of DHCP.
Threat Model & Attack Simulation
How this protocol is attacked in practice, what defenders can see, and which control stops it.
Threat model & attack simulation
SimulatedDefensive education. Every step runs in this page; no traffic is generated or sent.
Rogue DHCP server
SpoofingAn unauthorised DHCP server answers first and hands out a malicious gateway or DNS server.
Race the real server
The attacker replies to DISCOVER messages before the legitimate server.
Two DHCP servers offering addresses on one segment.
Traffic interception for new or renewing clients.
Defences that matter
- DHCP snooping with trusted ports
- Port security and 802.1X
- Monitor for unauthorised DHCP servers
This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.
Protocol Specification & Architecture
Key characteristics, real-world deployment patterns, and trade-offs.
Core Technical Features
- 4-step DORA handshake: Discover, Offer, Request, Acknowledge
- Lease-based address pool allocation
- Distribution of gateway routers, subnet masks, and DNS resolvers
- MAC address reservation for static device addressing
Real-World Use Cases
- Home Wi-Fi plug-and-play network access
- Corporate office laptop subnet management
- Virtual machine IP leasing
Advantages & Strengths
- Eliminates manual IP configuration conflicts
- Efficient reuse of limited IP addresses via leases
Limitations & Vulnerabilities
- Rogue DHCP servers can perform Man-In-The-Middle attacks (mitigated by DHCP snooping)