Use it to diagnose how a host learned its prefix, address, default router, DNS and lease identity.
IPv6 SLAAC / DHCPv6
IPv6 hosts combine Router Advertisements, SLAAC and optionally stateless or stateful DHCPv6 to obtain addressing and other parameters.
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.
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.
Context & applicabilityCommon mistakes · platform/version boundaries
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.
3. Verify DHCPv6 Solicit/Advertise/Request/Reply where used.
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.
Subtopics
Go one level deeper into this subject.
Hosts form addresses from an advertised prefix and interface identifier.
Subtopic RA M/O FlagsRouter Advertisement flags signal DHCPv6 expectations without supplying a default gateway.
Subtopic Stateless DHCPv6SLAAC supplies the address while DHCPv6 supplies other parameters.
Subtopic Stateful DHCPv6DHCPv6 leases addresses and options while RA still supplies router information.
Subtopic DUID / IAIDDHCPv6 identifies clients and interface associations independently of IPv4 client identifiers.
Subtopic DHCPv6 RelayRelay forwards client messages across routed boundaries with interface context.
Subtopic VerificationRA, address, lease, route, DNS and duplicate-address state are verified independently.
- 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>— RA settings, flagsshow ipv6 dhcp binding— stateful leasesshow 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 flag | O flag | A flag (prefix) | Result |
|---|---|---|---|
| 0 | 0 | 1 | SLAAC address; DNS from RDNSS in the RA (if sent) |
| 0 | 1 | 1 | SLAAC address; DNS and options from stateless DHCPv6 |
| 1 | – | 0 | Address 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)
| Step | Action |
|---|---|
| 1 | Form a link-local address (FE80:: + interface ID) when the interface comes up |
| 2 | Run DAD on it: NS from :: to the solicited-node address |
| 3 | Send an RS and receive an RA |
| 4 | For each prefix with the A flag set, form an address: prefix + interface ID |
| 5 | Run 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 flags | A flag on prefix | Hosts get addresses from | Other settings (DNS) from |
|---|---|---|---|
| M=0, O=0 | Set | SLAAC | RA (RDNSS option, RFC 8106) |
| M=0, O=1 | Set | SLAAC | Stateless DHCPv6 |
| M=1 | Clear | Stateful DHCPv6 | DHCPv6 |
| M=1 | Set | Both | DHCPv6 |
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.
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:
| Method | RA flags | Address from | DNS from |
|---|---|---|---|
| SLAAC only | A=1, M=0, O=0 | Host (EUI-64 or random) | RA RDNSS (RFC 8106) |
| SLAAC + stateless DHCPv6 | A=1, O=1 | Host | DHCPv6 |
| Stateful DHCPv6 | M=1 (A=0 or 1) | DHCPv6 server | DHCPv6 |
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.
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
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%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.
Quick lookup tables
IPv6 SLAAC / DHCPv6 evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show ipv6 interface <interface> | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | RS/RA → SLAAC and DAD → optional DHCPv6 exchange/relay → address/DNS/default route → application | application success |