DHCPv6
| Communication protocol | |
| Abbreviation | DHCPv6 |
|---|---|
| Purpose | Provide IPv6 addresses and additional network configuration parameters to clients in an IPv6 network. |
| Developer(s) | Michael Carney Charles E. Perkins Bernie Volz Ted Lemon Jim Bound |
| Introduction | June 2003 |
| Based on | Dynamic Host Configuration Protocol for IPv4 |
| OSI layer | Layer 7 Application |
| Port(s) | UDP port 546, for Clients. UDP port 547, for Servers and relay agents. |
| RFC(s) | 9915, 8415, 3319, 3646, 4704, 5007, 6355, 6939, 7653 |
| Internet protocol suite |
|---|
| Application layer |
| Transport layer |
| Internet layer |
| Link layer |
The Dynamic Host Configuration Protocol version 6 (DHCPv6) is a network protocol for configuring Internet Protocol version 6 (IPv6) hosts with IP addresses, IP prefixes, and other configuration data required to operate in an IPv6 network. It is not just the IPv6 equivalent of the Dynamic Host Configuration Protocol for IPv4.
IPv6 hosts may automatically generate IP addresses internally using stateless address autoconfiguration (SLAAC), or they may be assigned configuration data with DHCPv6, or both.
DHCPv6 and SLAAC are complementary services. Unlike the Neighbor Discovery Protocol (NDP) used by SLAAC, DHCPv6 can not only assign single unicast addresses, but also entire prefixes in prefix delegation. For example, an ISP's router can provide a prefix to a customer's router via DHCPv6 so that the customer's router can assign addresses to the customer's many devices via either DHCPv6 or SLAAC. This allows routers for residential networks to be configured with no operator intervention.
DHCPv6 also allows the distribution of information other than what SLAAC/NDP provides on a given network: this works even without DHCPv6 managing the distribution of network addresses. The standard method for a SLAAC/NDP network to hand out Domain Name System (DNS) server settings is via setting a flag in the Router Advertisement (RA) message telling the clients to ask for such settings over DHCPv6, although this specific use case is being replaced via a nonstandard extension of the RA message. Still, there remains a plethora of DHCPv6 options for providing additional information not handled by SLAAC/NDP, much like the wide range of information conveyed by legacy DHCP options.
Finally, DHCPv6 also offers a stateful approach, which provides more control over SLAAC's stateless approach.