02Chapter 2: Why static configuration does not scaleThis chapter assumes you know IPv4 addresses and subnet masks, what a default gateway and a DNS server do, and what a LAN and a broadcast are. It explains why typing settings into each device stops working as a network grows. That problem is what DHCP solves.3 min read
03Chapter 3: DHCP at a glance: clients, servers and leasesThis chapter gives the working model of the Dynamic Host Configuration Protocol (DHCP). It assumes you know IPv4 addresses and subnet masks, what a default gateway and a DNS server do, and what a LAN, a router and a broadcast are. It also assumes you understand client-server communication at a high 3 min read
04Chapter 4: How a client talks before it has an address: UDP 68 to 67 and broadcastThis chapter assumes you know IPv4 addresses and subnet masks, what a broadcast is on a LAN, and the basics of client-server communication. It covers the transport problem DHCP has to solve: a client must send messages before it owns an IP address.3 min read
05Chapter 5: Discover, Offer, Request, Acknowledge step by stepThis chapter assumes you know IPv4 addresses and subnet masks, what a default gateway and DNS server do, and that DHCP clients talk over UDP ports 68 (client) and 67 (server) using broadcast. Here you follow the four-message exchange a client uses to get its first address.3 min read
06Chapter 6: Leases: renewal at T1, rebinding at T2, and expiryThis chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange, IPv4 addressing, and the difference between unicast and broadcast traffic. Here you will learn what happens after the server sends the Acknowledge message.3 min read
07Chapter 7: Options: mask, router, DNS, lease time and moreThis chapter assumes you know IPv4 addresses and subnet masks, what a default gateway and a DNS server do, and the Discover, Offer, Request, Acknowledge exchange from the previous chapter.2 min read
08Chapter 8: Scopes, exclusions and reservations on a serverThis chapter assumes you know IPv4 addressing and subnet masks, what a default gateway and DNS server do, and the Discover, Offer, Request, Acknowledge exchange. It shows how a DHCP server decides which addresses to hand out and which to keep back.3 min read
09Chapter 9: When no server answers: the 169.254.0.0/16 fallbackThis chapter assumes you know IPv4 addresses and subnet masks, what a default gateway does, and the Discover, Offer, Request, Acknowledge (DORA) exchange from the previous chapters.3 min read
10Chapter 10: Relay agents: one server for many subnetsThis chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange, that DHCP clients start with a broadcast, and that routers do not forward broadcasts. It also assumes you can read an IPv4 subnet and a scope definition.3 min read
11Chapter 11: NAK, Decline, Release and InformThis chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange and the lease lifecycle (T1 renewal, T2 rebinding, expiry). It covers four messages that fall outside the happy path: NAK, Decline, Release and Inform.3 min read
12Chapter 12: Inspecting and troubleshooting DHCP with common toolsThis chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange, lease timers, DHCP options, and what a relay agent does. It shows how to watch DHCP on the wire, force a new lease, and work out why a client has no address or the wrong one.3 min read
13Chapter 13: Rogue servers, starvation and DHCP snoopingThis chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange, how leases work, and what a switch does with broadcasts. DHCP has no built-in authentication. A client accepts the first Offer that suits it, and a server grants an address to any MAC address that asks. Attacker3 min read
14Chapter 14: A short look at IPv6: SLAAC and DHCPv6This chapter assumes you know the DHCPv4 exchange from the earlier chapters (Discover, Offer, Request, Acknowledge), what a lease is, and what a default gateway and DNS server do. It also assumes you know that an IPv6 address has a prefix and an interface ID.3 min read