Pcornel
Networking · Network & Protocols › IPv4, ARP & ICMP

ARP & IPv6 Neighbor Discovery

Cheat sheet · https://pcornel.dk/topic.php?topic=163

Back to the Topic

Answer

Before a device can send an IP packet to a neighbour on the same network it needs the neighbour's MAC address. IPv4 finds it with ARP, IPv6 with Neighbor Discovery: ask the local network who has the address, and cache the answer.

Remember

An Incomplete ARP entry (or INCMP in IPv6) means the target did not answer — a problem on the local segment, not in routing. A host resolves the destination itself only inside its own subnet; otherwise it resolves its default gateway. Two MAC addresses alternating for one IP is a duplicate address.

First checks

  • show ip arp <ip> — MAC address, age and interface, or "Incomplete".
  • show ipv6 neighbors — the IPv6 equivalent, with a state per entry.
  • show mac address-table address <mac> — the switch port behind which that MAC lives.
  • ping <ip> — triggers resolution if no entry exists.

Commands

show ip arp
ip neigh show
show ipv6 neighbors
ip -6 neigh show
clear ip arp <ip>
ip neigh del
clear ipv6 neighbors
ip -6 neigh flush

Verify in this order

destination on a connected subnet (or next hop known) → request sent on the segment → target in the same VLAN answers → entry cached with the right MAC address → frames delivered to that MAC

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=163

Confirmation

Confirm action

Continue?