Open In App

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). 

Syntax:  

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

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

Options: 

Some useful flags are:  

Some useful file related to these data are: 

Article Tags :