Networking · IP Fundamentals › IPv6
Neighbor Discovery
Cheat sheet · https://pcornel.dk/topic.php?topic=571
Answer
IPv6 Neighbor Discovery uses ICMPv6 to resolve neighbors, discover routers/prefixes and validate address uniqueness.
Remember
- NS/NA replace ARP-like resolution; RS/RA discover routers and prefixes
- ND depends on ICMPv6 and solicited-node multicast
- Neighbor cache states describe reachability confidence, not routing intent
- A default router is learned from RA, not DHCPv6.
First checks
show ipv6 neighbors <if>— neighbour entries and their state.show ipv6 interface <if>— ND reachable time, RA interval, DAD attempts, joined solicited-node groups.show ipv6 routers— routers this device learned from RAs.debug ipv6 nd— ND messages sent and received (briefly).- Capture filter
icmp6(tcpdump) /icmpv6.type in {133 134 135 136}(Wireshark). - Host:
ip -6 neigh(Linux) /netsh interface ipv6 show neighbors(Windows).
Commands
show ipv6 neighbors- Inspect IPv6 neighbor cache state and L2 mappings.
debug ipv6 nd- Inspect IPv6 ND control-plane events. Scope narrowly and disable promptly.
Verify in this order
ICMPv6 permitted → hosts join solicited-node groups → RS/RA give prefix and router → DAD confirms uniqueness → NS/NA resolve neighbours → NUD keeps entries fresh
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Neighbor Discovery · technical reference
| ND function | Main messages/state |
|---|---|
| Address resolution | NS / NA |
| Router discovery | RS / RA |
| Duplicate detection | DAD using NS |
| Reachability | Neighbor cache state machine |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=571