ProtoStackv0.1

Interactive Protocol Visualizer

Back to all protocols
ARPBGP
Network & CoreCore trackIntermediateOSI: Application LayerDefault Port: 67 / 68Standard: RFC 2131

DHCP

— Dynamic Host Configuration Protocol

DHCP automatically assigns IP addresses and other communication parameters to devices joining a network via the 4-step DORA process (Discover, Offer, Request, Acknowledge).

Read first: Ethernet (802.3), IPv4, UDPContent reviewed 2026-11-18

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

Simulated

Defensive education. Every step runs in this page; no traffic is generated or sent.

Attack library

Rogue DHCP server

Spoofing

An unauthorised DHCP server answers first and hands out a malicious gateway or DNS server.

Attackersimulated
DHCPtarget
Attack step 1 of 3
Race the real server

The attacker replies to DISCOVER messages before the legitimate server.

What a defender can see

Two DHCP servers offering addresses on one segment.

Impact if unmitigated

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)