Pcornel
Linux · Linux Networking

ARP / Neighbor Table

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

Back to the Topic

Answer

The neighbour table (ARP for IPv4, NDP for IPv6) maps IP addresses on local subnets to MAC addresses. Entries move through states: REACHABLE, STALE, DELAY, PROBE, FAILED.

Remember

FAILED or INCOMPLETE means no reply to ARP/NS — wrong VLAN, peer down, or filtering. A wrong MAC can come from duplicate IPs or a stale entry after failover; flush it with ip neigh flush dev <if>.

First checks

  • arping -I <if> <ip> — ARP-level reachability test
  • ip -br addr — interfaces and addresses
  • ip route — routing table and default route
  • ip neigh — ARP/neighbour cache
  • ip route get <dest> — route, interface and source chosen for a destination
  • nmcli device status / networkctl — which tool manages each interface

Commands

ip neigh show
Shows ARP/IPv6 ND neighbor cache state.
ip -6 neigh show
Inspect IPv6 neighbor cache and NUD state.
ip neigh

Verify in this order

packet to a local next hop → ARP request / NS → reply with MAC → entry REACHABLE → ages to STALE → re-probed

Where it usually breaks

First mismatch in link/interface → address/namespace → route/neighbor → firewall/policy → socket/daemon → DNS/TLS/SSH/application peer path; preserve identity/native diagnostic/pre-state before mutation.

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

Confirmation

Confirm action

Continue?