Dynamic Host Configuration Protocol
From WikiTech, the free technology encyclopedia
Protocol that gives devices network settings (1993)
4 sources from RFC Editor, Internet Engineering Task Force and Microsoft. Checked by ByteExplained editors on 4 December 2026. How we check facts
The Dynamic Host Configuration Protocol (DHCP) is a standard way for a computer joining a TCP/IP network to receive its IP address and other configuration details automatically from a server.[1][2]
History
DHCP was first published as RFC 1531 in October 1993, written by Ralph Droms of Bucknell University.[1] It was built on an older protocol, the Bootstrap Protocol (BOOTP), adding the automatic allocation of addresses that could be reused and extra configuration options; DHCP and BOOTP devices can work together.[1] A revised specification, RFC 2131, followed in March 1997, adding features such as vendor classes; it and its companion RFC 2132 are still cited as the defining standards.[2][3]
How it works
DHCP follows a client–server model. A device that needs an address broadcasts a DHCPDISCOVER message to find available servers; a server replies with a DHCPOFFER; the client then sends a DHCPREQUEST asking for the offered settings; and the server confirms with a DHCPACK.[2] Servers listen on UDP port 67 and clients on port 68.[2] Relay agents can pass messages between network segments, so one server can serve many subnets.[2]
Most addresses are handed out as a "lease", which the standard defines as the period over which an address is allocated to a client. The client can renew the lease or give the address back early, and addresses that are no longer used return to the server's pool.[2][3] RFC 2131 also allows permanent automatic allocation and manual allocation, where an administrator chooses the address and DHCP simply delivers it.[2] Besides the address, a server typically supplies settings such as the default gateway (router) and the Domain Name System servers to use.[3]
Microsoft's documentation notes that DHCP reduces configuration errors such as mistyped addresses and prevents conflicts in which two computers are given the same address at once.[3]
DHCPv6
A separate version, DHCPv6, configures devices on IPv6 networks. RFC 8415, published in November 2018, brought its earlier specifications together; it can assign addresses and prefixes or only pass on settings, and can work alongside IPv6's own automatic address configuration.[4] RFC 8415 has since been replaced by a newer revision, RFC 9915.[4]
See also
References
- ^ RFC 1531: Dynamic Host Configuration Protocol. RFC Editor. rfc-editor.org
- ^ RFC 2131: Dynamic Host Configuration Protocol. Internet Engineering Task Force. datatracker.ietf.org
- ^ What is Dynamic Host Configuration Protocol (DHCP) Server in Windows Server?. Microsoft. learn.microsoft.com
- ^ RFC 8415: Dynamic Host Configuration Protocol for IPv6 (DHCPv6). RFC Editor. rfc-editor.org




