Back to Glossary Index
IPv6 AutoconfigurationDomain 7.0

SLAAC Stateless Address Autoconfiguration

The brilliant, decentralized mechanism built natively into IPv6 that allows client devices (like laptops and smartphones) to automatically generate their own globally routable IP address and default gateway without requiring a central DHCP server.

The Discovery Phase

1. Router Solicitation (RS)

When an IPv6 client boots up, it sends an ICMPv6 Type 133 message to the all-routers multicast address (FF02::2). Essentially: "Are there any routers here? What subnet are we on?"

2. Router Advertisement (RA)

The local router responds with an ICMPv6 Type 134 message containing the network's 64-bit global prefix (e.g., 2001:db8:acad:1::/64) and tells the client to use the router's link-local address as its default gateway.

3. Interface ID Generation

The client takes the 64-bit prefix handed down by the router and mathematically combines it with a 64-bit Host ID that it invents itself. It usually creates this host ID either by using the EUI-64 format (embedding its own physical MAC address) or by using privacy extensions (generating a completely random hash to avoid tracking).

CCNA Exam Gotchas

[!]

DAD (Duplicate Address Detection)

Because there is no central DHCP server tracking who owns what IP, the client must ensure it didn't accidentally generate the exact same IP address as someone else. Before officially assigning the IP to its NIC, it sends an ICMPv6 Neighbor Solicitation out to the network. If no one replies, the IP is safe to use.

[!]

The DNS Blindspot

Historically, standard SLAAC cannot hand out DNS server IP addresses. It only gives the Prefix and Gateway. To solve this, network engineers deploy Stateless DHCPv6. The router handles the IP addressing via SLAAC, but sets the "O-flag" (Other Configuration) in its RA packet, telling the client to reach out to a DHCP server solely to grab its DNS configuration.