Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DHCPv6, SLAAC & Router Advertisement

Direct answer

IPv6 hosts learn on-link prefixes and default routers from Router Advertisements. Addresses may be formed with SLAAC and/or assigned by DHCPv6 depending on RA flags and platform behavior.

When to use this

Use it when IPv6 hosts have addresses but no default route/DNS, or when managed/other-config behavior is unclear.

First 30 seconds

1. ip -6 address show dev eth0

2. ip -6 route show dev eth0

3. ip -6 neigh show dev eth0

4. resolvectl status eth0

Operational verification

accepted RA/host policy → router and PIO flags/lifetimes → SLAAC/DAD or DHCPv6 → default/on-link routes → DNS source → named application

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
Scope / prerequisiteUse it when IPv6 hosts have addresses but no default route/DNS, or when managed/other-config behavior is unclear.
What next?3 suggested next steps
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.

2 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 IPv6 host checks: address, route and resolver independently Verify boundary

For a bounded reference host, record exact OS, network manager and RA policy before predicting behavior. Linux examples assume iproute2 and systemd-resolved; they are not commands for every Linux installation:

ip -6 address show dev eth0
ip -6 route show dev eth0
ip -6 neigh show dev eth0
resolvectl status eth0

Inspect tentative/duplicate/deprecated address state, prefix lifetimes, default route via the expected link-local router, neighbor state and effective resolver source. Observe RA/RS and, where used, DHCPv6 exchanges using a separately approved capture; starting a capture or solicitation is an operational action, not an existing-state read.

Verify one remote IPv6 connection by numeric address, then a DNS query to the selected resolver and the original named application flow. Numeric connectivity is not DNS evidence; DNS answers alone do not show the IPv6 path. Do not publish host identifiers or captured private configuration as example Evidence.

Step 2 RA negative tests: withdraw default-router role independently Narrow the fault

In an isolated one-router/one-host lab, keep the illustrative PIO unchanged but advertise router lifetime zero. Expect that router to cease being a default-router candidate while prefix/address information can remain valid. This does not promise removal of a separate static/default route or another router's route. Inspect actual host state and the relevant lifetimes rather than releasing every address.

Restore the exact prior RA/router lifetime and verify default route, address usability and original traffic. A separate experiment can change preferred lifetime to zero while valid lifetime remains positive: existing address deprecation is not identical to immediate invalidation. Do not assume reducing an advertised valid lifetime instantly deletes every address; SLAAC processing includes protections and host-specific behavior.

Preserve the original RA, DHCPv6, DNS and host-policy settings. Do not send rogue advertisements or change production host lifetimes to test this documentation. DNS option semantics: RFC 8106. Examples are authored and not executed.

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

RA router lifetime, PIO L/A, address preferred/valid lifetimes and DNS lifetimes are separate. DHCPv6 does not normally supply the default router. M/O flags do not force identical behavior on all hosts.

Key checks

Record OS/network-manager RA policy. Inspect an annotated RA, then address/DAD/lifetimes, on-link/default route, neighbor and resolver source separately. Verify numeric IPv6 connectivity, resolver query and original named service. Use only an isolated lifetime-zero test.

ReferenceWhat it is1 section · depth on demand

RA, SLAAC and DHCPv6 own different host state

Scope: an ordinary Ethernet IPv6 host that accepts Router Advertisements; host policy, security controls and OS implementation must be recorded. RA can supply default-router and on-link information; SLAAC can form addresses from suitable autonomous prefixes, and DHCPv6 can supply supported address/other configuration. Do not treat M/O flags as universal commands forcing every OS to use DHCPv6.

Router lifetime governs the advertising router's default-router role. PIO L describes on-link prefix information; PIO A enables autonomous address formation subject to SLAAC rules. These are independent decisions. An address, an on-link route, a default router and DNS resolver state must be observed separately.

References: Neighbor Discovery, RFC 4861, SLAAC, RFC 4862.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

An IPv6 host needs three things: an address, a default router and a DNS server. Unlike IPv4, they do not all come from one place. The default router always comes from Router Advertisements; the address may come from SLAAC or DHCPv6; DNS from either. A host that has an address but no default route, or connectivity but no name resolution, is the usual sign that one of these sources is missing or that its flags point the host the wrong way.

ReferenceHow it works1 section · depth on demand

Annotated RA: one address is not complete configuration

Illustrative RA, not a packet capture:

FieldExampleInterpretation
Sourcefe80::1, Hop Limit 255Link-local router advertisement; validate on-link receipt and expected interface/router
Router lifetime1800 secondsThis router can supply a default-router entry for that lifetime
M / O0 / 1No managed-address indication; other configuration signaled, subject to host support/policy
PIO prefix2001:db8:20::/64Prefix considered for the following independent flags
PIO L / A1 / 1On-link information and autonomous address formation enabled
Valid / preferred lifetime7200 / 3600 secondsAddress validity and preferred-use lifetime are separate
RDNSS2001:db8:53::53, lifetime 1200Supported hosts may learn a DNS resolver with its own lifetime

