ip-neighbor
manages the ARP and NDP neighbor tables
TLDR
SYNOPSIS
ip neighbor [command] [options]
DESCRIPTION
ip neighbor manages the ARP (IPv4) and NDP (IPv6) neighbor tables. These tables map IP addresses to link-layer (MAC) addresses for hosts on directly connected networks.The neighbor cache is normally populated automatically through ARP/NDP protocols, but static entries can be added for hosts that don't respond to ARP or for security purposes.neighbor is the American spelling accepted by ip; neighbour is the equivalent British spelling, and both refer to the same object. The keyword can also be abbreviated to neigh or n.
PARAMETERS
show [dev DEVICE]
Display neighbor table entriesadd IP lladdr MAC dev DEVICE
Add a neighbor entrydelete IP dev DEVICE
Remove a neighbor entrychange IP lladdr MAC dev DEVICE
Modify existing entryreplace IP lladdr MAC dev DEVICE
Add or change entryflush dev DEVICE
Clear entries for a deviceget IP dev DEVICE
Lookup single entrynud STATE
Neighbor state: permanent, noarp, reachable, stale, none, incomplete, delay, probe, failed.proxy ADDR
Manage proxy ARP/NDP entries.to PREFIX
Filter entries by address prefix (used with show/flush).
CAVEATS
Modifying entries requires root privileges. Static entries may become stale if the actual MAC changes. IPv6 uses NDP instead of ARP but is managed through the same interface.
HISTORY
ip neighbor is part of iproute2 and replaces the older arp command from net-tools. It provides unified IPv4 and IPv6 neighbor management.
SEE ALSO
ip(8), ip-neighbour(8), arp(8), arping(8)
