In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The editor would like to share with you the use of linux's arping command to send ARP request messages to neighboring hosts. I hope you will gain a lot after reading this article. Let's discuss it together.
The purpose of the arping command is to test the network by using arp packets and checking through the ping command. The arping command can test whether an ip address is already in use on the network, and can obtain more device information. The function is similar to ping.
Because the arping command is based on the ARP broadcast mechanism, the arping command can only test the connectivity of the network hosts in the same network segment or subnet, while the ping command is based on the ICMP protocol and can be routed, so the ping command can be used to test the network connectivity of hosts in any network segment.
Syntax format: arping [parameters]
Common parameters:
-A updates the ARP cache of neighboring hosts (
Use ARP reply packets instead of ARP request packets)-b only send MAC-level broadcasts-c stop the-D duplicate address detection mode (DAD) after sending a specified number of ARP request packets-f exit the command-h print help manual and exit-I specify the network interface-Q quiet mode of the ARP request message after the first reply confirms that the target is alive. No information is displayed-s specifies the source IP address where the ARP request packet is sent-U updates the ARP cache of the neighboring host
Reference example
Test the survival status of the target host:
[root@linuxcool] # arping-f 192.168.60.1ARPING 192.168.60.1 from 192.168.60.149 ens192Unicast reply from 192.168.60.1 [00:03:0F:81:6B:F1] 1.995msSent 1 probes (1 broadcast (s)) Received 1 response (s)
Send 3 (specified times) ARP request messages to the target host:
[root@linuxcool] # arping-c 3 192.168.60.1ARPING 192.168.60.1 from 192.168.60.149 ens192Unicast reply from 192.168.60.1 [00:03:0F:81:6B:F1] 1.813msUnicast reply from 192.168.60.1 [00:03:0F:81:6B:F1] 1.850msUnicast reply from 192.168.60.1 [00:03:0F:81:6B:F1] 1.816msSent 3 probes (1 broadcast (s)) Received 3 response (s)
Automatically exit the command after sending a specified number of ARP request messages using the specified network port:
[root@linuxcool] # arping-I ens192-c 2 192.168.60.1ARPING 192.168.60.1 from 192.168.60.149 ens192Unicast reply from 192.168.60.1 [00:03:0F:81:6B:F1] 1.861msUnicast reply from 192.168.60.1 [00:03:0F:81:6B:F1] 1.921msSent 2 probes (1 broadcast (s)) Received 2 response (s) has finished reading this article I believe you have a certain understanding of sending ARP request messages to neighboring hosts using linux's arping command. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.