Use it when hosts should build their own IPv6 addresses from router advertisements, or when they get none.
SLAAC
Stateless Address Autoconfiguration (SLAAC) lets a host build its own IPv6 address from the /64 prefix in a Router Advertisement plus an interface ID, and use the advertising router as default gateway.
1. SLAAC: hosts build addresses from the RA prefix (/64) plus an interface ID (EUI-64 or random).
2. Requires /64.
3. DNS via RDNSS or stateless DHCPv6.
4. Privacy addresses rotate.
5. No central lease record.
RA prefix /64 → host interface ID → DAD → address
Context & applicabilityCommon mistakes · platform/version boundaries
- Prefix length other than /64 → SLAAC does not work.
- Hosts with privacy addresses changing often, confusing logs and ACLs.
- No RDNSS and no DHCPv6 → hosts without DNS servers.
- Router lifetime 0 by mistake → hosts have no default route.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
1. Capture RA prefix, A/M/O flags and lifetime.
2. Verify host address construction and DAD.
4. Check DNS and default route.
5. Confirm renewal and relay behavior.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- RA supplies prefix and default-router information
- M/O flags signal DHCPv6 expectations but do not themselves lease data
- Stateless DHCPv6 supplies options; stateful DHCPv6 can lease addresses
- DHCPv6 does not supply the default gateway
- DUID/IAID, relay context, lifetimes, privacy addresses and DAD affect observed state.
show ipv6 interface <interface>— prefix advertised- Client: ip -6 addr / ipconfig — autoconfigured address
ReferenceWhat it is1 section · depth on demand
How SLAAC builds an address
1. Host creates a link-local address (fe80::/64) and runs DAD.
2. Receives an RA with a /64 prefix and the A flag.
3. Creates an interface ID (random/stable privacy addresses on modern OSes, EUI-64 on some devices) and runs DAD.
4. Uses the RA source as default gateway.
The prefix must be /64. Check with ip -6 addr, ipconfig, and show ipv6 interface on the router (prefix advertised, nd prefix options).
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to diagnose how a host learned its prefix, address, default router, DNS and lease identity.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
SLAAC (Stateless Address Autoconfiguration) lets a host build its own IPv6 address: it receives a Router Advertisement with a /64 prefix and the A flag set, creates an interface ID (random/stable-privacy or EUI-64), runs Duplicate Address Detection and uses the router as default gateway. No server keeps a lease.
In depth
Lifetimes control how long an address is used
interface Vlan10
ipv6 address 2001:db8:10::1/64
ipv6 nd prefix 2001:db8:10::/64 86400 14400
ipv6 nd ra interval 30
| Lifetime | Meaning on the host |
|---|---|
| Valid (86400 s) | Address may be used at all |
| Preferred (14400 s) | Address may be used for new connections |
| Preferred expired, valid not | Address is "deprecated": existing sessions continue, new ones use another address |
Renumbering works by advertising the old prefix with preferred lifetime 0 and the new prefix normally.
Protection against lifetime attacks
RFC 4862 limits how far an unauthenticated RA can shorten the valid lifetime of an existing address: values below two hours are not accepted as-is, so a single spoofed RA cannot remove an address instantly. RA Guard on access ports is still the real protection against rogue RAs.
Duplicate Address Detection
Before using an address the host sends a Neighbor Solicitation from :: to the solicited-node multicast group. Any answer means duplicate; the address stays tentative/duplicate and is not used. Hosts with many SLAAC addresses (privacy extensions) perform DAD for each one.
Verify on hosts and routers
| System | Command | Look for |
|---|---|---|
| Linux | ip -6 addr show dev eth0 | scope global dynamic mngtmpaddr and lifetimes |
| Windows | netsh interface ipv6 show addresses | Type Public / Temporary, lifetimes |
| IOS router | show ipv6 interface Vlan10 | Advertised prefix, ND advertised reachable time, RA interval |
| IOS as client | ipv6 address autoconfig + show ipv6 interface brief | SLAAC-built address |
Prerequisites
The prefix must be /64 with the A flag set, RAs must reach the host (multicast not filtered), and the host must accept RAs (net.ipv6.conf.*.accept_ra on Linux routers/hosts with forwarding enabled).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → IPv6 → IPv6 SLAAC / DHCPv6 → SLAAC. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%