How to Fix bash arp command not found in Minimal Linux

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:

  1. To view the current local ARP cache table:
    ip neigh show
  2. To view entries for a specific network interface:
    ip neigh show dev eth0
  3. To manually add a static ARP entry:
    sudo ip neigh add 192.168.1.50 lladdr 00:11:22:33:44:55 dev eth0
  4. 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:

  1. Update your local APT package database:
    sudo apt update
  2. Install the net-tools package:
    sudo apt install -y net-tools
  3. 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:

  1. On Fedora, Rocky Linux, AlmaLinux, or RHEL:
    sudo dnf install -y net-tools
  2. On older CentOS 7 installations:
    sudo yum install -y net-tools
  3. 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:

  1. Update the package index:
    apk update
  2. Install the standalone package:
    apk add net-tools
  3. 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.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.