Sorry, you have been blocked
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: 7a26c7aa2cb42deb • Your IP: Click to reveal 88.135.219.175 • Performance & security by Cloudflare
How to Use arping Command in Linux
Now, why would you need arping? Imagine you are working with a small office network. Using the classic ping command to ping hosts to verify their availability is very tempting, right? Well, if you are using the ICMP protocol, then you are actually performing ARP requests for probing devices in the network.
This is where the arping tool comes in. Like ping, arping pings network hosts using network layer ARP packets. This method is useful for hosts that do not respond to Layer 3 and Layer 4 ping requests.
This article shows you how to use arping command in Linux.
Arping in Linux
Among network admins, arping is a popular tool. However, it does not come included in the default set of tools offered by Linux. So, you will have to install arping manually.
Thankfully, arping is a popular tool. No matter what distro you are using, it should be available directly from the official package servers. Run the following command according to your distro.
For Debian/Ubuntu and derivatives, the net-tools package is necessary for the arp tool:
Использование утилиты arping
arping — утилита посылающая arp пакеты на указанный хост и отображающая ответы.
Выполняется от пользователя root, в Linux для этого из под обычного пользователя можно дописывать перед каждой командой sudo.
Приведу примеры выполнения arping.
arping MAC-адреса с указанием сетевого интерфейса через который будут идти пакеты:
Опишу возможные опции запуска:
—help (отображение расширенной справки по команде)
-h (отображение краткой справки)
-0 (используется для проверки связи с ip-адресом 0.0.0.0)
-a (звуковой пинг)
-A (при отправке использется ARP-ответ (ARP REPLY) вместо ARP-запроса (ARP REQUEST), ответы не ожидаются)
-b (отправляются только широковещательные пакеты, в отличии от обычного режима когда сначала идут широковещательные потом конкретно адресату)
-B (используется вместо указания адреса 255.255.255.255)
-c число (отсылает только указанное количество запросов)
-d (поиск дубликатов ответов)
-D (ответы отображаются в виде восклицательных знаков, а потерянные пакеты как точки)
-e (похоже на -a, но звуковой сигнал только когда нет ответа)
-i интерфейс (указывает какой сетевой интерфейс использовать)
-p (включение promiscious режима)
-q (не отображать сообщения, кроме сообщения об ошибках)
-r (Raw. сырой вывод)
-R (Raw. сырой вывод, может комбинироваться с -r)
-s MAC (указание мак-адреса источника. Возможно с этой опцией придется использовать -p)
-S IP (как -b и -0, но с адресом источника)
-t MAC (указание мак-адреса цели, при пинге IP адреса)
-T IP (указание целевого ip-адреса при пинге мк-адреса)
-u (отображение индекса отправленных и принятых пакетов index=received/sent)
-v (подробный вывод, отображается в два раза больше информации)
-w (время ожидания между ответами в микросекундах)
DESCRIPTION
Ping destination on device interface by ARP packets, using source address source.
arping supports IPv4 addresses only. For IPv6, see ndisc6(8).
OPTIONS
-c count
-I interface
-s source
-w deadline
-i interval
SEE ALSO
AUTHOR
arping was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
SECURITY
arping requires CAP_NET_RAW capability to be executed. It is not recommended to be used as set-uid root, because it allows user to modify ARP caches of neighbour hosts.
AVAILABILITY
arping is part of iputils package.
| iputils 20221126 |
Package name: core/iputils Version: 20221126-1 Upstream: http://www.skbuff.net/iputils/ Licenses: GPL Manuals: /listing/core/iputils/ Table of contents
Powered by archmanweb, using mandoc for the conversion of manual pages.
The website is available under the terms of the GPL-3.0 license, except for the contents of the manual pages, which have their own license specified in the corresponding Arch Linux package.