Network Bytes · Episode 113 · CCNA 1.9
"IPv6 SLAAC: an address with no DHCP server"
With SLAAC, an IPv6 host builds its own address. The router announces the network's prefix, the host makes up the second half itself, checks that nobody else is using the address, and uses the router as its default gateway. No server keeps a list of who has which address.
The router announces the prefix
On an IPv6 network, routers regularly send Router Advertisements (RAs), small ICMPv6 messages sent to every device on the link. They also send one straight away when a host asks with a Router Solicitation, so a PC that just joined does not have to wait. An RA carries the network's prefix, for example 2001:db8:1::/64. On a usual /64 network the prefix is the first half of the address, the first 64 bits, a bit like a street name that every house on the street shares.
The PC makes up the second half
The host takes the prefix and adds the second half itself: the interface ID, like a house number. There are two common ways to make it:
- Modified EUI-64: build it from the network card's MAC address (see EP85). The result is predictable, so it can be used to track a device from network to network.
- Random or opaque IDs: most current operating systems pick a random-looking interface ID instead, for privacy. Temporary addresses change regularly; stable ones stay the same on one network but differ between networks.
Put together, the PC might end up with something like 2001:db8:1:0:a4f2:39c0:7e3b:5b2d.
Check first: is anyone using it?
Before it uses the new address, the host runs Duplicate Address Detection (DAD): it sends a Neighbor Solicitation asking whether anyone already has that address. If nobody answers within a short time, the address is unique and the host starts using it. If someone does answer, the host must not use that address.
The router becomes the default gateway, and nothing keeps a list
The RA comes from the router's link-local address, and the host adds that router as its default gateway, so traffic for other networks goes there. "Stateless" means no server tracks which host has which address: each host builds and checks its own. That is the difference from DHCPv6 in stateful mode, where a server hands out addresses and keeps a record of them. Hosts can still get extras such as DNS server addresses, either from a stateless DHCPv6 server or from options inside the RA itself.
Try it yourself
Look at your own computer's IPv6 addresses. On Windows, open Command Prompt and run ipconfig; on macOS or Linux, run ip -6 addr or ifconfig. If your network uses IPv6, look for an address that starts with the same first half as other devices on your network, and notice if your system lists a "temporary" address next to it. Also find the address starting with fe80: (the link-local one) and the "Default Gateway" line.
Good to know
- CCNA 1.9 covers IPv6 address types and addressing. EP25 covers IPv6 basics, EP26 address types, and EP85 EUI-64.
- Routers send Router Advertisements both on a timer and in reply to a host's Router Solicitation; they list the on-link /64 prefix.
- "First half" and "second half" in the video mean the 64-bit prefix and the 64-bit interface ID of the usual /64.
- The interface ID can come from the MAC address with modified EUI-64, but most current operating systems use random or stable-but-opaque interface IDs for privacy, which is why the video says "many PCs just pick a random one."
- The check before using the address is Duplicate Address Detection, done with a Neighbor Solicitation; the video leaves the name out.
- The RA's source, the router's link-local address, becomes the host's default gateway.
- "Stateless" means no server tracks address assignments. A stateless DHCPv6 server can still hand out extras like DNS servers, and RAs can carry DNS servers too (left out of the video).
- On Cisco routers, sending RAs needs
ipv6 unicast-routing. The time between unsolicited RAs can be configured, so the comment question states the interval rather than relying on a default. - "SLAAC" is said "slack."
For CCNA learners
CCNA exam topic 1.9 asks you to configure and verify IPv6 addressing. Know that with SLAAC a host takes the /64 prefix from a Router Advertisement, creates its own interface ID (EUI-64 or random), runs Duplicate Address Detection, and uses the router's link-local address as its default gateway, with no server keeping state.
Answer to the comment question
18 announcements. One hour is 60 × 60 = 3,600 seconds, and 3,600 ÷ 200 = 18, so a router sending an announcement every 200 seconds sends 18 of them in an hour.
Test your knowledge
Quick quiz: "IPv6 SLAAC: an address with no DHCP server"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- IETF, "RFC 4862: IPv6 Stateless Address Autoconfiguration": how a host builds its own address from the router's prefix and checks that nobody else is using it
- IETF, "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)": router advertisements, the prefix they carry and the default router
- IETF, "RFC 8981: Temporary Address Extensions for Stateless Address Autoconfiguration in IPv6": why many hosts use random interface IDs instead of their MAC address
Video transcript
How can your PC get an IPv6 address with no DHCP server?
In IPv6, the router keeps announcing the network's prefix: the first half of the address, like a street name.
Your PC hears it and takes the prefix.
Then it makes up the second half itself, like a house number. Many PCs just pick a random one.
First, it checks that nobody else is using that address. If nobody answers, it's done.
This is SLAAC: stateless address autoconfiguration. The router also becomes the PC's default gateway.
No server keeps a list of who has which address. That's the stateless part.
A router sends its announcement every 200 seconds. How many announcements in one hour? Comment your answer below!
That's your byte.
More from Network Bytes
- EP110"802.1X: logging in at the switch port"
- EP111"Interface errors: CRC and runts"
- EP115"Creating a WLAN in the controller GUI with WPA2-PSK"
- EP116"DTP: how trunks negotiate, and why to turn it off"