Using the arping utility

arping – a utility that sends arp packets to a specified host and displays responses.
It is executed from the root user, in Linux, for this, from under a regular user, you can append before each sudo command.

I will give examples of arping.

arping IPs:

sudo arping

arping MAC addresses indicating the network interface through which packets will go:

sudo arping -i eth0 00:01:02:33:04:50

I will describe the possible launch options:
–help (display extended help for the command)
-h (display a quick reference)
-0 (used to verify communication with ip address
-a (sound ping)
-A (when sending, an ARP response (ARP REPLY) is used instead of an ARP request (ARP REQUEST), responses are not expected)
-b (only broadcast packets are sent, in contrast to the usual mode, when broadcasts go to the addressee first)
-B (used instead of specifying the address
-c number (sends only the specified number of requests)
-d (search for duplicate answers)
-D (responses are displayed as exclamation points, and lost packets as dots)
-e (similar to -a, but only beeps when there is no answer)
-i interface (indicates which network interface to use)
-p (enable promiscious mode)
-q (do not display messages except error messages)
-r (Raw. raw output)
-R (Raw. Raw output, can be combined with -r)
-s MAC (specifying the source mac address. You may have to use -p with this option)
-S IP (like -b and -0, but with source address)
-t MAC (specifying the target mac address when pinging an IP address)
-T IP (specify the destination ip address when ping the m-address)
-u (display the index of sent and received packets index=received/sent)
-v (verbose output, twice as much information is displayed)
-w (timeout between responses in microseconds)

Leave a comment

Leave a Reply