ArticleslgStudy

science

DHCPv6

DHCPv6 is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DHCPv6 rather than just read about it. In short: 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.

DHCPv6 — main illustration
DHCPv6 — illustration

Key takeaways

  • DHCPv6 belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DHCPv6 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DHCPv6 from memory before moving on to harder problems.

Reference excerpt

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 than SLAAC's stateless approach.

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 (ff02::1:2) is never forwarded beyond the local link. Site-local multicast (ff05::1:3) 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 fe80::0011:22ff:fe33:5566 and the client's link-local address is fe80::aabb:ccff:fedd:eeff.

Client sends a solicit from [fe80::aabb:ccff:fedd:eeff]:546 to multicast address [ff02::1:2]:547. Server replies with an advertise from [fe80::0011:22ff:fe33:5566]:547 to [fe80::aabb:ccff:fedd:eeff]:546. Client replies with a request from [fe80::aabb:ccff:fedd:eeff]:546 to [ff02::1:2]:547. Server finishes with a reply from [fe80::0011:22ff:fe33:5566]:547 to [fe80::aabb:ccff:fedd:eeff]:546.

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.

msg-type: 8 bits Identifies the DHCP message type transaction-id: 24 bits Value to synchronize server responses to client messages. Random number generated by client. Options: Variable bits Options have up to three fields: Option-code (2 octet), Option-Length (2 octet), Option-Data (variable). Depending on Option-code value, the next two fields may be set. Option-Length indicates the total length of the option, and Option-Data contains data associated with the option, if applicable.

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:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with DHCPv6

Start with the simplest possible case. Write down what DHCPv6 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DHCPv6 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DHCPv6 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DHCPv6

In research
DHCPv6 appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DHCPv6 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DHCPv6 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Application layer protocols, IPv6, so understanding it makes those chapters shorter.
In everyday life
Look for DHCPv6 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DHCPv6” →

How to study DHCPv6 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DHCPv6 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DHCPv6 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DHCPv6 in simple terms?

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 Confi…

Why does DHCPv6 matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DHCPv6?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DHCPv6.

Tags

  • Application layer protocols
  • IPv6

Keep exploring