ARP Linux Command

What is Linux arp Command?



The arp command displays the kernel's IPv4 network by manipulating neighbour cache and ARP cache in various ways. ARP is the abbreviation for Address Resolution Protocol, which is used to find the address of a network neighbor for a given IPv4 address. The "arp" command is primarily used to clear address mapping entry and manually setting up one. This command is also used in debugging purposes by taking a complete dump of the ARP cache.

The "arp" command can also be used to add entries to the ARP table, or to delete an entry from the table or to display the contents of the table. That is ARP command is used to add an address for which to proxy arp, delete an address from the arp table or view the arp table itself or to force a permament entry into the arp table. Here is an example of adding arp table entries with arp table:

#] arp -s -i eth3 -D eth3 pub


arp [-vn] [] [-i ] [-a] []
arp [-v] [-i ] -d [pub]
arp [-vnD] [] [-i ] -f []
arp [-v] [] [-i ] -s [temp]
arp [-v] [] [-i ] -Ds [netmask ] pub


-a display (all) hosts in alternative (BSD) style
-s, --set set a new ARP entry
-d, --delete delete a specified entry
-v, --verbose Tell the user what is going on by being verbose.
-n, --numeric shows numerical addresses instead of trying to determine symbolic host, port or user names.
-i, --device specify network interface (e.g. eth0)
-D, --use-device read <hwaddr> from given device
-A, -p, --protocol specify protocol family
-f, --file read new entries from file or from /etc/ethers


  1. To display network card and Ethernet connectivity:
    The above command will produce the below output:
    Address HWtype HWaddress Flags Mask Iface ether c4:a8:1d:7d:96:10 C wlan0

Ask Questions

Ask Question