Neighbor Discovery replaces ARP: NS/NA, RS/RA and duplicate address detection
Explain how ICMPv6 Neighbor Discovery replaces IPv4 ARP with solicited-node multicast and Hop Limit 255 protection, trace Duplicate Address Detection from ::, compare SLAAC stable/privacy IIDs (RFC 7217 and RFC 8981), and predict host state from RA flags and Router Lifetime.
Contentsand lesson path
On this page
- Why it matters
- Why IPv6 dropped broadcast ARP for Neighbor Solicitation and DAD
- RS/RA, SLAAC privacy/stable addresses, DHCPv6 flags and Router Lifetime
- Check your understanding
- Apply it
- Review prompt
Lessons of IPv6 Addressing & Operation
- IPv6 addresses without fear: notation, scopes and types Concept · 20 min
- Neighbor Discovery replaces ARP: NS/NA, RS/RA and duplicate address detection Concept · 20 min
- Lab: SLAAC and DHCPv6 side by side, watched in Wireshark Lab · 30 min
- Worked example: a /48 site plan and the ICMPv6 you must allow Worked example · 25 min
- Living with IPv4: dual stack, NAT64/DNS64 and 464XLAT Concept · 15 min
- Check: IPv6 addressing and troubleshooting scenarios Knowledge check · 8 questions
What you will learn
- Explain Neighbor Discovery (NS/NA, RS/RA, duplicate address detection) and configure hosts with SLAAC and DHCPv6, including the flags in router advertisements.
01. Why it matters
Suppose a campus VLAN enables IPv6 and engineers hit two puzzles immediately. First, client machines receive 2001:db8:20::.../64 addresses automatically with no DHCPv6 server deployed, yet none of them can reach off-link subnets because ip -6 route shows zero default via ... entry. Second, security analysts see zero ARP frames on the wire and wonder how switches and hosts learn MAC addresses or prevent IP conflicts.
IPv6 removes broadcast ARP and treats router configuration separately from centralised address leasing. Neighbor Discovery Protocol (NDP, RFC 4861) bundles Layer 2 resolution, conflict detection, router discovery, and prefix flags into ICMPv6—and a single misconfigured flag or timer inside a Router Advertisement silently alters host behaviour.
02. Why IPv6 dropped broadcast ARP for Neighbor Solicitation and DAD
In the IPv4 delivery lab, an IPv4 host resolves a neighbour's MAC by broadcasting an ARP request (ff:ff:ff:ff:ff:ff) that interrupts the CPU of every NIC on the VLAN—even on a 500-device Wi-Fi segment.
NDP keeps Layer 2 broadcast domains quiet by moving link-layer resolution into ICMPv6 and aiming queries at solicited-node multicast (ff02::1:ffXX:XXXX), built from the target address's trailing 24 bits:
- Address Resolution (
NSType 135 /NAType 136): To learn the MAC of2001:db8:20::1, Host A sends a Neighbor Solicitation (NS) toff02::1:ff00:1. Hardware NIC multicast filters drop that frame on unrelated machines; only nodes sharing:00:0001process it, and the owner replies with a Neighbor Advertisement (NA) carrying its MAC address. - Neighbor Unreachability Detection (NUD): Rather than keeping stale cache entries blindly until a timer expires, IPv6 tracks per-neighbour state (
REACHABLE,STALE,DELAY,PROBE) and sends unicast NS probes directly from an active address to confirm two-way reachability with an existing peer. - Duplicate Address Detection (DAD, RFC 4862): Before a host may use any newly generated link-local or global address (
tentativestate), it checks uniqueness by sending an NS for its own candidate address. Because the host does not yet own that address, it transmits from the unspecified source::to the candidate's solicited-node multicast group. If a peer replies with an NA (or sends a colliding DAD NS), the host marks the addressdadfailedand withholds it from traffic. - Hop Limit
255on-link guard: Every NDP packet (RS,RA,NS,NA,Redirect) must be sent with IPv6 Hop Limit = 255. Because every router decrements Hop Limit by at least1when forwarding, any ND message arriving withHop Limit < 255cannot have originated on the local link—and RFC 4861 requires receivers to discard it silently, blocking off-link ND spoofing.
Notice how cleanly you can tell DAD apart from address resolution or NUD in tcpdump: source :: querying its own candidate address is DAD; source fe80:: or global IP querying a peer via ff02::1:ff... is address resolution; and a unicast NS from an active IP to an existing peer IP is NUD.
DAD (at link up) : Host (src ::) --NS--> ff02::1:ff00:6010 ("anyone using mine?")
Addr resolution : Host (src fe80::.) --NS--> ff02::1:ff00:1 ("who has ::1?")
Reply : Router --NA--> Host ("is-at 02:..:60:01")
Router discovery : Host --RS--> ff02::2 ("any routers?")
Router config : Router --RA--> ff02::1 / Host ("prefix, A/M/O, lft")03. RS/RA, SLAAC privacy/stable addresses, DHCPv6 flags and Router Lifetime
When an interface comes up, the host sends a Router Solicitation (RS, ICMPv6 Type 133) to ff02::2 (all-routers multicast) asking local routers to announce themselves immediately instead of waiting for periodic updates. Routers reply with Router Advertisements (RA, ICMPv6 Type 134) carrying prefixes, MTU, optional recursive DNS (RDNSS), Router Lifetime, and three control flags:
A(Autonomous address-configuration flag inside each Prefix Information Option): WhenA = 1, hosts build their own/64address statelessly via SLAAC by combining the advertised 64-bit prefix with a 64-bit Interface ID.M(Managed address configuration flag): WhenM = 1, the router directs hosts to contact a stateful DHCPv6 server (RFC 8415, UDP port547viaff02::1:2) for centrally tracked address leases (IA_NA).O(Other configuration flag): WhenA = 1, M = 0, O = 1, hosts generate addresses via SLAAC and ask a stateless DHCPv6 server (Information-Request) only for extra parameters such as DNS servers, search domains, or NTP servers.
Stable versus temporary privacy addresses in SLAAC: Early SLAAC stacks embedded the NIC's 48-bit MAC address directly via Modified EUI-64 (inserting ff:fe and flipping the universal/local bit). Because a MAC-derived Interface ID never changes when a laptop roams between home, cafe, and office Wi-Fi, external servers could correlate the same device across networks. Modern OSes solve this with two complementary mechanisms:
- Semantically opaque stable IIDs (RFC 7217): Hosts hash
(prefix, interface, secret key)so each network yields a distinct, non-MAC-based address that stays stable within that VLAN (helpful for servers, inbound SSH, or DNSAAAArecords). - Temporary privacy addresses (RFC 8981): Alongside the stable
mngtmpaddraddress, clients generate short-livedtemporaryaddresses for outbound connections and rotate them periodically. When a temporary address'spreferred_lftexpires before itsvalid_lft, Linux marks itdeprecated: existing TCP/QUIC sockets keep working cleanly untilvalid_lfthits zero, while all new outbound connections pick the fresh preferred temporary address.
Why default routes vanish when Router Lifetime is zero: Hosts learn their IPv6 default gateway only from Router Advertisements, installed via the router's fe80:: source address. DHCPv6 has no default-gateway option. Under RFC 4861, an RA with Router Lifetime = 0 can still advertise on-link SLAAC prefixes (A = 1), but tells hosts not to add that sender as a default router—explaining our opening VLAN puzzle when a storage-only router advertises a prefix without offering off-link transit.
What if you flip A = 1 to A = 0 and set M = 1 on a working SLAAC link without starting a DHCPv6 server? Newly booted hosts still self-assign fe80:: link-local addresses and install the RA default route (assuming Router Lifetime > 0), but acquire zero global unicast addresses because A = 0 stops SLAAC and nothing answers DHCPv6 Solicit messages.
When not to deploy A = 0, M = 1 (DHCPv6-only): Pure stateful DHCPv6 suits managed wired corporate desktops requiring centralised lease databases, but fails on general BYOD or mobile Wi-Fi because Android devices omit stateful DHCPv6 IA_NA client support (see RFC 7934 on multi-address host requirements and Google's DHCPv6-PD announcement) and require SLAAC (A = 1), and Android's non-SLAAC path is per-client DHCPv6 Prefix Delegation (RFC 9663) not IA_NA; Google says its DHCPv6-PD support is rolling out to most devices running Android 11 and above through Google Play system updates.
04. Check your understanding
05. Apply it
Suppose a campus deploys a BYOD Wi-Fi VLAN alongside a wired server VLAN. State which RA flags (A, M, O) and IID behaviour (RFC 8981 temporary vs RFC 7217 stable) suit each VLAN and why.
Next, build a real two-namespace network and watch SLAAC, DAD, stateless DHCPv6, and stateful DHCPv6 side by side in the SLAAC and DHCPv6 lab.
06. Review prompt
Explain how solicited-node multicast and Hop Limit 255 protect Neighbor Discovery, distinguish preferred_lft from valid_lft for RFC 8981 privacy addresses, and explain why A = 0, M = 1 breaks Android clients even when a DHCPv6 server is running.
References
- RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
- RFC 4862: IPv6 Stateless Address Autoconfiguration
- RFC 7217: Semantically Opaque Interface Identifiers with SLAAC
- RFC 8981: Temporary Address Extensions for SLAAC
- RFC 8415: Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
- RFC 7934: Host Address Availability Recommendations
- RFC 9663: Using DHCPv6-PD to Allocate Unique IPv6 Prefixes per Client
- Android Developers Blog: Simplifying advanced networking with DHCPv6 Prefix Delegation
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.