HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

arping — Discover and probe hosts in a network using the ARP protocol. Useful for MAC address discovery. More

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandnetworkcliprobehostsarpingdiscover

Problem

How to use the arping command: Discover and probe hosts in a network using the ARP protocol. Useful for MAC address discovery. More information: <https://manned.org/arping>.

Solution

arping — Discover and probe hosts in a network using the ARP protocol. Useful for MAC address discovery. More information: <https://manned.org/arping>.

Ping a host by ARP request packets:
arping {{host_ip}}


Ping a host on a specific [I]nterface:
arping -I {{interface}} {{host_ip}}


Ping a host and [f]inish after the first reply:
arping -f {{host_ip}}


Ping a host a specific number ([c]ount) of times:
arping -c {{count}} {{host_ip}}


Broadcast ARP request packets to update neighbours' ARP caches ([U]nsolicited ARP mode):
arping -U {{ip_to_broadcast}}


[D]etect duplicated IP addresses in the network by sending ARP requests with a 3 second timeout:
arping -D -w {{3}} {{ip_to_check}}

Code Snippets

Ping a host by ARP request packets

arping {{host_ip}}

Ping a host on a specific [I]nterface

arping -I {{interface}} {{host_ip}}

Ping a host and [f]inish after the first reply

arping -f {{host_ip}}

Ping a host a specific number ([c]ount) of times

arping -c {{count}} {{host_ip}}

Broadcast ARP request packets to update neighbours' ARP caches ([U]nsolicited ARP mode)

arping -U {{ip_to_broadcast}}

Context

tldr-pages: common/arping

Revisions (0)

No revisions yet.