Skip to content

Lesson 4 of 9 · 28m

Router Advertisements, SLAAC, and DHCPv6

Learn how hosts actually receive IPv6 configuration, which RA flags control behavior, and why rogue advertisements are a first-class operational risk.

IPv6 host configuration is where theory meets operational reality. A router does not hand out a single lease the way DHCPv4 does. It announces prefixes, lifetime, flags, and sometimes DNS information, while hosts decide how to form addresses. DHCPv6 may participate, but it is not a simple replacement. If you misunderstand this layer, every later connectivity symptom looks random.

SLAAC is autonomous by design

With Stateless Address Autoconfiguration, a router advertises a /64 prefix and hosts combine it with locally generated interface identifiers:

router advertisement: prefix 2001:db8:1112:4001::/64
host address:          2001:db8:1112:4001:8caa:21ff:fe44:9c10

No lease table is required. This is robust and simple, but it means the router cannot centrally enforce exactly which host gets which address. Privacy extensions also generate temporary addresses that rotate over time.

Learn the RA flags that matter

Router advertisements carry operational instructions:

M flag  managed: use DHCPv6 for addresses
O flag  other: use DHCPv6 for non-address information
A flag  autonomous: hosts may use SLAAC for this prefix
L flag  on-link: destinations in this prefix are directly reachable

A common mixed mode is SLAAC for addresses plus DHCPv6 for DNS or other options. In radvd-style configuration that can look like:

interface eth0 {
    AdvSendAdvert on;
    AdvManagedFlag off;
    AdvOtherConfigFlag on;
    prefix 2001:db8:1112:4001::/64 {
        AdvOnLink on;
        AdvAutonomous on;
        AdvValidLifetime 86400;
        AdvPreferredLifetime 14400;
    };
    RDNSS 2001:db8:1110:10::53 {
        AdvRDNSSLifetime 3600;
    };
};

Exact daemons differ, but the semantic question is always the same: are you telling hosts to self-configure, request stateful configuration, or both?

DHCPv6 has different operational facts

DHCPv6 uses UDP ports 546 and 547, usually with multicast ff02::1:2 for relays and servers. It does not carry the default gateway. Routing still comes from router advertisements. That surprises operators migrating IPv4 assumptions directly.

A relay configuration needs the server address and client-facing interface behavior correct, or hosts will see RAs but fail to acquire leases:

client -> multicast ff02::1:2 -> relay -> DHCPv6 server

Rogue RAs are a security problem

Any device on a local segment can advertise itself as a router. A rogue RA can hand out bad prefixes, bad DNS resolvers, or a malicious default route. Mitigations include RA Guard on access switches, strict control of which ports may send advertisements, monitoring unexpected source addresses, and treating unmanaged IoT networks as hostile until proven otherwise.

Field notes

  • If hosts have IPv6 addresses you did not plan, look for router advertisements first.
  • A host can have valid SLAAC addresses and no usable DNS; address presence is not proof of application readiness.
  • Preferred lifetime controls source selection before valid lifetime expires; use deprecation instead of abrupt withdrawal when renumbering.
  • DHCPv6 lease inspection alone will never explain SLAAC-only clients.

Was this lesson helpful?

Sign in to rate