Use it when a host cannot reach its gateway or a local peer even though addresses and routes look right.
ARP / Neighbor Table
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.
1. ip neigh show <ip> — state and MAC?
2. FAILED → peer down, wrong VLAN, or ARP filtered; capture: tcpdump -ni <if> arp.
3. Wrong MAC → duplicate IP? arping -D -I <if> <ip>.
4. Flush: ip neigh flush to <ip>.
5. Ping again and recheck.
packet to a local next hop → ARP request / NS → reply with MAC → entry REACHABLE → ages to STALE → re-probed
For Linux Networking → ARP / Neighbor Table, continue with the first unproven Topic check: Pin namespace, interface and exact next-hop IP whose L2 identity is required. If that boundary is healthy, advance to the adjacent check: Inspect NUD state, MAC, timestamps and whether state changes during the test. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip neigh showPrimary Commands
Configuration and operational commands for this Topic.
ip neigh showReferenceShows ARP/IPv6 ND neighbor cache state.
Use when: Use after confirming the Linux Networking target and before changing state.
Quick note: Linux · distribution/version specific. A successful command or active unit proves only local state; it does not prove dependency health, data integrity or client-visible service.
Linux · mixedip -6 neigh showReferenceInspect IPv6 neighbor cache and NUD state.
Linux · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
selected route/nexthop → neighbor lookup → solicitation → peer response → NUD state/MAC → L2 frame delivery → IP path → workload
Healthy evidence: the intended next hop resolves to the expected MAC/interface, NUD state behaves normally under traffic and L2 frames proceed without repeated resolution failure.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Pin namespace, interface and exact next-hop IP whose L2 identity is required.
- Inspect NUD state, MAC, timestamps and whether state changes during the test.
- Capture ARP or ICMPv6 ND on the intended interface when resolution behavior is ambiguous.
- After neighbor resolution succeeds, continue with route, firewall and service verification.
Verification chain. selected route/nexthop → neighbor lookup → solicitation → peer response → NUD state/MAC → L2 frame delivery → IP path → workload
Step 3 Commands Verify boundary
ip neigh
ip neigh flush dev eth0
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: entries remain INCOMPLETE/FAILED, resolve to an unexpected MAC/interface, flap during traffic or differ across namespaces while higher-layer tools report only generic unreachable errors.
Step 5 Common mistakes Narrow the fault
- FAILED entries ignored as a hint of L2 problems.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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>.
arping -I <if> <ip>— ARP-level reachability testip -br addr— interfaces and addressesip route— routing table and default routeip neigh— ARP/neighbour cacheip route get <dest>— route, interface and source chosen for a destinationnmcli device status / networkctl— which tool manages each interface
ReferenceWhat it is1 section · depth on demand
Core model
Treat neighbor entries as time-sensitive per-interface evidence. Identify whether the target is the final peer or a routed nexthop, inspect NUD state and packet behavior, and distinguish cache state from actual wire responses. Repeated INCOMPLETE/FAILED often points to L2/VLAN/peer issues rather than a routing-table absence.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Neighbor resolution shows link-layer reachability for one next hop on one interface, but it does not show routed end-to-end reachability or application health.
In depth
The neighbour table: ARP and NDP on Linux
Linux keeps IPv4 ARP entries and IPv6 Neighbor Discovery entries in a single neighbour table, managed with ip neigh. Each entry has a state, and the ip-neighbour(8) manual page lists them:
permanent: valid forever, and only removed administratively.noarp: valid, but never validated.reachable,stale,delayandprobe: the normal cycle of a learned entry.incomplete: resolution is in progress.failed: resolution failed after too many probes.
flush skips permanent and noarp entries by default.
States in practice
| State | Meaning | Action needed |
|---|---|---|
| REACHABLE | Recently confirmed | None |
| STALE | Valid, but not confirmed recently | None; confirmed on next use |
| DELAY / PROBE | Being re-verified | Brief; watch if it persists |
| INCOMPLETE | Request sent, no reply yet | Check the link, VLAN and the target host |
| FAILED | No reply after retries | The target is down or unreachable at Layer 2 |
| PERMANENT | Configured statically | Check it's still correct |
Kernel limits (IP sysctl documentation)
The table has garbage-collection thresholds: gc_thresh1 (128), gc_thresh2 (512) and gc_thresh3 (1024, the maximum number of non-permanent entries). Hosts on very large subnets, such as Kubernetes nodes and routers, can hit the limit and log "neighbour table overflow".
host$ ip neigh show dev eth0
10.110.0.1 lladdr 00:00:0c:9f:f0:6e REACHABLE
10.110.0.27 lladdr a4:bb:6d:55:01:27 STALE
10.110.0.99 FAILED
fe80::1 lladdr 00:00:0c:9f:f0:6e router REACHABLE
host$ ip neigh get 10.110.0.1 dev eth0
host$ sudo ip neigh replace 10.110.0.250 lladdr a4:bb:6d:55:02:50 dev eth0 nud permanent
host$ sudo ip neigh flush dev eth0 nud failed
host$ ip -s neigh show 10.110.0.1
host$ dmesg | grep -i "neighbour table overflow"
Interpreting the example
- The
routerflag on the IPv6 entry shows that the neighbour announced itself as a router. - The FAILED entry for 10.110.0.99 means ARP got no answer. Either the host is down, or it's in another VLAN than the one this host is in.
-sadds usage counters, which show when the entry was last used and confirmed.
Documented example, not captured output.
How it works at runtime
ARP / Neighbor Table is part of Linux Networking → ARP / Neighbor Table. Linux uses the neighbor subsystem for IPv4 ARP and IPv6 Neighbor Discovery; entries transition through NUD states and map next-hop IP addresses to link-layer reachability on a specific interface.
Topic-specific state model. Linux uses the neighbor subsystem for IPv4 ARP and IPv6 Neighbor Discovery; entries transition through NUD states and map next-hop IP addresses to link-layer reachability on a specific interface.
Interpretation rule. - Neighbor entry exists ≠ entry is reachable or current.
- STALE ≠ failed; it can be valid until reachability confirmation is needed.
- FAILED/INCOMPLETE ≠ remote host is necessarily down; VLAN/L2/interface issues can block resolution.
- Successful ARP/ND ≠ IP routing, firewall or application path works.
Quick reference
The neighbour table maps IPs to MAC addresses (ARP for IPv4, NDP for IPv6).
ip neigh show
ip neigh show dev eth0 | grep -E 'FAILED|INCOMPLETE'
ip neigh flush dev eth0
arping -I eth0 -c3 10.0.10.1 # test L2 reachability, detect duplicates (-D)
sysctl net.ipv4.neigh.default.gc_thresh3
States: REACHABLE, STALE, DELAY, PROBE, FAILED, INCOMPLETE, PERMANENT. Large L2 networks or container hosts can overflow the table ("neighbour table overflow" in dmesg) — raise gc_thresh1/2/3.
Limits and how it fails
Primary failure point. Neighbor resolution shows link-layer reachability for one next hop on one interface, but it does not show routed end-to-end reachability or application health.
ReferenceConfiguration & state1 section · depth on demand
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Networking → ARP / Neighbor Table. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/networking/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
ARP / Neighbor Table operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for ARP / Neighbor Table.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux uses the neighbor subsystem for IPv4 ARP and IPv6 Neighbor Discovery; entries transition through NUD states and map next-hop IP addresses to link-layer reachability on a specific interface. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + namespace + exact flow → identify configuration owner/renderer → identify ifindex/interface + topology → inspect link/carrier → inspect addresses → inspect neighbor resolution → reproduce route/rule lookup → verify VLAN/bond/bridge/MTU as relevant → inspect packets/socket → verify return path → repeat original workload. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | selected route/nexthop → neighbor lookup → solicitation → peer response → NUD state/MAC → L2 frame delivery → IP path → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Neighbor resolution proves link-layer reachability for one next hop on one interface; it does not prove routed end-to-end reachability or application health. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux networking evidence can establish this proof path: selected route/nexthop → neighbor lookup → solicitation → peer response → NUD state/MAC → L2 frame delivery → IP path → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. Neighbor resolution proves link-layer reachability for one next hop on one interface; it does not prove routed end-to-end reachability or application health. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: confirm namespace and configuration owner, inspect ifindex/link/address/neighbor/route state for the exact flow, verify L2/MTU construction and packet movement, then test the listening service and return path before making additional changes. | Continue to the next unresolved boundary while preserving the original test condition. |
ARP / Neighbor Table · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | ARP / Neighbor Table |
|---|---|
| Topic path | Linux Networking → ARP / Neighbor Table |
| Runtime state | Linux uses the neighbor subsystem for IPv4 ARP and IPv6 Neighbor Discovery; entries transition through NUD states and map next-hop IP addresses to link-layer reachability on a specific interface. |
| Fast checks | - Pin namespace, interface and exact next-hop IP whose L2 identity is required. - Inspect NUD state, MAC, timestamps and whether state changes during the test. - Capture ARP or ICMPv6 ND on the intended interface when resolution behavior is ambiguous. - After neighbor resolution succeeds, continue with route, firewall and service verification. |
| Verification chain | selected route/nexthop → neighbor lookup → solicitation → peer response → NUD state/MAC → L2 frame delivery → IP path → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Neighbor resolution proves link-layer reachability for one next hop on one interface; it does not prove routed end-to-end reachability or application health. Boundary chain: process/socket namespace → source/rule/FIB → neighbor → netfilter/eBPF/qdisc → virtual/physical device → peer → return → application. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |