Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

IPv6 SLAAC / DHCPv6

Direct answer

IPv6 hosts combine Router Advertisements, SLAAC and optionally stateless or stateful DHCPv6 to obtain addressing and other parameters.

When to use this

Use it to diagnose how a host learned its prefix, address, default router, DNS and lease identity.

First 30 seconds

1. IPv6 hosts get addresses via SLAAC, stateless DHCPv6 or stateful DHCPv6.

2. RA M and O flags tell hosts which to use.

3. Default gateway always comes from RAs.

4. DHCPv6 does not provide a default route.

5. Verify RA content first.

Operational verification

RA (prefix, flags) → SLAAC and/or DHCPv6 → address + DNS → gateway from RA

Evidence · next step

1. Capture RA prefix, A/M/O flags and lifetime.
2. Verify host address construction and DAD.
3. Verify DHCPv6 Solicit/Advertise/Request/Reply where used.
4. Check DNS and default route.
5. Confirm renewal and relay behavior.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse it to diagnose how a host learned its prefix, address, default router, DNS and lease identity.
What next?3 suggested next steps
Child topics (this level)7
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

3. Verify DHCPv6 Solicit/Advertise/Request/Reply where used.

4. Check DNS and default route.

5. Confirm renewal and relay behavior.

Evidence references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • 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.
Key checks
  • show ipv6 interface <interface> — RA settings, flags
  • show ipv6 dhcp binding — stateful leases
  • show ipv6 dhcp pool — pool config
ReferenceWhat it is1 section · depth on demand

Which method a host uses

The Router Advertisement flags tell the host what to do:

M flagO flagA flag (prefix)Result
001SLAAC address; DNS from RDNSS in the RA (if sent)
011SLAAC address; DNS and options from stateless DHCPv6
1–0Address from stateful DHCPv6

The default gateway always comes from the RA source (link-local) address, never from DHCPv6. Android does not support stateful DHCPv6, so include RDNSS or use SLAAC where Android clients exist.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

SLAAC and DHCPv6: two ways for hosts to get addresses

IPv6 hosts can configure addresses themselves with stateless address autoconfiguration (SLAAC, RFC 4862), get them from a DHCPv6 server (RFC 8415), or both. The router's RA tells hosts what to do.

SLAAC steps (RFC 4862)

StepAction
1Form a link-local address (FE80:: + interface ID) when the interface comes up
2Run DAD on it: NS from :: to the solicited-node address
3Send an RS and receive an RA
4For each prefix with the A flag set, form an address: prefix + interface ID
5Run DAD on each new address before using it

RFC 4862 ignores a prefix if the A flag is clear, if it's link-local, or if its preferred lifetime exceeds its valid lifetime. Prefix length plus interface ID length must be 128, so with 64-bit interface IDs, SLAAC needs a /64.

Choosing a model

RA flagsA flag on prefixHosts get addresses fromOther settings (DNS) from
M=0, O=0SetSLAACRA (RDNSS option, RFC 8106)
M=0, O=1SetSLAACStateless DHCPv6
M=1ClearStateful DHCPv6DHCPv6
M=1SetBothDHCPv6
R1(config)# ipv6 dhcp pool STATELESS
R1(config-dhcpv6)# dns-server 2001:db8:50::53
R1(config-dhcpv6)# domain-name corp.example.com
R1(config)# interface Vlan20
R1(config-if)# ipv6 address 2001:db8:20::1/64
R1(config-if)# ipv6 nd other-config-flag
R1(config-if)# ipv6 dhcp server STATELESS
host$ ip -6 addr show dev eth0 | grep inet6
    inet6 2001:db8:20:0:9a1c:5e2:47b0:11d3/64 scope global temporary dynamic
    inet6 2001:db8:20:0:5054:ff:fe1a:2b3c/64 scope global dynamic mngtmpaddr
    inet6 fe80::5054:ff:fe1a:2b3c/64 scope link

Platform behaviour

Android doesn't support stateful DHCPv6 address assignment. A network that relies only on M=1 with the A flag cleared leaves Android devices without global addresses. SLAAC with RDNSS or stateless DHCPv6 works on all common operating systems.

Address states (RFC 4862)

Addresses are tentative during DAD, then preferred. When the preferred lifetime expires they become deprecated (still valid for existing connections), and when the valid lifetime expires they're removed.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

IPv6 hosts get their configuration from a combination of Router Advertisements and, optionally, DHCPv6. The router's RA always supplies the default gateway; flags in the RA tell hosts whether to build their own address from the advertised prefix (SLAAC) and whether to ask a DHCPv6 server for addresses or other settings. The right combination depends on the client fleet and on how much address tracking the organisation needs. The table summarises the three common models and what each provides.

IPv6 host address assignment options:

MethodRA flagsAddress fromDNS from
SLAAC onlyA=1, M=0, O=0Host (EUI-64 or random)RA RDNSS (RFC 8106)
SLAAC + stateless DHCPv6A=1, O=1HostDHCPv6
Stateful DHCPv6M=1 (A=0 or 1)DHCPv6 serverDHCPv6

Android does not support stateful DHCPv6 — for mixed client fleets SLAAC with RDNSS is the safe common denominator. The default gateway always comes from RAs, never from DHCPv6.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration example (Cisco IOS XE)

ipv6 dhcp pool STATELESS
 dns-server 2001:db8:53::53
 domain-name example.com
interface Vlan10
 ipv6 address 2001:db8:10::1/64
 ipv6 nd other-config-flag
 ipv6 dhcp server STATELESS

Documented example, not captured output. Verify on the client with ipconfig /all or ip -6 addr and on the router with show ipv6 interface vlan 10 and show ipv6 dhcp binding (stateful).

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 8200

Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → IPv6 → IPv6 SLAAC / DHCPv6. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
SLAACDHCPv6 stateful statelessRA M O flags
Embedded reference data

Quick lookup tables

IPv6 SLAAC / DHCPv6 evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show ipv6 interface <interface>remote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?RS/RA → SLAAC and DAD → optional DHCPv6 exchange/relay → address/DNS/default route → applicationapplication success
Confirmation

Confirm action

Continue?