Network Systems
100%

IPv6 SLAAC: Stateless Address Autoconfiguration

How IPv6 allows network devices to generate their own IP addresses without the need for a centralized DHCP server using ND Protocol.

Overview

Stateless Address Autoconfiguration (SLAAC) is a core feature of the IPv6 protocol. It allows host devices (like laptops, phones, or IoT sensors) to independently generate their own globally unique IPv6 addresses the moment they connect to a network, without relying on a DHCPv6 server.

The Problem

In IPv4, dynamic IP assignment requires a centralized DHCP server. If the DHCP server crashes or the network segment loses connectivity to it, new devices cannot get an IP address, rendering them unable to communicate. Furthermore, maintaining a DHCP server requires administrative overhead (managing pools, leases, and IP conflicts).

Solution and Configuration

SLAAC solves this by pushing the responsibility of address generation to the client device itself, relying on communication with the local router.

The Process:

  1. Router Solicitation (RS): When a device connects, it sends an ICMPv6 multicast message asking, "Are there any routers here?"
  2. Router Advertisement (RA): The router replies with its Network Prefix (e.g., the first 64 bits of the address: 2001:db8:1::/64).
  3. Generation: The client takes that 64-bit prefix and generates the remaining 64 bits (the Interface ID) itself.

Technical Details

Traditionally, the 64-bit Interface ID was generated using the EUI-64 method, which takes the device's permanent hardware MAC address and embeds it into the IPv6 address. However, this created massive privacy concerns because a user's MAC address could be tracked uniquely across different networks on the internet. Modern operating systems (Windows, macOS, iOS) now use Privacy Extensions (RFC 4941), which generate a completely random Interface ID that changes periodically to ensure anonymity. To ensure the randomly generated IP isn't already in use, the device performs Duplicate Address Detection (DAD) before officially assigning it to its network card.

Conclusion

SLAAC is brilliant for rapid, plug-and-play network deployments, especially in mobile and IoT ecosystems. However, because SLAAC initially didn't provide DNS server information (requiring stateless DHCPv6 as a supplement), newer standards (RFC 8106) allow routers to include DNS info directly in the RA message, making SLAAC a truly standalone solution.

Related Articles

View All