Wiki DE Start in the browser

Wiki › Protocols

DHCPv6

IPv6 addresses from a server: solicit, advertise, request, reply – when to use DHCPv6 instead of SLAAC.

Layer
7 (Anwendung, über UDP 546/547)
Standard
RFC 9915, RFC 8106

SLAAC or DHCPv6?

IPv6 devices can form their address themselves (SLAAC). With DHCPv6 a server assigns the addresses instead. That is useful if you want to know exactly which device has which address. The router advertisement says which method applies: if the M flag (managed) is set, devices ask via DHCPv6.

Sequence

StepContent
Solicitclient looks for a server (multicast to all DHCP servers)
Advertiseserver offers an address
Requestclient chooses the offer
Replyserver confirms

The client identifies itself with a DUID (derived from the MAC in leyoNET). It still gets the gateway from the router advertisement, not via DHCPv6.

DNS server for IPv6

IPv6 devices learn the DNS server either via DHCPv6 or directly in the router advertisement (RDNSS option). In leyoNET it is entered at the router interface.

Prefix delegation

Via DHCPv6 a router can obtain not only addresses but a whole prefix (prefix delegation, IA_PD, RFC 9915). A home router, for example, gets a /56 from the provider and hands out /64 networks from it to its LANs itself, without NAT. That is the usual way IPv6 reaches customers today. The same applies to companies on a larger scale: a /48 from the provider, giving up to 65,536 subnets.

Practise

  • ★★★☆☆ Set up IPv6 · 2 goals · Worksheet (German)
  • ★★★☆☆ IPv6 BC 5: DHCPv6 and DNS · 6 goals · Worksheet (German)

In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.

What leyoNET simplifies

ProtocolLayerSimplification in the simulation
DHCPv67Solicit/advertise/request/reply with IA_NA, DUID-LL from the MAC; server in the router (M flag in the router advertisement), addresses from ::100; no relay, no prefix delegation

Standards

  • RFC 9915 – Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
  • RFC 8106 – IPv6 Router Advertisement Options for DNS Configuration

Read on

Found a mistake or have an idea? Source of this page on GitHub.