Two flag bits in the Router Advertisement decide how an IPv6 host gets its address. M (managed) set means "get your address from DHCPv6": that is stateful DHCPv6, and the server keeps a lease for every client. O (other) set with M clear means "build your own address with SLAAC, but ask DHCPv6 for DNS and the domain": that is stateless DHCPv6, and the server keeps nothing. Both flags clear is pure SLAAC. "Stateful" and "stateless" describe the server, not the client.
All three can run at the same time, and a host can end up with addresses from more than one of them. Below, each mode is built on Cisco IOS XE 17.18.2 with a relay and a Linux client, all built in my home lab. Then I took the DHCPv6 server offline in the middle of a lease and timed what the client did. It extends the IPv6 guide and the IP Services guide.
The M and O flags
| Mode | M / O | Address comes from | DNS comes from | Server keeps state? |
|---|---|---|---|---|
| Pure SLAAC | 0 / 0 | The RA prefix (host builds it) | RA RDNSS option, if sent | No server |
| Stateless DHCPv6 | 0 / 1 | The RA prefix (SLAAC) | DHCPv6 (Information-Request) | No |
| Stateful DHCPv6 | 1 / 1 | DHCPv6 lease | DHCPv6 | Yes, a binding per client |
There's a fourth bit that matters as much: the A (autonomous) flag on each prefix in the RA. While A is set, hosts build a SLAAC address from that prefix whatever M says. Setting M doesn't switch SLAAC off. The lab shows exactly that below.
The lab

