- Arping
arping is a computer program which is similar in function to
ping , but it operates usingAddress Resolution Protocol (ARP) instead ofInternet Control Message Protocol . As such, arping is only usable on the local network, and in some cases the response will be coming, not from the arpinged host, but rather from an intermediate system that engages inproxy ARP (such as arouter ).There are two arping implementations. One is part of Linux iproute2, is Linux-only, and cannot currently ask who has what MAC address. The other arping implementation by Thomas Habets useslibpcap and libnet to be platform independent, and works on lots of UNIX-based OSs and even Windows.Example arping (iputils version) session:
ARPING 192.168.39.120 from 192.168.39.1 eth0Unicast reply from 192.168.39.120 [00:01:80:38:F7:4C] 0.810msUnicast reply from 192.168.39.120 [00:01:80:38:F7:4C] 0.607msUnicast reply from 192.168.39.120 [00:01:80:38:F7:4C] 0.602msUnicast reply from 192.168.39.120 [00:01:80:38:F7:4C] 0.606msSent 4 probes (1 broadcast(s))Received 4 response(s)Arping from T.Habets: arping2 00:01:80:38:F7:4C arping2 192.168.39.120
Trying to ping a MAC address will use an ICMP packet, which not all hosts actually respond to.
ee also
*
Arpwatch External links
* [http://www.habets.pp.se/synscan/programs.php?prog=arping Arping (portable version)]
* [https://arco.esi.uclm.es/svn/public/misc/scapy/arping.py A fully functional arping implementation in 26 lines of Python code, using scapy]
*man|8|arping|Linux
Wikimedia Foundation. 2010.