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--
Most people do not understand the knowledge points of this article "how to use the ping command of the Linux system", so the editor summarizes the following, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use the ping command of the Linux system" article.
About ping: ping is a very powerful TCP/IP tool in the network. Its main functions are:
Used to detect the connectivity of the network and analyze the speed of the network
Get server IP according to domain name
Determine the operating system used by the other party and the number of packets passing through the router according to the TTL value returned by ping.
We usually use it to directly ping ip addresses to test network connectivity.
How to use the ping command in Linux system: there is a slight difference between ping under linux and ping under windows. Ping under linux is not automatically terminated. You need to press ctrl+c to terminate or use the parameter-c to specify the number of responses required to be completed.
1. Command format:
Ping [parameter] [hostname or IP address]
two。 Command function:
The ping command is used to determine the status of the network and external hosts; to track and isolate hardware and software problems; and to test, evaluate, and manage the network. If the host is running and connected to the network, it responds to the echo signal. Each echo request contains an Internet Protocol (IP) and ICMP header, followed by a tim structure and enough bytes to fill in the packet. By default, echo signal requests are sent continuously until an interrupt signal (Ctrl-C) is received.
The ping command sends a Datagram per second and prints a row of output for each received response. The ping command calculates statistics on signal round-trip time and packet loss, and displays a brief summary when complete. The ping command ends when the program times out or when a SIGINT signal is received. The Host parameter is either a valid hostname or an Internet address.
3. Command parameters:
-d uses the SO_DEBUG function of Socket.
-f limit test. Send a large number of network packets to a machine quickly and see its response.
-n outputs only numeric values.
-Q does not display any information about the delivery packet, only the final result.
-r ignores the normal Routing Table and sends the packet directly to the remote host. Usually check to see if there is something wrong with the local network interface.
-R records the routing process.
-v shows the execution of the instruction in detail.
-C number: stops after the specified number of packets are sent.
-I seconds: set a few seconds interval to send a network packet to a machine, the default value is once a second.
-I network interface: sends out packets using the specified network interface.
-l preload: sets the packet that is sent before the request information is sent.
-p template style: sets the template style that fills the packet.
-s bytes: specify the number of bytes of data to be sent, the default value is 56, plus 8 bytes of ICMP headers, a total of 64ICMP data bytes.
-t survival value: set the size of the survival value TTL.
The above is about the content of this article on "how to use ping commands in the Linux system". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please 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.