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}}`
|
|
|
|
|
|
|
|
- Ping a host and stop at the first reply:
|
|
|
|
|
|
|
|
`arping -f {{host_ip}}`
|
|
|
|
|
|
|
|
- Ping a host a specific number of times:
|
|
|
|
|
|
|
|
`arping -c {{count}} {{host_ip}}`
|
|
|
|
|
|
|
|
- Broadcast ARP request packets to update neighbours' ARP caches:
|
|
|
|
|
2019-04-09 16:39:43 +01:00
|
|
|
`arping -U {{ip_to_broadcast}}`
|
2019-04-08 23:23:22 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Detect 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}}`
|