ApiaryActive
Try: pause · settings · learn · wipe
← Community / Reading Room
D
computing · 2 min read

Dhcpv6

Dynamic Host Configuration Protocol for IPv6 (DHCPv6) is a stateful configuration protocol designed to automate the allocation of IPv6 addresses and…

Dynamic Host Configuration Protocol for IPv6 (DHCPv6) is a stateful configuration protocol designed to automate the allocation of IPv6 addresses and associated network parameters. Defined in RFC 8415 (which obsoletes earlier versions like RFC 3315), DHCPv6 operates in IPv6 networks to provide centralized, dynamic configuration similar to its IPv4 predecessor. It addresses the challenges of IPv6 address management while supporting additional features such as prefix delegation and enhanced scalability.

Operation

DHCPv6 employs a client-server architecture where clients request configuration information from servers. The protocol supports multiple modes of operation, including stateful address allocation, where servers assign IPv6 addresses and lease durations, and stateless configuration, which provides non-address parameters (e.g., DNS servers) without managing address assignments.

The core message types include:

  • Solicit: A client broadcasts to discover available DHCPv6 servers.
  • Advertise: Servers respond to Solicit messages, offering configuration options.
  • Request: Clients select an advertised server and request specific configuration parameters.
  • Reply: Servers confirm or adjust the requested configuration.
  • Renew/Rebind: Clients periodically extend lease durations or reacquire configurations.
  • Release/Decline: Clients relinquish addresses or reject incorrect assignments.
  • Reconfigure: Servers inform clients of configuration changes.

Clients maintain a status table tracking address lifetimes (preferred and valid) and initiate renewal processes before expiration. DHCPv6 uses UDP port 546 for clients and 547 for servers, leveraging multicasting and unicast for communication. Its design reduces broadcast usage compared to IPv4, aligning with IPv6's multicast efficiency.

Configuration Options

Beyond IPv6 addresses, DHCPv6 can distribute a wide range of network parameters. Key options include:

  • IA_NA (Identity Association for Non-temporary Addresses): Assigns individual IPv6 addresses to clients.
  • IA_PD (Identity Association for Prefix Delegation): Allocates prefixes to routers for subnet delegation, commonly used in ISP networks.
  • DNS Server and Domain Name: Specifies name servers and search domains.
  • NTP Server: Provides synchronization services.
  • SNTP Server: Offers time-stamping capabilities.

Clients can explicitly request specific options, and servers may include additional parameters based on policies. Clients also support vendor-specific options for custom configurations. This flexibility allows DHCPv6 to adapt to diverse network environments, from enterprise LANs to large-scale ISP deployments.

Comparison with SLAAC

Stateless Address Autoconfiguration for IPv6 (SLAAC) and DHCPv6 serve complementary roles. SLAAC, defined in RFC 4862, enables hosts to generate IPv6 addresses using Router Advertisements (RAs) without server interaction, offering simplicity and scalability. However, SLAAC lacks mechanisms for centralized control over address assignment and additional configurations like DNS settings.

DHCPv

Frequently asked
What is Dhcpv6 about?
Dynamic Host Configuration Protocol for IPv6 (DHCPv6) is a stateful configuration protocol designed to automate the allocation of IPv6 addresses and…
What should you know about operation?
DHCPv6 employs a client-server architecture where clients request configuration information from servers. The protocol supports multiple modes of operation, including stateful address allocation, where servers assign IPv6 addresses and lease durations, and stateless configuration, which provides non-address…
What should you know about configuration Options?
Beyond IPv6 addresses, DHCPv6 can distribute a wide range of network parameters. Key options include:
What should you know about comparison with SLAAC?
Stateless Address Autoconfiguration for IPv6 (SLAAC) and DHCPv6 serve complementary roles. SLAAC, defined in RFC 4862, enables hosts to generate IPv6 addresses using Router Advertisements (RAs) without server interaction, offering simplicity and scalability. However, SLAAC lacks mechanisms for centralized control…
References & sources
  1. Apiary Reading RoomOpen, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room