DHCP
Also called: Dynamic Host Configuration Protocol, DHCPv4, address lease
Dynamic Host Configuration Protocol helps a host obtain network configuration. In DHCP for IPv4, a server can lease an address and supply settings such as a subnet mask, router, and DNS servers. A lease gives the client permission to use an address for an agreed period, rather than permanently assigning it.
A typical new-client exchange is Discover, Offer, Request, Acknowledge. For example, a laptop may accept a lease for 10.0.0.20 and later renew it before expiry. This four-message sketch describes a common initial allocation, not every DHCP exchange. DHCPv6 has a separate message design, and IPv6 also supports other configuration mechanisms.
- Read first
- IP address and subnet
- Related
- IP address and subnet, DNS, UDP
- Further reading
- IETF RFC 2131 — Dynamic Host Configuration Protocol