IP addressnone yetIP address192.168.1.101
Envelopes: one DHCP message each; a wave badge means broadcast (everyone hears it)Yellow tags: addresses in the router's pool; a coloured dot shows who holds the leaseLease clock: 24 h dial, blue pip = T1 (renew), orange pip = T2 (rebind)Phone: another device on the LAN; it hears broadcasts but is not a DHCP serverA laptop joins the home network 192.168.1.0/24 with no IP address. It broadcasts a DHCPDISCOVER from 0.0.0.0:68 to 255.255.255.255:67, which every device hears. The router, the DHCP server, lends it 192.168.1.101 from its pool in a DHCPOFFER with the mask, gateway, DNS server and a 24 h lease. The laptop broadcasts a DHCPREQUEST for it and the router confirms with a DHCPACK: DORA. The lease clock then runs: at T1 (12 h) the laptop renews with a unicast request and the clock resets; without an answer it would broadcast at T2 (21 h) and give the address up at 24 h. 192.168.1.0/24 is a private range (RFC 1918). The MAC addresses come from the documentation block 00:00:5e:00:53:xx (RFC 7042); ff:ff:ff:ff:ff:ff is the real Ethernet broadcast address. The transaction ID is illustrative.

Joining the LAN

  1. Your laptop just joined the home network. It has a MAC address (a fixed hardware name) but no IP address yet, so it cannot talk to anyone. DHCP, the Dynamic Host Configuration Protocol, will lend it one.

DORA

The lease

The message, field by field

;; step 1/11 · no-address · state
;; at the laptop
interface  wlan0  MAC 00:00:5e:00:53:01
IPv4       none (0.0.0.0)
gateway    none
DNS        none
DHCP state INIT

A 24 h lease is a common home-router default; T1 = 50% and T2 = 87.5% of the lease are the RFC 2131 defaults, and a server may send other values in options 58 and 59. Before using a new address, the client should check nobody else has it, for example with an ARP probe; if someone answers, it sends DHCPDECLINE and starts again.