Back to feed
Dev.to
Dev.to
7/18/2026
The original title is: "DHCP Explained: How a Machine With No IP Address Gets One in Four Messages"

The original title is: "DHCP Explained: How a Machine With No IP Address Gets One in Four Messages"

Original: DHCP Explained: How a Machine With No IP Address Gets One in Four Messages

Short summary

A hands-on networking lab from the Protocol Lab series that walks through the DHCP DORA (Discover, Offer, Request, Ack) exchange using containerlab and Docker. The lab sets up an address-less client and a DHCP server on a single link, captures the four-message exchange with tcpdump, and covers ports 67/68, lease times, and DHCP options like router and DNS. It excludes DHCP relay, DHCPv6/SLAAC, and rebinding timers.

  • DHCP uses four broadcast messages (DORA) to assign IP addresses to booting clients
  • Lab uses containerlab with udhcpd/udhcpc to capture the full exchange on the wire
  • Covers ports 67/68, lease times, and common DHCP options but skips relay and IPv6

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more