The Address Resolution Protocol (ARP) maps dynamic IP addresses to physical MAC addresses on a local Ethernet or Wi-Fi network. System administrators and network engineers traditionally use the arp command to inspect and modify local ARP cache tables. However, in modern minimal Linux installations, lightweight container base images (such as Ubuntu, Debian, or Alpine), and cloud instances, attempting to execute the utility triggers: bash: arp: command not found. Because legacy networking utilities have been deprecated in favour of modern iproute2 packages, the command is omitted by default.
Use the Modern ip neighbour Command (No Installation Required)
The modern, standard replacement for the legacy arp command is already built directly into modern Linux systems via iproute2:
- To view the current local ARP cache table:
ip neigh show - To view entries for a specific network interface:
ip neigh show dev eth0 - To manually add a static ARP entry:
sudo ip neigh add 192.168.1.50 lladdr 00:11:22:33:44:55 dev eth0 - To flush the entire ARP table cache:
sudo ip neigh flush all
Install net-tools on Debian, Ubuntu, and Linux Mint
If legacy automation scripts strictly require the traditional arp binary:
- Update your local APT package database:
sudo apt update - Install the
net-toolspackage:sudo apt install -y net-tools - Verify the command is now executable:
arp -a
Install net-tools on RHEL, CentOS, Rocky Linux, and Fedora
On Red Hat enterprise distributions, the utility is available through standard package managers:
- On Fedora, Rocky Linux, AlmaLinux, or RHEL:
sudo dnf install -y net-tools - On older CentOS 7 installations:
sudo yum install -y net-tools - Confirm binary availability:
which arp
Install net-tools in Minimal Alpine Linux Containers
Alpine Linux containers include a limited BusyBox version of ARP, but the full package can be installed via APK:
- Update the package index:
apk update - Install the standalone package:
apk add net-tools - In automated Dockerfiles, append the package to maintain legacy script compatibility:
RUN apk add --no-cache net-tools
Adopting modern ip neighbour syntax or installing net-tools resolves the “arp command not found” error across minimal Linux systems.