IPv6 Neighbor Discovery
IPv6 uses ICMPv6, not ARP
Neighbor Discovery (ND) is a set of ICMPv6 messages for finding routers, learning on-link information, resolving link-layer addresses and tracking neighbor reachability. Unlike ARP broadcasts, initial IPv6 neighbor address resolution normally uses solicited-node multicast. The group is derived from the low 24 bits of the target address; several addresses can share a group. A receiver must still check the target field. The example uses a documentation prefix and synthetic link-local addresses.
Target: 2001:db8:1::1234:5678Solicited-node group: ff02::1:ff34:5678Discover a router and a next hop
A host may send Router Solicitation (RS, type 133) to the all-routers group ff02::2. A Router Advertisement (RA, 134) can announce a router lifetime, prefix information and other parameters. A nonzero router lifetime can make its link-local source a default-router candidate. Prefix on-link and autonomous-address flags serve different purposes; an RA is not a DHCP lease. Routers also send unsolicited RAs. In this example the host already has a usable address; the RA does not include a link-layer address option, and the router mapping is missing. To send off-link, it resolves the router with Neighbor Solicitation (NS, 135) and receives Neighbor Advertisement (NA, 136).
H -> ff02::2 : RS (133)R fe80::1 -> ff02::1 : RA (134), lifetime 1800 sH -> ff02::1:ff00:1 : NS (135), target fe80::1R -> H : NA (136), target fe80::1H -> R MAC : packet to off-link IPv6 destinationCheck duplicate addresses before use
Duplicate Address Detection (DAD) checks whether a tentative unicast address is already in use before normal assignment, subject to configuration and protocol exceptions. A DAD NS has source :: and a target equal to the tentative address; it goes to the target’s solicited-node multicast group and omits the source link-layer address option. A conflicting NA or qualifying NS can indicate duplication. No conflict observed after the configured checks permits normal use under the ordinary DAD procedure, but is not proof of global uniqueness. DAD and ordinary next-hop resolution solve different problems.
Tentative: 2001:db8:1::aDAD NS source: ::DAD NS destination: ff02::1:ff00:aDAD NS target: 2001:db8:1::aA mapping is not proof of reachability
Neighbor Unreachability Detection (NUD) uses evidence such as upper-layer confirmation or solicited neighbor advertisements to track whether a unicast neighbor can still be reached. A typical cache entry can be INCOMPLETE (resolution pending), REACHABLE, STALE (mapping known, but reachability not recently confirmed), DELAY or PROBE. STALE is not itself a failure: traffic can still use the cached mapping while confirmation proceeds. The operating system controls timers and output formatting. Do not block all ICMPv6 to secure a network; ND is required for ordinary IPv6 link operation. Protect router discovery using reviewed network controls and trusted configuration. Practice distinguishing an RA, a resolution NS and a DAD NS from their source, target and purpose.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
IPv6 Neighbor Discovery — knowledge check
Interpret fictional offline neighbor and ICMP observations.
Which message can announce a default-router lifetime?
Which pair normally resolves an uncached IPv6 neighbor on Ethernet?
What group is used for initial resolution of 2001:db8:1::1234:5678?
What is the source address of a DAD Neighbor Solicitation?
An IPv6 neighbor entry is STALE. What does this mean?