In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use the commonly used Linux command ping for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Linux commonly used command ping command is used to detect the host. The execution of the ping instruction will use the ICMP transport protocol to send a message requesting a response. If there is no problem with the network function of the remote host, it will respond to the information, so it is known that the host is operating normally.
Syntax ping [- dfnqrRv] [- c] [- I] [- I] [- l] [- p] [- s] [- t] [host name or IP address] parameter description:
-d uses the SO_DEBUG function of Socket.
-c sets the number of times the request response is completed.
-f limit test.
-I specifies the interval between sending and receiving messages.
-I sends out packets using the specified network interface.
-l sets the packet sent before the request information is sent.
-n outputs only numeric values.
-p sets the template style that fills the packet.
-Q does not show the execution of the instruction, except for the relevant information at the beginning and end.
-r ignores the normal Routing Table and sends the packet directly to the remote host.
-R records the routing process.
-s sets the size of the packet.
-t sets the size of the survival value TTL.
-v shows the execution of the instruction in detail.
-w quit after deadline seconds.
-W starts execution after waiting for timeout seconds.
Instance detects whether it is connected with the host
# ping www.runoob.com / / ping host PING aries.m.alikunlun.com (114.80.174.110) 56 (84) bytes of data. 64 bytes from 114.80.174.110: icmp_seq=1 ttl=64 time=0.025 ms 64 bytes from 114.80.174.110: icmp_seq=2 ttl=64 time=0.036 ms 64 bytes from 114.80.174.110: icmp_seq=3 ttl=64 time=0.034 ms 64 bytes from 114.80.174.110: icmp_seq=4 ttl=64 time=0.034 ms 64 bytes from 114.80.174.110: icmp_seq=5 ttl=64 time=0.028 ms 64 bytes from 114.80.174.110: icmp_seq=6 ttl=64 time=0.028 ms 64 bytes from 114.80 .174.110: icmp_seq=7 ttl=64 time=0.034 ms 64 bytes from 114.80.174.110: icmp_seq=8 ttl=64 time=0.034 ms 64 bytes from 114.80.174.110: icmp_seq=9 ttl=64 time=0.036 ms 64 bytes from 114.80.174.110: icmp_seq=10 ttl=64 time=0.041 ms-aries.m.alikunlun.com ping statistics-10 packets transmitted 30 received, 0% packet loss, time 29246ms rtt min/avg/max/mdev = 0.021, 0.035, 0.078, 0.011 ms / / the number of times Ctrl+C needs to be manually terminated to receive packets
# ping-c 2 www.runoob.com PING aries.m.alikunlun.com (114.80.174.120) 56 (84) bytes of data. 64 bytes from 114.80.174.120: icmp_seq=1 ttl=54 time=6.18 ms 64 bytes from 114.80.174.120: icmp_seq=2 ttl=54 time=15.4 ms-aries.m.alikunlun.com ping statistics-- 2 packets transmitted, 2 received, 0% packet loss, time 1016ms rtt min/avg/max/mdev = 6.185 packet loss 10.824 packet loss 15.464 ms / / after receiving two packets, automatically exit the use of multi-parameter
# ping-I 3-s 1024-t 255 g.cn / / ping host PING g.cn (203.208.37.104) 1024 (1052) bytes of data. 1032 bytes from bg-in-f104.1e100.net (203.208.37.104): icmp_seq=0 ttl=243 time=62.5 ms 1032 bytes from bg-in-f104.1e100.net (203.208.37.104): icmp_seq=1 ttl=243 time=63.9 ms 1032 bytes from bg-in-f104.1e100.net (203.208.37.104): icmp_seq=2 ttl=243 time=61.9 ms-g.cn ping statistics-3 packets transmitted, 3 received, 0 packet loss Time 6001ms rtt min/avg/max/mdev = 61.959 + 62.843 + Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
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.