| Device | Role | Addresses |
|---|---|---|
| H1 | Alpine Linux client, BusyBox udhcpc6 1.37.0 | eth1 on the LAN, SLAAC or DHCPv6 |
| R1 | LAN gateway and DHCPv6 relay | Ethernet0/2 2001:db8:10::1/64 (LAN), Ethernet0/1 2001:db8:12::1/64 |
| R2 | DHCPv6 server, one hop away | Ethernet0/1 2001:db8:12::2/64, static route to 2001:db8:10::/64 via R1 |
The server sits on a different subnet from the clients on purpose, because that's how it usually is in production. The lease is deliberately short (valid 120 s, preferred 60 s) so the failure test finishes in minutes.
Pure SLAAC: no server at all
With only ipv6 unicast-routing and an address on R1's LAN interface, H1 had a global address within one RA interval:
$ ip -6 addr show dev eth1
inet6 2001:db8:10:0:a8c1:abff:fe65:c1eb/64 scope global dynamic
valid_lft 2591992sec preferred_lft 604792sec
inet6 fe80::a8c1:abff:fe65:c1eb/64 scope link
$ ip -6 route show default
default via fe80::a8bb:ccff:fe00:220 dev eth1 metric 1024The interface ID a8c1:abff:fe65:c1eb is EUI-64: the MAC aa:c1:ab:65:c1:eb split in half, ff:fe inserted, and the seventh bit flipped (aa becomes a8). The lifetimes are IOS's RA defaults, 30 days valid and 7 days preferred. The default route points at R1's link-local address, not its global one, and it always comes from the RA. DHCPv6 has no gateway option.
Stateful DHCPv6 with a relay
The server (R2)
ipv6 dhcp pool LAN10-STATEFUL
address prefix 2001:DB8:10::/64 lifetime 120 60
dns-server 2001:DB8:12::53
domain-name example.net
!
interface Ethernet0/1
ipv6 address 2001:DB8:12::2/64
ipv6 dhcp server LAN10-STATEFUL
!
ipv6 route 2001:DB8:10::/64 2001:DB8:12::1lifetime 120 60 is valid then preferred. Once the preferred lifetime runs out, the address is deprecated: existing sessions keep using it but new ones shouldn't pick it. At the valid lifetime it's gone. The pool prefix must be the client LAN's own /64, or the client gets an address nothing can route back to.
The flags and the relay (R1)
interface Ethernet0/2
ipv6 address 2001:DB8:10::1/64
ipv6 nd managed-config-flag
ipv6 nd other-config-flag
ipv6 dhcp relay destination 2001:DB8:12::2 Ethernet0/1R1#show ipv6 interface Ethernet0/2 | include hosts
Hosts use DHCP to obtain routable addresses.
Hosts use DHCP to obtain other configuration.Clients send Solicit to ff02::1:2, a link-local multicast group that never crosses a router. The relay picks it up on the LAN and forwards it to R2 as unicast, wrapped in Relay-Forward. Without a relay or a server on the segment, nothing answers.
M is set, and the host still builds a SLAAC address
With M and O on but the prefix still autonomous, the client leased an address and kept its SLAAC one:
$ udhcpc6 -i eth1 -f -n -q -t 3 -T 3 -s /hook.sh
udhcpc6: started, v1.37.0
udhcpc6: sending discover
udhcpc6: sending select
udhcpc6: IPv6 obtained, lease time 120
event=bound
dns=2001:0db8:0012:0000:0000:0000:0000:0053
ipv6=2001:0db8:0010:0000:4d4a:f3bf:2fdb:e090
lease=120
search=example.net
$ ip -6 addr show dev eth1 scope global
inet6 2001:db8:10:0:4d4a:f3bf:2fdb:e090/128 scope global tentative dynamic
valid_lft 120sec preferred_lft 60sec
inet6 2001:db8:10:0:a8c1:abff:fe65:c1eb/64 scope global dynamic
valid_lft 2591997sec preferred_lft 604797secBusyBox logs Solicit as "sending discover" and Request as "sending select". The small hook script passed with -s installs the lease, since Alpine's default udhcpc script only handles IPv4. Now the host has two global addresses, and the leased one is random, not EUI-64. To make DHCPv6 the only source, clear the A flag:
R1(config-if)#ipv6 nd prefix 2001:DB8:10::/64 no-autoconfig
R1#show running-config interface Ethernet0/2
ipv6 nd prefix 2001:DB8:10::/64 2592000 604800 no-autoconfigThat stops new SLAAC addresses, but it doesn't remove one the host already built: 16 seconds and one RA later, H1 still had its EUI-64 address with 30 days left on it. On a live network, the old address stays until its lifetime runs out unless the host bounces the interface. Plan the flag change before hosts come up, or expect a transition period with two addresses.
Here are the flags on the wire, captured on H1 while the stateful setup was running:
ICMP6, router advertisement, length 64
hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 1800s
prefix info option (3), length 32 (4): 2001:db8:10::/64, Flags [onlink], valid time 2592000s, pref. time 604800sFlags [managed, other stateful] is M=1 and O=1. The prefix shows [onlink] with no auto, so the A flag is clear.
The binding: what "stateful" means
R2#show ipv6 dhcp binding
Client: FE80::A8C1:ABFF:FE65:C1EB
DUID: 00030001AAC1AB65C1EB
Username : unassigned
VRF : default
IA NA: IA ID 0xCC637C42, T1 30, T2 48
Address: 2001:DB8:10:0:4D4A:F3BF:2FDB:E090
preferred lifetime 60, valid lifetime 120
expires at Nov 14 2026 08:51 PM (93 seconds)
IA NA: IA ID 0x6E394639, T1 30, T2 48
Address: 2001:DB8:10:0:C113:1D8A:9C96:AE74
preferred lifetime 60, valid lifetime 120
expires at Nov 14 2026 08:52 PM (110 seconds)
R2#show ipv6 dhcp pool
DHCPv6 pool: LAN10-STATEFUL
Address allocation prefix: 2001:DB8:10::/64 valid 120 preferred 60 (2 in use, 0 conflicts)
Active clients: 1
| Field | Meaning |
|---|---|
| DUID | How DHCPv6 identifies a client. Type 3 (00030001...) is link-layer, so this one happens to contain the MAC, but that's the client's choice. Reserve by DUID, not MAC. |
| IA NA | Identity Association for Non-temporary Addresses: the container for one leased address. A client can hold several. |
| T1 30, T2 48 | Renew and rebind timers, 50% and 80% of the 60-second preferred lifetime. |
| Two IA NAs, one client | The first came from a client run that quit without releasing it (-q). The server keeps it until it expires. "2 in use" for one active client is what a stale lease looks like. |
A random host part rules out EUI-64, but privacy and random SLAAC addresses look just as random. To tell where an address came from, check the binding, the client lease or the RA flags, not the address itself.
The break: DHCPv6 server offline mid-lease
With a fresh lease bound at 20:53:55 UTC, I shut R2's Ethernet0/1 at 20:54:06, so the relay had nowhere to send anything. Then I polled the client every 5 seconds and pinged R1's LAN address from it:
20:54:10 inet6 2001:db8:10:0:44fc:d6c4:df2d:9e93/128 scope global dynamic
valid_lft 105sec preferred_lft 45sec ping-gw-ok
20:54:53 valid_lft 62sec preferred_lft 2sec ping-gw-ok
20:54:58 scope global deprecated dynamic
valid_lft 57sec preferred_lft 0sec ping-gw-ok
20:55:20 scope global deprecated dynamic
valid_lft 35sec preferred_lft 0sec ping-gw-okThe client sent Renew at T1 and got no answer, and again after that. At 60 seconds the address went deprecated, but local traffic kept working because a deprecated address is still valid. Users wouldn't have noticed anything yet.
I brought R2 back at 20:55:25, with 30 seconds left on the valid lifetime:
udhcpc6: sending renew
udhcpc6: sending renew
udhcpc6: IPv6 obtained, lease time 120
event=renew t=20:55:28
ipv6=2001:0db8:0010:0000:44fc:d6c4:df2d:9e93
20:55:29 inet6 2001:db8:10:0:44fc:d6c4:df2d:9e93/128 scope global dynamic
valid_lft 119sec preferred_lft 59secThe next Renew got through 3 seconds after the link came up. The address stayed the same, both lifetimes reset, and R2 showed the same binding again.
When the outage outlasts the lease
An earlier run used the same setup with an 82-second outage (20:50:16 to 20:51:38) against a lease bound at 20:50:00. That one ended differently:
udhcpc6: sending renew
udhcpc6: sending renew
udhcpc6: sending renew
udhcpc6: sending renew
udhcpc6: sending renew
udhcpc6: lease lost, entering init state
event=deconfig t=20:51:43
udhcpc6: sending discover
udhcpc6: sending select
event=bound t=20:51:43
ipv6=2001:0db8:0010:0000:508d:46a1:3809:6bfcAfter five unanswered Renews, udhcpc6 gave up on the lease 103 seconds into its 120-second lifetime, went back to Solicit, and got a different address (…508d:46a1:3809:6bfc instead of …c113:1d8a:9c96:ae74). Any session tied to the old address would break, and any log or firewall rule keyed to it would now point at nothing.
Stateless DHCPv6 in the same lab
For stateless, I removed managed-config-flag, removed no-autoconfig so the prefix autoconfigures again, and moved R2's interface to a second pool with only DNS and the domain:
ipv6 dhcp pool LAN10-STATELESS
dns-server 2001:DB8:12::53
domain-name example.net
interface Ethernet0/1
ipv6 dhcp server LAN10-STATELESSICMP6, router advertisement, length 64
hop limit 64, Flags [other stateful], pref medium, router lifetime 1800s
prefix info option (3), length 32 (4): 2001:db8:10::/64, Flags [onlink, auto], valid time 2592000s, pref. time 604800s
$ udhcpc6 -l -i eth1 -f -n -q -t 3 -T 3 -s /hook.sh
udhcpc6: started, v1.37.0
udhcpc6: sending info request
event=renew
dns=2001:0db8:0012:0000:0000:0000:0000:0053
search=example.netThe RA now carries only O, and the prefix is back to [onlink, auto]. H1 rebuilt its EUI-64 address straight away. One Information-Request went through the relay, and the Reply carried DNS and the domain with no address. The stateless pool showed Active clients: 0: the server answered and kept nothing.

