arp command in Linux with examples

arp command manipulates the System’s ARP cache. It also allows a complete dump of the ARP cache. ARP stands for Address Resolution Protocol. The primary function of this protocol is to resolve the IP address of a system to its mac address, and hence it works between level 2(Data link layer) and level 3(Network layer).


arp [-v] [-i if] [-H type] -a [hostname]

Example: Here we created two machines with name machine1 and machine2 with IP address and


Some useful flags are:

Some useful file related to these data are:

Article Tags :