arping
arping
send ARP REQUEST to a neighbour host
Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] destination
-f : quit on first reply
-q : be quiet
-b : keep broadcasting, don't go unicast
-D : duplicate address detection mode
-U : Unsolicited ARP mode, update your neighbours
-A : ARP answer mode, update your neighbours
-V : print version and exit
-c count : how many packets to send
-w timeout : how long to wait for a reply
-I device : which ethernet device to use
-s source : source ip address
destination : ask for what ip address
3 ARP packets using eth0 to <IP>
arping -I eth0 -c 3 192.168.9.1
ARPING 192.168.9.1 from 192.168.9.12 wlan0
Unicast reply from 192.168.9.1 [C0:3E:0F:D2:24:DC] 2.679ms
Unicast reply from 192.168.9.1 [C0:3E:0F:D2:24:DC] 2.214ms
Unicast reply from 192.168.9.1 [C0:3E:0F:D2:24:DC] 2.013ms
Sent 3 probes (1 broadcast(s))
Received 3 response(s)
Howto force Devices to refresh Arp Cache Entry for a machine
# that will broadcast our source IP and direct it to the broadcast address (255.255.255.255)
arping -I wlan0 192.168.9.1 -b
ARPING 192.168.9.1 from 192.168.9.12 wlan0
Unicast reply from 192.168.9.1 [C0:3E:0F:D2:24:DC] 2.378ms
Unicast reply from 192.168.9.1 [C0:3E:0F:D2:24:DC] 2.033ms
Unicast reply from 192.168.9.1 [C0:3E:0F:D2:24:DC] 2.725ms
Gratuitous ARP
# 192.168.9.12 is your IP
arping -A -I wlan0 192.168.9.12
ARPING 192.168.9.12 from 192.168.9.12 wlan0