Week 6 · Lesson 16

SLAAC, NDP, and DHCPv6

IPv6 hosts can address themselves with no server at all. This lesson covers the control protocols that make it work — ICMPv6 and its neighbour-discovery messages — and the two ways DHCPv6 fits in. The message numbers (133–136) and flags (M and O) are exam favourites.

CCNA 200-301 Domain 1.0 Network Fundamentals Verified 2026-10-11
Part 1

How an IPv6 host gets configured

In IPv4 a host needs either a handwritten address or a DHCP server. IPv6 gives you a third option that needs neither: a host can hear a router’s advertisement of the local prefix and build a complete, valid address by itself. This is SLAAC (Stateless Address Autoconfiguration), and it is the default on most IPv6 networks. When a network needs tighter control — to log every address, hand out DNS servers, or avoid predictable interface IDs — it adds DHCPv6.

All of these mechanisms are carried by ICMPv6 and its neighbour-discovery functions. Understanding the message flow is the key to reading an exam question about how a host “magically” addressed itself.

SLAAC

The host builds its own address from a router-advertised /64 prefix. No server keeps a record of who took what.

Stateful DHCPv6

A server assigns and tracks complete IPv6 addresses, exactly like IPv4 DHCP. Signalled by the M flag.

Stateless DHCPv6

SLAAC still supplies the address; DHCPv6 supplies the extra options such as DNS servers. Signalled by the O flag.

Part 2

ICMPv6: the message foundation

ICMPv6 is the IPv6 counterpart of ICMP, but it does far more than report errors. Where IPv4 had separate protocols for address resolution (ARP) and router discovery (ICMP router discovery), IPv6 folds everything into ICMPv6 under the umbrella of NDP (Neighbour Discovery Protocol, RFC 4861). Each function has a numeric type.

ICMPv6 message types · select one

Exam tip — memorise 133–136. 133 Router Solicitation, 134 Router Advertisement, 135 Neighbor Solicitation, 136 Neighbor Advertisement. A common mnemonic is “RS-RA then NS-NA”: routers first, then neighbours. Echo request/reply are 128/129.

ICMPv6 runs directly over IPv6 (next-header value 58) and uses IPv6 multicast addresses rather than broadcast. RS goes to the all-routers group FF02::2; RA goes to the all-nodes group FF02::1; NS and NA target the solicited-node group of the address in question.

Part 3

Router Solicitation and Advertisement

When an interface first comes up, it has only a link-local address. To learn the network prefix it sends a Router Solicitation (133) to FF02::2, the all-routers multicast group. This is a request: “routers, tell me about this link now.”

Routers that have IPv6 routing enabled reply with a Router Advertisement (134) to FF02::1, the all-nodes group. Routers also send unsolicited RAs periodically (by default roughly every 200 seconds) so hosts that did not send an RS still learn the prefix. The RA carries:

Crucially, the RA does not contain a full host address — just the prefix. The host adds its own interface ID, which is what makes the method “stateless”: the router keeps no record of who took which address.

Part 4

SLAAC in detail

SLAAC combines three steps: send an RS (or wait for the next RA) and receive the /64 prefix; generate a 64-bit interface ID and combine it with the prefix to form a full address; then run DAD on the new address to prove it is unique before using it.

SLAAC message flow · step through it
1 / 4

      

Definition — SLAAC. Stateless Address Autoconfiguration is the process by which a host forms a complete IPv6 address from a /64 prefix learned in a Router Advertisement plus a locally generated 64-bit interface ID. No server tracks the assignment.
Part 5

Neighbor Solicitation and Advertisement

IPv6 has no ARP. Instead, when host A needs the link-layer (MAC) address of a neighbour at IPv6 address X, it sends a Neighbor Solicitation (135) to X’s solicited-node multicast address (FF02::1:FFxx:xxxx). Because the solicited-node group is built from X’s low 24 bits, only a tiny set of hosts — normally just one — receives the message. This is far more efficient than ARP’s broadcast to everyone.

The owner of X replies with a Neighbor Advertisement (136) containing its MAC address (delivered as an ICMPv6 option) sent back to A. A now has everything it needs to build the Layer 2 frame. NA messages are also used to announce a change of link-layer address, which is how IPv6 handles a host that moves.

IPv4 mechanismIPv6 NDP equivalent
ARP request (broadcast)Neighbor Solicitation to a solicited-node multicast address
ARP replyNeighbor Advertisement
Gratuitous ARPUnsolicited Neighbor Advertisement
ICMP router discoveryRouter Solicitation / Router Advertisement
ARP probe / duplicate checkDuplicate Address Detection (an NS)
Part 6

