The idea: four ICMPv6 messages replace ARP and DHCP
An IPv4 host on a new network asks a DHCP server for an address and uses ARP broadcasts to find MAC addresses. An IPv6 host does both jobs with Neighbor Discovery (RFC 4861): a few ICMPv6 messages sent on the local link. It makes its own link-local address, checks that nobody else has it (Duplicate Address Detection, DAD), asks the router for the network's prefix, builds a global address by itself (SLAAC, RFC 4862), and finds each neighbour's MAC with a Neighbor Solicitation and a Neighbor Advertisement.
The messages
All of them are ICMPv6 with Hop Limit 255. A receiver drops any NDP packet whose Hop Limit is lower, so it knows the packet was not forwarded by a router from somewhere else.
| Type | Message | Sent by, to | Job |
|---|---|---|---|
| 133 | Router Solicitation (RS) | host → ff02::2 (all routers) | "Is there a router?" |
| 134 | Router Advertisement (RA) | router → ff02::1 (all nodes), or now and then on its own | default router, prefixes, flags, lifetimes |
| 135 | Neighbor Solicitation (NS) | host → target's solicited-node group, or unicast | "Who has this address?", DAD, and checking a neighbour |
| 136 | Neighbor Advertisement (NA) | target → asker, or ff02::1 | "I have it; here is my MAC" |
A fifth one, Redirect (137), lets a router point a host to a better first hop. The page leaves it out.
The interface ID and the link-local address
An IPv6 address on a LAN is a 64-bit prefix plus a 64-bit interface ID. The classic way to get the ID is modified EUI-64 (RFC 4291): take the 48-bit MAC, put ff:fe in the middle and flip bit 0x02 of the first byte. MAC 52:54:00:12:34:56 gives 5054:00ff:fe12:3456. With the prefix fe80::/64 in front, the host has its link-local address fe80::5054:ff:fe12:3456 before it has heard from anyone. Link-local addresses only work on this one link; routers never forward them. All NDP traffic between hosts and routers uses them.
Solicited-node multicast, not broadcast
IPv6 has no broadcast. For every address it has, a node joins a solicited-node multicast group: ff02::1:ff followed by the last 24 bits of the address. The group maps to an Ethernet multicast MAC: 33:33 plus the last 32 bits of the group. The NIC is told to accept only the groups the host joined, so a frame for 33:33:ff:00:00:20 is dropped by every NIC except those whose address ends in 00:00:20. With ARP, every host on the LAN must read every request. Here R's NIC drops the frame and its CPU never sees it (Demo: ping B, NS and NA instead of ARP). The switch in the model still floods the multicast frame to every port; a switch with MLD snooping would send it only where someone joined.
Duplicate Address Detection
A new address starts tentative. The host may not use it as a source yet. It sends an NS whose target is the tentative address, from the unspecified address ::, to that address's solicited-node group. Then it waits RetransTimer, 1 s (with DupAddrDetectTransmits = 1, the Linux default dad_transmits). No answer: the address becomes preferred (Demo: boot, link-local address and DAD).
If a node already owns the address, it defends it with an NA. Because the NS came from ::, it cannot reply to the asker directly, so it sends the NA to all nodes, ff02::1, with S=0. The new host then marks the address duplicate (Linux shows dadfailed). When the address came from the MAC, as here, two machines share a MAC (a cloned virtual machine is the usual cause), and RFC 4862 says the host should stop IPv6 on that interface. Linux does that only with accept_dad = 2 (Demo: DAD conflict, a cloned VM).
Router Advertisement and SLAAC
Routers send RAs every 200–600 s on their own, but a booting host does not wait: it sends an RS to ff02::2. The RS carries the host's MAC, so the router learns it without asking. The RA answers from the router's link-local address, here fe80::1 (Demo: Router Advertisement and SLAAC).
| RA field | Value here | What the host does |
|---|---|---|
| Router Lifetime | 1800 s | uses fe80::1 as default router for 1800 s (0 would mean "not a default router") |
| M, O flags | 0, 0 | M=1 would say "get addresses from DHCPv6", O=1 "get other settings (DNS) from DHCPv6" |
| Cur Hop Limit | 64 | Hop Limit for the host's own packets |
| Reachable Time, Retrans Timer | 0, 0 | 0 = not set: the host keeps its defaults, 30 s and 1 s |
| Prefix Information | 2001:db8:1::/64, L=1, A=1 | L=1: the prefix is on this link (talk to those addresses directly). A=1: build an address from it |
| Valid / Preferred Lifetime | 2592000 s / 604800 s | use the address for new connections for 7 days, keep it for 30; each RA restarts both |
With A=1 the host puts the prefix in front of its interface ID: 2001:db8:1::5054:ff:fe12:3456. That address is tentative too, so DAD runs again. Its solicited-node group is the same one, because the last 24 bits did not change. Without any RA the host has only its link-local address, and a ping to 2001:db8:1::20 fails at once with "Network is unreachable": no prefix says the address is on-link, and no default router could forward it (Demo: ping before any RA, no route).
Finding a neighbour's MAC, and the neighbour cache
To send to 2001:db8:1::20 the host first checks its prefix list: the address is on-link, so the next hop is B itself. With no cache entry it creates one in INCOMPLETE, queues the packet, and sends an NS to B's solicited-node group ff02::1:ff00:20, with its own MAC in a Source Link-Layer Address option. B learns A's MAC from that option and answers with a unicast NA: S=1 (solicited), O=1 (override), and its MAC in a Target Link-Layer Address option. A solicited NA proves that B is reachable now, so the entry becomes REACHABLE and the queued packet leaves.
| State | Meaning | Leaves it when |
|---|---|---|
| INCOMPLETE | NS sent, no MAC yet; packets wait | a solicited NA arrives (or 3 NS go unanswered: the entry is deleted) |
| REACHABLE | confirmed in the last ReachableTime (30 s) | 30 s pass → STALE |
| STALE | MAC known, not confirmed; also the start state of an entry learned from someone else's RS, RA or NS | a packet is sent to it → DELAY |
| DELAY | sending on trust, waiting 5 s for a confirmation (a TCP ACK counts; a ping reply does not) | confirmed → REACHABLE, or 5 s → PROBE |
| PROBE | unicast NS to the cached MAC | a solicited NA → REACHABLE (3 failed probes: the entry is deleted) |
So a cached MAC is never thrown away just because it is old. It is checked in the background the next time it is used (Demo: cache ages, STALE, DELAY, PROBE). How ARP Finds a MAC Address shows the same states in Linux's ARP cache for IPv4, and IPv4 vs IPv6 sets SLAAC beside DHCP. See also How a Device Gets an IP Address for how an IPv4 host gets its address from a server instead.
What the page leaves out
The MLD reports a host sends when it joins a group, and MLD snooping in switches; the random delays before the first NS or RS (up to 1 s) and before a solicited RA (up to 0.5 s); stable random interface IDs (RFC 7217) and temporary privacy addresses (RFC 8981), which most systems use today instead of EUI-64; optimistic DAD; DNS servers in the RA (RDNSS) and DHCPv6 when M or O is set; Redirect messages; unsolicited RAs, router lifetime 0 and prefix deprecation; the full neighbour state machines of R and B; and NDP security (SEND, RA Guard on switches).
On the mind map
References
RFC 4861: Neighbor Discovery for IP version 6 (message formats, neighbour cache states, constants)
RFC 4862: IPv6 Stateless Address Autoconfiguration (DAD, SLAAC, lifetimes)
RFC 4291: IP Version 6 Addressing Architecture (link-local, solicited-node groups, modified EUI-64)
Linux ip-sysctl: accept_dad, dad_transmits, neighbour table settings