01Chapter 1: What a host needs before it can talk on a networkBefore a device can send a single packet to another machine, it needs a small set of configuration values. DHCP exists to deliver those values automatically. This chapter defines them and shows how a host uses each one. It also lists the failures you see when one is wrong. Later chapters build on th5 min read
02Chapter 2: Why static configuration does not scaleThis chapter assumes you know what an IPv4 address, a subnet mask, a default gateway and a DNS server are, and that you have a rough picture of a LAN with a router. You do not need to know anything about DHCP yet. The goal here is to see exactly what goes wrong when every device is configured by han7 min read
03Chapter 3: DHCP at a glance: clients, servers and leasesThis chapter gives you the working model of DHCP: who the parties are, what they exchange, and what a lease is. It assumes you already 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 client8 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 a DNS server do, and what a broadcast is on a LAN. It also assumes you have read the previous chapter on why DHCP uses UDP ports 68 and 67 and broadcast. Here you follow the four-message exchange that gives a n7 min read
06Chapter 6: Leases: renewal at T1, rebinding at T2, and expiryThis chapter assumes you know IPv4 addresses and subnet masks, what a default gateway and a DNS server do, and the Discover, Offer, Request, Acknowledge (DORA) exchange from the previous chapter. It covers what a lease is, how the client keeps it alive with the T1 and T2 timers, and what happens whe9 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 (DORA) exchange from the earlier chapters. Here you will see how a DHCP message carries configuration beyond the IP address, and how to read and se5 min read
08Chapter 8: Scopes, exclusions and reservations on a serverThis chapter assumes you know how a client gets its address through Discover, Offer, Request and Acknowledge, and that you understand IPv4 subnets, masks, gateways and DNS servers. Here you will see how a DHCP server decides which addresses it may hand out and how it treats special devices.6 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 and a DNS server do, and the basic Discover, Offer, Request, Acknowledge (DORA) exchange. You also need to know what a lease is. Here you will see what a client does when DORA never completes, and how to read the r8 min read
10Chapter 10: Relay agents: one server for many subnetsThis chapter assumes you know how the Discover, Offer, Request, Acknowledge (DORA) exchange works. It also assumes you understand IPv4 subnets and masks, and that routers do not forward broadcasts by default. You should also know what a scope (an address pool for one subnet) is.6 min read
11Chapter 11: NAK, Decline, Release and InformThis chapter covers four DHCP messages that sit outside the normal Discover, Offer, Request, Acknowledge (DORA) exchange. Each one handles a situation DORA does not: a server refusing a request, a client refusing an address, a client giving an address back, and a client asking for settings only.6 min read
12Chapter 12: Inspecting and troubleshooting DHCP with common toolsThis chapter assumes you know IPv4 addresses and subnet masks, what a default gateway and a DNS server do, and the Discover, Offer, Request, Acknowledge (DORA) exchange. It also assumes you have met leases, relay agents and the 169.254.0.0/16 fallback in earlier chapters. Here you will use that know6 min read
13Chapter 13: Rogue servers, starvation and DHCP snoopingThis chapter assumes you know the Discover, Offer, Request, Acknowledge (DORA) exchange and the common options (router, DNS server, lease time). It also assumes you know what a VLAN and a switch port are. Here you will see how DHCP's lack of authentication is abused and which switch features limit t7 min read
14Chapter 14: A short look at IPv6: SLAAC and DHCPv6This chapter compares how IPv6 hosts get their addresses with the DHCPv4 process from the earlier chapters. It assumes you know the Discover, Offer, Request, Acknowledge exchange, lease timers, DHCP options, and the roles of a default gateway and a DNS server. It also assumes you can read an IPv6 ad6 min read