Diagnose DHCP address assignment on a Linux network
8 steps · about 3 h 2 min · Intermediate
- Follow the DHCP state machine (reference, RFC Editor, 35 min)
Use the protocol specification to understand message order, timers, fields and client state transitions.
- Read DHCP options correctly (reference, RFC Editor, 25 min)
Interpret subnet, router, DNS, lease and server options rather than looking only for an assigned address.
- Inspect NetworkManager IPv4 settings (doc, NetworkManager, 18 min)
Separate automatic-address settings, routes and DNS behavior on a Linux client before capturing traffic.
- Check link and lease state (reference, systemd, 14 min)
Use networkctl status and renew operations to capture the client's observed configuration and transition.
- Review systemd-networkd DHCP configuration (doc, systemd, 22 min)
Verify match rules, DHCP mode and per-link settings when the client never starts or applies a lease correctly.
- Decode DHCP packets in Wireshark (reference, Wireshark, 20 min)
Filter BOOTP/DHCP traffic and compare transaction IDs, addresses and options across each exchange.
- Inspect server pools and reservations (doc, ISC Knowledgebase, 28 min)
Check authoritative scope, ranges, reservations and option inheritance when offers are absent or wrong.
- Account for relay-agent information (reference, IETF Datatracker, 20 min)
Recognize relay paths and Option 82 when client broadcasts cannot directly reach the server or select the expected pool.