Linux: ARP Command

Note

The net-tools linux package is an old one, and provides a large number of standard commands:

  • arp
  • ifconfig
  • iptunnel
  • iwconfig
  • nameif
  • netstat

net-tools was deprecated in 2011. While is it still available it is advisable to move on to more modern commands.

ARP commands are useful for showing the ARP table in use by the OS. Certainly the ARP table will contain the MAC addresses of known network nodes.

ip n
ip n
ip n
ip n
Tip

n for neighbor


Install the ip command with:

dnf -y install iproute2
apt -y install iproute2
apk add iproute2
pacman -Syu iproute2