In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use the ping command in Linux". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to use the ping command in Linux.
The ping command is used to test the connectivity of the network between hosts. The execution of the ping instruction uses the ICMP transport protocol to send a message requesting a response, and if there is nothing wrong with the network function of the remote host, it will respond to the message, thus knowing that the host is operating normally.
How to use the ping command: the ping command is used to test connectivity with the target host. The common usage is as follows:
[root@localhost ~] $ping www.baidu.com # test the connectivity of the target host domain name [root@localhost ~] $ping 14.215.177.38 # Test the connectivity of the target host IP [root@localhost ~] $ping-c 5 www.baidu.com # specify the number of ping, if you do not specify that it will continue to ping [root@localhost ~] $ping-f www.baidu.com # flood ping That is, to ping as quickly as possible, which can be used to test the command parameters of packet loss rate:
-c # sets the number of times of ping. If it is not set, it will continue to ping until the end of pressing Ctrl + C-f # flood ping, that is, to ping as fast as possible, can be used to test the packet loss rate-I # set the interval of ping. For example, ping-I 0.5 www.baidu.com means ping every 0.5 seconds. If it is not set, the default is once a second-s # sets the size of the packet sent, and 56 bytes are sent by default. The maximum value can only be set to 65507 bytes for output details:
[root@localhost] $ping www.baidu.com PING www.a.shifen.com (14.215.177.38) 56 (84) bytes of data. The target host domain name and IP,56 of # ping represent the number of bytes sent per ping. The default is 56 bytes, and 84 is the ICMP header 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=54 time=3.83 ms # 64 bytes from. Indicates which domain name / IP message 64 bytes from 14.215.177.38 (14.215.177.38) is received: icmp_seq=2 ttl=54 time=3.85 ms # icmp_seq represents the ping sequence, starting with 1 If the number is not increasing sequentially, it means that 64 bytes from 14.215.177.38 (14.215.177.38) has been lost: icmp_seq=3 ttl=54 time=3.86 ms # ttl indicates survival time. Refer to "TTL explanation" below: 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=4 ttl=54 time=3.86 ms # time indicates response time 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=5 ttl=54 time=3.87 ms-www.a.shifen.com ping statistics-# shows the statistics of ping 5 packets transmitted, 5 received, 0 packet loss Number of packets sent out by time 4004ms #, number of packets returned, packet loss rate, elapsed time rtt min/avg/max/mdev = 3.837Accord 3.858Universe 3.879Universe 0.069 ms # rtt indicates round trip delay Here min/avg/max represents the minimum / average / maximum round-trip delay of a packet, while mdev indicates the degree of deviation from the average. The higher the value, the more unstable the network speed. # PS:www.a.shifen.com is the original domain name of Baidu. As for why this is displayed, please see: https://zhidao.baidu.com/question/16297333.html # TTL details: TTL (Time To Live) lifetime Indicates the maximum number of routers a packet can pass through before it is discarded. For each router that passes, the value of TTL is subtracted by one. As in the above information, ttl=54, means that after 64-54 million 10 routers, 64 is the default value; # the TTL value of Linux system defaults to 64 or 255 TTL value of Windows NT/2000/XP system defaults to 128 Magi TTL value of Windows 98 system defaults to 32 Magi TTL value of UNIX host defaults to 255 and above is all the contents of this article "how to use ping commands in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.