Arping Command Tutorial With Examples For Linux
There are a lot of tools for network trouble shooting and debugging. Arping is one of them which only pings same network hosts. So what makes arping special is it uses network layer arp packets. This works on mac protocol. It is useful especially to find hosts those do not responds layer 3 and layer 4 ping requests.
$ sudo apt install arping -y
Help is simple as the arping tool.
$ arping -h
We will use arping command without providing any option. We will just provide the destination host IP address.
$ sudo arping 192.168.122.1
We can set ping request count with
-c option. In the example we will set ping packet count to
$ sudo arping -c 2 192.168.122.1
Set Source Address
Source mac address can be set with
-s option. In the example we will set
aa:bb:cc:dd:ee:ff as source mac address
$ sudo arping -s aa:bb:cc:dd:ee:ff 192.168.122.1
Find Duplicate Replies
Arping has a very beautiful security feature which will find duplicate arp addresses. We will use
$ sudo arping -d