mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00
arping: add page
This commit is contained in:
parent
077eed47fd
commit
39d735eed7
1 changed files with 28 additions and 0 deletions
28
pages/common/arping.md
Normal file
28
pages/common/arping.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# arping
|
||||||
|
|
||||||
|
> Discover and probe hosts in a network using the ARP protocol.
|
||||||
|
> Useful for MAC addres discovery.
|
||||||
|
|
||||||
|
- 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:
|
||||||
|
|
||||||
|
`arping -U {{your_ip}}`
|
||||||
|
|
||||||
|
- Determine whether an IP address is already in use in the network by sending it ARP requests with a 3 seconds timeout:
|
||||||
|
|
||||||
|
`arping -D -f -w {{3}} {{target_ip}}`
|
Loading…
Add table
Reference in a new issue