Use it when IPv6 addresses must be assigned and tracked centrally by a DHCPv6 server.
Stateful DHCPv6
Stateful DHCPv6 (RA M flag set) assigns IPv6 addresses and options from a server that tracks leases; hosts still learn the default gateway from Router Advertisements.
1. Stateful DHCPv6 assigns addresses and records leases (M flag).
2. Gateway still from RA.
3. Useful for tracking.
4. Not supported on Android.
5. Check leases and pool.
RA M=1 → solicit → advertise → request → reply → lease
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 Configuration and checks Verify boundary
ipv6 dhcp pool LAN10
address prefix 2001:db8:10::/64
dns-server 2001:db8:53::53
interface Vlan10
ipv6 dhcp server LAN10
ipv6 nd managed-config-flag
ipv6 nd prefix 2001:db8:10::/64 no-autoconfig
Documented example, not captured output. Verify with show ipv6 dhcp binding. The default gateway still comes from the RA.
Step 2 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 dhcp binding— leasesshow ipv6 dhcp pool— address prefix and lifetimes
ReferenceWhy it matters1 section · depth on demand
How it works
With stateful DHCPv6 the RA sets the M flag, telling hosts to request an address from a DHCPv6 server (SOLICIT, ADVERTISE, REQUEST, REPLY). The server tracks leases by DUID. The default gateway still comes from the RA — DHCPv6 has no gateway option.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Message exchange (RFC 8415)
| Step | Message | From → to | Notes |
|---|---|---|---|
| 1 | Solicit | Client → ff02::1:2 (UDP 547) | Client identifies itself with a DUID, not its MAC |
| 2 | Advertise | Server/relay → client (UDP 546) | Offers an address in an IA_NA |
| 3 | Request | Client → server | Accepts one offer |
| 4 | Reply | Server → client | Lease with preferred/valid lifetime |
| — | Renew / Rebind | Client → server | Extends the lease |
With Rapid Commit both sides may shorten this to Solicit + Reply.
Router side on IOS XE
interface Vlan10
ipv6 address 2001:db8:10::1/64
ipv6 nd managed-config-flag ! M flag: use DHCPv6 for addresses
ipv6 nd prefix 2001:db8:10::/64 no-autoconfig ! A flag off: no SLAAC address
ipv6 dhcp relay destination 2001:db8:53::547
Without no-autoconfig hosts may build a SLAAC address and request a DHCPv6 address.
What DHCPv6 does not provide
- Default gateway — always learned from Router Advertisements. Stopping RAs breaks routing even with a working DHCPv6 lease.
- Prefix length — an assigned address is a /128 lease; the on-link /64 comes from the RA prefix option.
Verification
| Where | Command |
|---|---|
| Relay/router | show ipv6 dhcp interface Vlan10, show ipv6 dhcp relay binding |
| IOS server | show ipv6 dhcp binding (DUID, IA_NA, address, lifetimes) |
| Windows host | ipconfig /all — "DHCPv6 IAID" and "DHCPv6 Client DUID" |
| Capture | Filter udp port 546 or udp port 547 |
Because clients are identified by DUID, MAC-based IPAM reservations need the relay to insert the client link-layer address option where supported.
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 → Stateful DHCPv6. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%