DNSSL search domains, if supplied, also have lifetime/support considerations. DNS can come from RA, DHCPv6 or static policy; record the effective source rather than guessing from O=1. This example assumes a suitable /64 SLAAC host with no competing router/prefix/DNS source.

ReferenceImportant terms & boundaries4 sections · depth on demand

Important limits

DHCPv6 does not normally provide the IPv6 default gateway; Router Advertisements do.

Primary failure points: RA filtering, wrong flags/lifetimes, missing DHCPv6 relay/server, DAD, DNS option support.

Platform notes: Windows / Linux / network infrastructure

In depth

How SLAAC, RA and DHCPv6 fit together

An IPv6 host builds its configuration from several sources, and RFC 4862 defines the SLAAC part. The host first forms a link-local address from FE80::/10 and an interface identifier, then verifies it with Duplicate Address Detection. Next it solicits Router Advertisements. For each Prefix Information option with the autonomous (A) flag set, it combines the prefix with an interface identifier into a global address, which also goes through DAD. RFC 4861 adds the M flag (addresses via DHCPv6) and the O flag (other settings, such as DNS, via DHCPv6) in the RA.

Who provides what

ItemSLAAC onlySLAAC + stateless DHCPv6Stateful DHCPv6
Default gatewayRA (router lifetime > 0)RARA (DHCPv6 never provides it)
AddressFrom RA prefixes (A=1)From RA prefixesFrom DHCPv6 (IA_NA)
DNS serversRA option (RDNSS), if supportedDHCPv6 Information-requestDHCPv6
RA flagsM=0, O=0M=0, O=1M=1, A=0 for the prefix

Address lifetimes (RFC 4862)

StateBehaviour
PreferredUsed normally
Deprecated (preferred lifetime expired)Kept for existing sessions; not used for new ones if a better address exists
Invalid (valid lifetime expired)Removed; not used at all

To prevent denial-of-service attacks, a host won't shorten a valid lifetime below 2 hours because of an unauthenticated RA.

R1(config)# interface Vlan110
R1(config-if)# ipv6 address 2001:db8:110::1/64
R1(config-if)# ipv6 nd other-config-flag
R1(config-if)# ipv6 dhcp server DHCPV6-STATELESS
R1# show ipv6 interface Vlan110 | include flag|prefix|hosts use
host$ ip -6 addr show dev eth0 | grep -E "inet6|valid_lft"
host$ ip -6 route show default
host$ resolvectl dns eth0

A frequent misunderstanding

DHCPv6 can't provide a default route. Hosts always learn their gateway from Router Advertisements. In a "DHCPv6 only" design, the router must still send RAs, with the prefix's A flag cleared and the M flag set.

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.

Known-good, transitional and broken reference

Identity/scope: client/server address, VRF/interface, transaction/request identifier and the exact service object such as name, lease, peer or credential Known-good: the request leaves the intended client context, reaches the correct listener/provider, produces an accepted response and the client/effective state changes as intended Transitional: retry/backoff, lease negotiation, DNS recursion/referral or authentication challenge where transaction identity and timers continue to progress Broken: no request at the server, wrong relay/route/listener, policy rejection, malformed/incorrect response, or response that never returns to/gets accepted by the original client Interpretation rule: compare the same object, scope and time window. What it does not show: IP reachability or a server-side log entry alone does not show the original application transaction completed Next check: move one step toward the original workload using Capture or correlate one request ID/transaction from client through server and back; verify the response is accepted by the original client and that the effective state changed as intended. Platform/scope: Cisco IOS / IOS XE first for device-side configuration; server implementation semantics remain product/version specific.

Quick reference

IPv6 hosts get addresses and settings in several ways, controlled by Router Advertisements (RAs). The RA's prefix information lets hosts form addresses with SLAAC; the M (managed) flag tells them to use stateful DHCPv6 for addresses; and the O (other) flag tells them to get only options such as DNS from stateless DHCPv6.

RA flagsAddress fromDNS from
A=1, M=0, O=0SLAACRDNSS in RA (if supported)
A=1, M=0, O=1SLAACStateless DHCPv6
M=1DHCPv6DHCPv6
interface Vlan20
 ipv6 address 2001:db8:20::1/64
 ipv6 nd other-config-flag
 ipv6 dhcp relay destination 2001:db8:100::53

Documented example, not captured output.

Android does not support stateful DHCPv6, so SLAAC is needed for broad client compatibility.

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 4862

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → DHCPv6, SLAAC & Router Advertisement. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4862.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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
dhcpv6slaacrouter advertisementrarsrdnssmanaged flagother flag
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

IPv6 Client Provisioning

RA/SLAAC/DHCPv6 quick reference

RA provides: default router, prefix/lifetime, flags; optionally RDNSS.

SLAAC: host forms address from advertised prefix.

DHCPv6: can provide address/config, but default router normally comes from RA.

Checks:

1. RA present?

2. Prefix/router lifetime valid?

3. M/O flags expected?

4. Address + default route installed?

5. DNS source correct?

6. DAD successful?

Confirmation

Confirm action

Continue?