arping(8)

NAME
arping - sends arp and/or ip pings to a given host

SYNOPSIS
arping [-hqvrRd0bp] [-S host/ip] [-s MAC] [-t MAC] [-c count] [-i interface] <host | -B>

DESCRIPTION
The arping utility sends ARP and/or ICMP requests to the specified host and displays the replies. The host may be specified by its hostname, its IP address, or its MAC address.

One request is sent each second.

OPTIONS

-h  Displays a help message and exits.

-q  Does not display messages, except error messages.

-v  Verbose output. Use twice for more messages.

-r  Raw output: only the MAC/IP address is displayed for each reply.

-R  Raw output: Like -r but shows "the other one", can be combined with -r.

-d  Find duplicate replies.

-B  Use instead of host if you want to address 255.255.255.255.

-0  Use this option to ping with source IP address 0.0.0.0. Use this when you haven't configured your interface yet. Note that this may get the MAC-ping unanswered. This is an alias for -S 0.0.0.0.

-b  Like -0 but source broadcast source address (255.255.255.255). Note that this may get the arping unanswered since it's not normal behavior for a host.

-S IP
    Like -b and -0 but with set source address. Note that this may get the arping unanswered if the target does not have routing to the IP. If you don't own the IP you are using, you may need to turn on promiscious mode on the interface (with -p). With this switch you can find out what IP-address a host has without taking an IP-address yourself.

    Example: To check the address of MAC-A, use knowledge of MAC-B and IP-B.

    $ arping -S <IP-B> -s <MAC-B> -p <MAC-A>

-p  Turn on promiscious mode on interface, use this if you don't "own" the MAC address you are using.

-s MAC
    Set source MAC address. You may need to use -p with this.

-t MAC
    Set target MAC address to use when pinging IP address.

-c count
    Only send count requests.

-i interface
    Use the specified interface.

BUGS

You have to use -B instead of arpinging 255.255.255.255, and -b instead of -S 255.255.255.255. This is libnets fault.

SEE ALSO

ping(8), arp(8), rarp(8)

AUTHOR

Arping was written by Marvin <marvin@rootbusters.net>.