IPv6 SLAAC

IPv6 SLAAC is an essential mechanism for automatic IPv6 addressing and is frequently tested in the CCNA exam as well as applied in enterprise networks. By the end of this lesson, you will clearly understand each step of SLAAC and how routers enable hosts to configure themselves without DHCP.

  • IPv6 SLAAC (Stateless Address Autoconfiguration) is a method that allows hosts to automatically configure their IPv6 address without using a DHCPv6 server.

    In IPv6 networks, hosts can’t just pick any address at random; they need a valid Global Unicast Address (GUA) to communicate across the Internet.

    But how do they get that address?

    IPv6 SLAAC stateless vs stateful address assignment diagram

    Figure 1 - Dynamic GUA Assignment differents approaches

    There are two main approaches:

    • Stateful methods, where a DHCPv6 server assigns and tracks the addresses (similar to IPv4)

    • Stateless methods, where the host configures itself without needing any central server

    SLAAC which stands for Stateless Address Autoconfiguration is the most common stateless method.

    Defined in RFC 4862, it allows a host to automatically configure its Global Unicast IPv6 address without relying on DHCP.

    How does SLAAC work?

    All it needs is a router on the local network that can advertise a prefix. From there, the host can build its Global Unicast Address IPv6 address by:

    1. Generating a Link-Local Address using EUI-64 or a random Interface ID.

    2. Sending a Router Solicitation (RS) to request the network prefix.

    3. Receiving a Router Advertisement (RA) with the network prefix.

    4. Combining the Network Prefix with its Interface ID to form the Global Unicast Address (GUA).

    Diagram showing the 4 steps of how SLAAC works with IPv6

    Figure 2 - SLAAC Process Step by Step Simplified

    Now that you’ve seen the big picture, let’s explore each step in detail.

    Answer the question below

    Which method allows a host to configure an IPv6 address without DHCPv6?