Lesson 2 of 9 · 26m
Subnetting, SLAAC, and DHCPv6
Why IPv6 subnetting is mostly /64 thinking, when SLAAC is enough, when DHCPv6 is required, and what router advertisements really control.
IPv4 trained operators to conserve addresses. IPv6 trains you to conserve complexity. If you find yourself subnetting a LAN into /120s because it feels tidy, stop. You are optimizing the wrong resource and breaking assumptions baked into hosts.
/64 is the working atom
For ordinary host networks, use /64. Stateless address autoconfiguration depends on 64 bits of interface identifier. Some mechanisms can technically tolerate other sizes, but the ecosystem is full of quiet assumptions. A /64 is not wasteful; it is the unit of design.
VLAN 120 users 2001:db8:3f20:120::/64
VLAN 121 voice 2001:db8:3f20:121::/64
VLAN 220 servers 2001:db8:3f10:220::/64For router-to-router links, RFC 6164 recommends /127, with careful neighbor discovery filtering where appropriate. Loopbacks commonly use /128. Containers may receive longer delegated prefixes internally, but the boundary design should still be explicit.
SLAAC: the router supplies the network
With SLAAC, a router sends Router Advertisements and hosts construct addresses from the advertised prefix. A Linux router advertisement source can be as small as radvd:
interface eth0 {
AdvSendAdvert on;
AdvManagedFlag off;
AdvOtherConfigFlag on;
prefix 2001:db8:3f20:120::/64 {
AdvOnLink on;
AdvAutonomous on;
};
RDNSS 2001:db8:3f10:53::1 {};
};The flags matter. Managed means "use DHCPv6 for addresses." OtherConfig means "get DNS or other options from DHCPv6, but not your address." Autonomous in the prefix option means hosts may generate addresses themselves.
DHCPv6: control, inventory, and reservations
DHCPv6 is useful when you need leases, reservations, boot information, or deterministic host identity. Kea configuration looks conceptually familiar but not identical:
{
"subnet6": [{
"subnet": "2001:db8:3f10:220::/64",
"pools": [{"pool": "2001:db8:3f10:220::100-2001:db8:3f10:220::1ff"}],
"option-data": [{"name": "dns-servers", "data": "2001:db8:3f10:53::1"}]
}]
}DHCPv6 normally does not hand clients their default gateway. Router Advertisements still do that. This surprises nearly everyone during their first migration.
Choose per network role
SLAAC is excellent for user networks and simple server segments where hosts can self-number. DHCPv6 fits managed fleets, immutable infrastructure exceptions, and networks where audit inventory matters. Many enterprises run both: SLAAC for addresses, DHCPv6 for options. Whatever you choose, make the choice visible in the interface configuration and monitoring.
Field notes
- Android does not support DHCPv6. If a mobile user network requires DHCPv6-only addressing, Android devices will not get usable IPv6.
- Router Advertisement Guard on access switches is not optional in hostile or mixed-trust networks.
- Temporary privacy addresses mean one host can hold several valid addresses at once. Inventory by MAC or DHCPv6 identity, not by a single address.
- A missing RDNSS option is a classic "IPv6 connects but DNS does not" failure.
Was this lesson helpful?