1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/arping.md

30 lines
726 B
Markdown
Raw Normal View History

2019-04-09 00:23:22 +02:00
# arping
> Discover and probe hosts in a network using the ARP protocol.
2019-04-09 17:39:43 +02:00
> Useful for MAC address discovery.
> More information: <https://manned.org/arping>.
2019-04-09 00:23:22 +02: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 [f]inish after the first reply:
2019-04-09 00:23:22 +02:00
`arping -f {{host_ip}}`
- Ping a host a specific number ([c]ount) of times:
2019-04-09 00:23:22 +02:00
`arping -c {{count}} {{host_ip}}`
- Broadcast ARP request packets to update neighbours' ARP caches ([U]nsolicited ARP mode):
2019-04-09 00:23:22 +02:00
2019-04-09 17:39:43 +02:00
`arping -U {{ip_to_broadcast}}`
2019-04-09 00:23:22 +02:00
- [D]etect duplicated IP addresses in the network by sending ARP requests with a 3 second timeout:
2019-04-09 00:23:22 +02:00
2019-04-09 17:39:43 +02:00
`arping -D -w {{3}} {{ip_to_check}}`