MarketDHCPv6
Company Profile

DHCPv6

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.

Operation
Multicast addresses in DHCPv6 DHCPv6 uses IPv6 multicast addresses to enable communication between clients, relay agents, and servers when unicast addresses are not yet known. RFC 9915 defines two well-known multicast groups for this purpose. Defined multicast addresses All DHCPv6 servers and relay agents must join the appropriate multicast groups on relevant interfaces. Notes • Link-local multicast traffic () is never forwarded beyond the local link. • Site-local multicast () requires the relay agent to have an address with sufficient scope to reach servers within the site. • Multicast support is mandatory for correct DHCPv6 operation. Port numbers Clients listen for DHCP messages on UDP port 546. Servers and relay agents listen for DHCP messages on UDP port 547. Identifiers DHCP unique identifier The DHCP unique identifier (DUID) is used by a client to get an IP address from a DHCPv6 server. It has a 2-byte DUID type field, and a variable-length identifier field up to 128 bytes. Its actual length depends on its type. The server compares the DUID with its database and delivers configuration data (address, lease times, DNS servers, etc.) to the client. Four DUID types are identified: RFC 6939: Client Link-Layer Address Option Due to the fact that it is difficult to manage multiple identifiers in a dual-stack environment, and the fact that DUIDs are simply not optimal for some situations, RFC 6939 was released, giving a way to identify a host based on its MAC address. It defines a way for a DHCPv6 relay to pass that information to a DHCPv6 server. Example In this example, without rapid-commit present, the server's link-local address is and the client's link-local address is . • Client sends a solicit from []:546 to multicast address []:547. • Server replies with an advertise from []:547 to []:546. • Client replies with a request from []:546 to []:547. • Server finishes with a reply from []:547 to []:546. == Client/Server Message Formats ==
Client/Server Message Formats
DHCP messages utilize a fixed-format header followed by a variable-format options area. Message Structure Overview All values in the message header and options are encoded in network byte order. ; ; ; Message Types This table lists the DHCPv6 message types. Option Codes This table lists some of DHCPv6 Option codes. Full list can be for her IANA DHCPv6 Option Codes DHCP Unique Identifier (DUID) option All devices participating in a DHCPv6 exchange, whether acting as a client or a server, must possess a single DHCP Unique Identifier (DUID) to establish a persistent identity within the network. This identifier is carried in the OPTION_CLIENTID (1) and OPTION_SERVERID (2) fields to ensure that transactions remain consistent even if hardware interfaces are swapped or addresses are reassigned. The DUID is designed to be permanent across reboots and reconfigurations, acting as the definitive anchor for the server’s binding database and the client’s server-selection logic. DUID-LLT (Link-Layer Address Plus Time) DUID-LLT (Type 1) consists of: • DUID type (1) • Hardware type (IANA-assigned) • Time value (seconds since 00:00 UTC, 1 January 2000, modulo 2³²) • link-layer address The time component reduces the likelihood of collisions if the same link-layer address is reused on another device. Devices using DUID-LLT must store the generated identifier in stable, non-volatile storage and continue using it even if the original network interface is removed. This type is recommended for general-purpose computing devices such as desktops, laptops, and printers, that provide writable persistent storage. DUID-EN (Enterprise Number) DUID-EN (Type 2) is assigned by the device vendor and consists of: • DUID type (2) • Vendor’s IANA-assigned Private Enterprise Number • Vendor-defined unique identifier The identifier must be unique per device and stored in non-volatile storage. This type is commonly assigned during manufacturing or at first boot in virtualized environments. DUID-LL (Link-Layer Address) DUID-LL (Type 3) consists of: • DUID type (3) • Hardware type • link-layer address Unlike DUID-LLT, no time value is included. This type is intended for devices with a permanently attached network interface and no writable persistent storage. It should not be used if the permanence of the interface cannot be guaranteed. DUID-UUID (Universally Unique Identifier) DUID-UUID (Type 4) uses a 128-bit UUID as its identifier. DUID-UUID consists of: • DUID type (4) • Universally Unique Identifier Its usage and UUID selection rules are defined in RFC 6355. This type is suitable for devices that already store a UUID in firmware or platform configuration. Option Request Option (ORO) The Option Request Option (ORO), identified by OPTION_ORO (6), is the mechanism used by a DHCPv6 client to inform the server which configuration parameters it is interested in receiving. Rather than the server blindly pushing all available data, the client provides a list of option codes within the ORO to tailor the response to its specific needs. The Option Request Option is defined by IANA DHCPv6 Option Codes Client Responsibility: The client MUST include an ORO in messages like Solicit, Request, Renew, and Rebind if it requires specific information (such as DNS recursive name servers or domain search lists). Server Responsibility: The server uses the ORO as a guide. It should include the requested options in its response, provided those options are configured and appropriate for the client's link. Common DHCPv6 Option Request Codes In a standard network deployment, a client typically includes the following option codes in its OPTION_ORO (6) to ensure a functional IPv6 environment: == IETF standards ==
IETF standards
• , "Dynamic Host Configuration Protocol for IPv6 (DHCPv6)" - Obsoletes RFC 3315, RFC 3633, RFC 3736, RFC 4242, RFC 7083, RFC 7283, RFC 7550. • , "Dynamic Host Configuration Protocol (DHCPv6) Options for Session Initiation Protocol (SIP) Servers" • , "DNS Configuration options for Dynamic Host Configuration Protocol for IPv6 (DHCPv6)" • , "The Dynamic Host Configuration Protocol for IPv6 (DHCPv6) Client Fully Qualified Domain Name (FQDN) Option" • , "DHCPv6 Leasequery" support • , "Lightweight DHCPv6 Relay Agent" (LDRA) - Updates RFC 3315, Errata • , "Definition of the UUID-Based DHCPv6 Unique Identifier (DUID-UUID)" • , "Client Link-Layer Address Option in DHCPv6" • , "DHCPv6 Active Leasequery" == See also ==
tickerdossier.comtickerdossier.substack.com