What it is
DHCP (Dynamic Host Configuration Protocol) is a client server protocol that configures hosts on an IP network. Instead of manually setting an address on every device, a DHCP server manages a pool of addresses and options and hands them out as time bound leases.
Key points
- Uses a discover offer request acknowledge flow to assign addresses.
- Leases expire and must be renewed, which is why addresses can change over time.
- Relay agents allow DHCP to work across subnets without extending broadcasts.
Concrete example
You join a cafe WiFi. Your laptop broadcasts Discover, receives an Offer with an address and DNS, requests it, then gets an Ack. Seconds later you can browse the web, even though you never touched an IP setting.