From 39d735eed7511cb7ce8cd9e85895940084a79ab8 Mon Sep 17 00:00:00 2001 From: Marco Bonelli Date: Tue, 9 Apr 2019 00:23:22 +0200 Subject: [PATCH] arping: add page --- pages/common/arping.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/arping.md diff --git a/pages/common/arping.md b/pages/common/arping.md new file mode 100644 index 0000000000..0477b367a6 --- /dev/null +++ b/pages/common/arping.md @@ -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}}`