Duplicate Address Detection

Before a host may use a new address — whether SLAAC-generated, EUI-64, static, or DHCPv6 — it runs Duplicate Address Detection (DAD). The process is elegant: mark the candidate address tentative; send a Neighbor Solicitation for it to its own solicited-node multicast group with the unspecified address :: as the source; if another host already uses the address it replies with a Neighbor Advertisement; no reply means the address is unique, so mark it preferred and start using it.

Run Duplicate Address Detection · what happens?

Memory hook. DAD is “shout once, listen for a complaint”. Silence means the address is yours. Because the check goes to the solicited-node group rather than the whole link, the cost is tiny even on a busy LAN.
Part 7

DHCPv6: stateful and stateless

DHCPv6 works like DHCP but over IPv6, using UDP port 547 on the server/relay and UDP port 546 on the client. There are two modes, and the RA’s flags tell a host which to use.

What does the host get? · select the RA flags

ModeRA flagWhat the host getsAddress comes from
Stateful DHCPv6M = 1 (Managed)Full IPv6 address plus options (DNS, domain)DHCPv6 server assigns and tracks the address
Stateless DHCPv6O = 1 (Other)Options only — DNS servers, domain, etc.SLAAC (host builds its own address)
SLAAC onlyM = 0, O = 0Address from RA prefix onlyHost

Stateful DHCPv6 is the closest match to IPv4 DHCP: a server keeps a database of leases and hands out complete addresses. The M flag in the RA signals it. Stateless DHCPv6 is a hybrid: the host still uses SLAAC to form its address from the RA prefix, but it asks a DHCPv6 server for the other parameters it cannot get from the RA, such as the DNS server list. The server does not track addresses, hence “stateless”. The O flag signals it.

Exam tip — M and O. M = Managed = get a full address from DHCPv6 (stateful). O = Other = SLAAC gives the address, DHCPv6 gives the extra options (stateless). Ports: server 547, client 546. If both flags are set, the host does DHCPv6 for both address and options.
Part 8

Cisco configuration

For a Cisco router to send Router Advertisements at all, IPv6 routing must be enabled globally. Only then does an interface advertise its prefix and act as a default gateway for IPv6 hosts.

! enable IPv6 routing and Router Advertisements globally (off by default)
Router(config)# ipv6 unicast-routing

! give the LAN interface a global IPv6 address in the /64
Router(config)# interface GigabitEthernet0/1
Router(config-if)# ipv6 address 2001:db8:acad:a::1/64
Router(config-if)# no shutdown

On a host (or a router interface acting as a host), ask for SLAAC with:

! build an address from the RA prefix automatically
PC(config)# interface GigabitEthernet0/0
PC(config-if)# ipv6 address autoconfig

! or accept a full address from a stateful DHCPv6 server
PC(config-if)# ipv6 address dhcp

Use ipv6 enable when you want only a link-local address (useful for routing on a point-to-point link). To stop a router from advertising on an interface — common on a WAN link facing an ISP — use ipv6 nd ra suppress. Verify the host side with show ipv6 interface brief and show ipv6 interface, which list the global and link-local addresses and the flags learned.

Router# show ipv6 interface brief
GigabitEthernet0/1  [up/up]
    FE80::1
    2001:DB8:ACAD:A::1
Part 9 · Your turn

Review

Check what you have learned with these review questions.

Review · 6 questions

Sources

Sources & references

  1. Narten, T. et al. RFC 4862: IPv6 Stateless Address Autoconfiguration (2007) — SLAAC and DAD. rfc-editor.org/rfc/rfc4862.
  2. Narten, T. et al. RFC 4861: Neighbor Discovery for IP version 6 (IPv6) (2007) — RS, RA, NS, NA, redirect. rfc-editor.org/rfc/rfc4861.
  3. Droms, R. et al. RFC 8415: Dynamic Host Configuration Protocol for IPv6 (DHCPv6) (2018) — stateful and stateless modes, UDP 546/547. rfc-editor.org/rfc/rfc8415.
  4. Conta, A. et al. RFC 4443: Internet Control Message Protocol (ICMPv6) (2006) — ICMPv6 message types. rfc-editor.org/rfc/rfc4443.
  5. Cisco. CCNA (200-301) Exam Topics, Network Fundamentals — IPv6 host configuration. cisco.com.

Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.