ip-neighbour
manages the ARP and NDP neighbour tables
TLDR
Display the neighbour/ARP table
SYNOPSIS
ip neighbour [command] [options]
DESCRIPTION
ip neighbour manages the ARP (IPv4) and NDP (IPv6) neighbour tables. These tables map IP addresses to link-layer (MAC) addresses for hosts on directly connected networks.
The neighbour 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.
PARAMETERS
show [dev DEVICE]
Display neighbour table entriesadd IP lladdr MAC dev DEVICE
Add a neighbour entrydelete IP dev DEVICE
Remove a neighbour 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
Neighbour state: permanent, noarp, reachable, stale, etc.
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 neighbour is part of iproute2 and replaces the older arp command from net-tools. It provides unified IPv4 and IPv6 neighbour management.