Inside the PDF: an excerpt from page 2. Open a larger preview.
DHCPv6 and RA Decision Reference
Free with a PingLabz account · 6 pages · US Letter PDF
SLAAC/stateful/stateless comparisons, RA flags, exchange triage, and a client evidence sheet.
Already a member? Sign in.
DHCPv6-PD, briefly
Prefix Delegation hands a downstream router a whole prefix (a /56 or /48) instead of one address, and that router advertises /64s from it onto its own LANs. It's how a home router gets IPv6 from an ISP, and the normal model for any downstream router. On IOS it's a prefix-delegation pool on the server and ipv6 dhcp client pd on the client interface.
When it does not work
| Symptom | Check |
|---|---|
| Host has a SLAAC address and a DHCPv6 one | M is set but the prefix is still autonomous. Add ipv6 nd prefix ... no-autoconfig, and expect existing SLAAC addresses to stay until they expire. |
| Host gets no global address at all | No RA. Check ipv6 unicast-routing and that the interface is up. A host stuck on FE80:: only is covered in IPv6 neighbour discovery troubleshooting. |
| Solicits never reach the server | No relay on the client segment, or no route back from the server to the client LAN. Check show ipv6 dhcp interface on both routers. |
| Lease works but nothing can reach the address | The pool prefix isn't the client LAN's /64. |
| "in use" is higher than the number of clients | Stale bindings from clients that left without a Release. They clear at the valid lifetime. |
| Clients changed addresses after a server outage | The outage outlasted the lease and clients went back to Solicit. Lengthen lifetimes or add a second server. |
| MAC reservation does nothing | DHCPv6 keys on DUID. Reserve by DUID. |
RAs aren't authenticated, so any host on the segment can send one, and a rogue RA reconfigures every host on the VLAN. RA Guard on the access switch, part of IPv6 first-hop security, is the defence.
FAQ
What is the difference between stateful and stateless DHCPv6?
A stateful server assigns addresses and records a binding for each client (M=1). A stateless server only hands out options such as DNS and keeps no record. The address comes from SLAAC (M=0, O=1).
DHCPv6 stateless vs stateful vs SLAAC: which should I use?
Stateful when you need to know which device had which address, for audit or forensics. SLAAC plus stateless DHCPv6 when you just need working hosts with DNS. Pure SLAAC with RDNSS for simple segments, as long as your clients read RDNSS.
Does DHCPv6 give out a default gateway?
No. There is no gateway option. The default route always comes from the RA, so DHCPv6 can't work without RAs.
Can a host get DNS without DHCPv6?
Yes, from the RDNSS option in the RA (RFC 8106). Stateless DHCPv6 exists for clients that ignore RDNSS.
What are T1 and T2?
Renew and rebind timers, 50% and 80% of the preferred lifetime by default (30 and 48 seconds in this lab). At T1 the client renews with its server. At T2 it should rebind with any server. BusyBox logged every retry as "sending renew", so its log doesn't tell the two apart.
Key takeaways
- M means the address comes from DHCPv6. O means other config comes from DHCPv6. The prefix's A flag decides whether hosts also build a SLAAC address.
- Setting M without
no-autoconfiggave the host two global addresses, and addingno-autoconfiglater didn't remove the SLAAC one. - DHCPv6 identifies clients by DUID, never gives out a gateway, and needs a relay to reach an off-link server.
- With the server down, the client kept working on a deprecated address. When the server came back before the valid lifetime ran out, it renewed in 3 seconds and kept its address. When the lease was lost first, it came back with a different address.
Next: the IPv6 guide, or the IP Services guide.