2019-04-08 23:23:22 +01:00
|
|
|
# arping
|
|
|
|
|
|
|
|
> Discover and probe hosts in a network using the ARP protocol.
|
2019-04-09 16:39:43 +01:00
|
|
|
> Useful for MAC address discovery.
|
2019-06-09 00:05:26 +01:00
|
|
|
> More information: <https://github.com/ThomasHabets/arping>.
|
2019-04-08 23:23:22 +01:00
|
|
|
|
|
|
|
- Ping a host by ARP request packets:
|
|
|
|
|
|
|
|
`arping {{host_ip}}`
|
|
|
|
|
|
|
|
- Ping a host on a specific interface:
|
|
|
|
|
|
|
|
`arping -I {{interface}} {{host_ip}}`
|
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- Ping a host and [f]inish after the first reply:
|
2019-04-08 23:23:22 +01:00
|
|
|
|
|
|
|
`arping -f {{host_ip}}`
|
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- Ping a host a specific number ([c]ount) of times:
|
2019-04-08 23:23:22 +01:00
|
|
|
|
|
|
|
`arping -c {{count}} {{host_ip}}`
|
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- Broadcast ARP request packets to update neighbours' ARP caches ([U]nsolicited ARP mode):
|
2019-04-08 23:23:22 +01:00
|
|
|
|
2019-04-09 16:39:43 +01:00
|
|
|
`arping -U {{ip_to_broadcast}}`
|
2019-04-08 23:23:22 +01:00
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- [D]etect duplicated IP addresses in the network by sending ARP requests with a 3 second timeout:
|
2019-04-08 23:23:22 +01:00
|
|
|
|
2019-04-09 16:39:43 +01:00
|
|
|
`arping -D -w {{3}} {{ip_to_check}}`
|