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
| Step | Content |
|---|---|
| Solicit | client looks for a server (multicast to all DHCP servers) |
| Advertise | server offers an address |
| Request | client chooses the offer |
| Reply | server 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
| Protocol | Layer | Simplification in the simulation |
|---|---|---|
| DHCPv6 | 7 | Solicit/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 |