Hands-On Lab: IPv6 Address Autoconfiguration (SLAAC)

This hands-on lab demonstrates how a router can automatically generate its own IPv6 global unicast address using stateless address autoconfiguration, based on a prefix advertised by a neighboring router, eliminating the need to manually type every address.

SLAACIPv6 Router AdvertisementEUI-64

~3 min read · Updated Sep 12, 2026

Lab Objective

Configure one router to advertise an IPv6 prefix, then configure a second router to automatically generate its own global unicast address from that prefix using SLAAC, and verify the resulting address.

Lab Purpose

Manually typing a full IPv6 address on every device does not scale any better than manually configuring IPv4, discussed in an earlier lab. SLAAC allows a device to construct its own address automatically from network-provided information, a mechanism engineers must understand both to configure and to explain unexpected addresses appearing on client devices.

Lab Topology

Two routers connected via a GigabitEthernet link:

R1 (advertises prefix) ---- Gi0/0 ---- Gi0/0 ---- R2 (autoconfigures)

R1's Gi0/0: 2001:DB8:B:1::1/64 (manually configured)
R2's Gi0/0: address to be generated automatically

Task 1: Configure R1 with a Manual Address

Enable IPv6 routing on R1 and manually assign 2001:DB8:B:1::1/64 to its Gi0/0 interface, as covered in the previous IPv6 addressing lab.

Task 2: Configure R2 to Use SLAAC

Enable IPv6 routing on R2 and configure its Gi0/0 interface to automatically generate its own address based on router advertisements received from R1, rather than typing a specific address.

Task 3: Verify the Autoconfigured Address

Display R2's Gi0/0 interface and identify the automatically generated global unicast address, noting how it relates to the prefix advertised by R1 and R2's own interface identifier.

Task 4: Verify Connectivity

Confirm R2 can ping R1 using its newly autoconfigured address.

Solution and Verification

R1(config)# ipv6 unicast-routing
R1(config)# interface gigabitethernet0/0
R1(config-if)# ipv6 address 2001:DB8:B:1::1/64
R1(config-if)# no shutdown

R2(config)# ipv6 unicast-routing
R2(config)# interface gigabitethernet0/0
R2(config-if)# ipv6 address autoconfig
R2(config-if)# no shutdown

R2# show ipv6 interface gigabitethernet0/0

GigabitEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::250:56FF:FECC:5566
  Global unicast address(es):
    2001:DB8:B:1:250:56FF:FECC:5566, subnet is 2001:DB8:B:1::/64 [AUT]

-- The prefix 2001:DB8:B:1::/64 came from R1's
-- router advertisement, while the host portion
-- (250:56FF:FECC:5566) was derived from R2's
-- own interface MAC address using the EUI-64
-- process -- the [AUT] tag confirms this
-- address was autoconfigured rather than
-- manually entered

R2# ping 2001:DB8:B:1::1

!!!!!
Success rate is 100 percent (5/5)

Key Takeaway

SLAAC combines a network-supplied prefix (learned from a router advertisement) with a device-generated interface identifier to build a complete global unicast address automatically. The [AUT] flag in show ipv6 interface output is the definitive way to confirm whether an address was learned this way versus manually configured.

Written & researched by Dr. Shahin Siami

Related Articles

Hands-On Lab: Verifying IP Parameters on macOS (GUI)

This hands-on lab covers checking a Mac's current IP configuration using the System Settings network panel, viewing detailed TCP/IP information, and renewing a DHCP lease directly from the graphical interface.

Continue

Hands-On Lab: Verifying IP Parameters on Linux (GUI and CLI)

This hands-on lab covers checking a Linux machine's current IP configuration using both the GUI network settings panel and command-line tools, and demonstrates renewing a DHCP lease using standard Linux networking utilities.

Continue

Hands-On Lab: Verifying IP Parameters on Windows (GUI and CLI)

This hands-on lab covers checking a Windows PC's current IP configuration using both the graphical Network Connections interface and the command-line ipconfig utility, including releasing and renewing a DHCP-assigned address.

Continue

Hands-On Lab: Power over Ethernet (PoE) Basics

This hands-on lab covers verifying PoE capability on a switch port, checking how much power is being drawn by a connected device such as an IP phone or access point, and configuring power priority to protect critical devices during a power budget shortage.

Continue

Hands-On Lab: Configuring GRE Point-to-Point Tunnels

This hands-on lab configures a GRE tunnel between two routers across an intermediate transit network, allowing routing protocols and multicast traffic to pass between sites even when the underlying transport network would not normally support them directly.

Continue

Hands-On Lab: Configuring eBGP Between Two Autonomous Systems

This hands-on lab configures a basic eBGP peering session between two routers in different autonomous systems, advertises a network into BGP, and verifies the resulting route appears correctly in the neighboring router's routing table.

Continue