ARP Linux Command
What is Linux arp Command?
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 192.168.100.17 -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
||display (all) hosts in alternative (BSD) style|
||set a new ARP entry
||delete a specified entry
||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.
||specify network interface (e.g. eth0)
||read <hwaddr> from given device
|-A, -p, --protocol
||specify protocol family
||read new entries from file or from /etc/ethers
- To display network card and Ethernet connectivity:
arpThe above command will produce the below output:
Address HWtype HWaddress Flags Mask Iface
192.168.0.1 ether c4:a8:1d:7d:96:10 C wlan0