About 5 instances of Ping tools

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Five examples of the use of Ping tools






  

What is the Ping tool

In the stories about Ping tools intuitive examples of the use of, first, let me introduce this command line tool and purpose. Ping tools are usually used to test a host in the Internet Protocol (IP) accessibility within the network. Its name is derived from the active sonar method -- under water to create a pulse of sound signal (Ping) and return signal interception surrounding objects. This method also gives us a vivid description of the working principle of Ping network tool. The Ping tool on a host transmits a response request and waits for the ICMP response.

Some examples in practice of Ping tools:

Query the IP address of the host

Sometimes you need to be a host IP address, as shown in figure 1. Only need to follow behind type the ping command to check the host name.

ping www.omgubuntu.com

Version information is the use of Ping tools

Version information using the -V option can be used to query you have Ping tools. Type the following command display version information is the use of Ping tools.

ping -V

As you can see from figure two, I'm using is"ping utility,iputils-sss20101006"

Automatic exit Ping

When you use the 'Ping host' command Ping a machine, Ping can't stop, you must press CTRL+ C exit, or you can use the -c (count) specifies packets sent. Use the -c option, when the network administrator (in fact, ordinary users can also send out) after a specified number of packets, without the need to press CTRL+ C, ping process will automatically stop.

ping -c 13 127.0.0.1

Send the above command 13 bags to my local machine.


As you see in Figure three, I didn't press CTRL+ C, Ping automatically withdrawn from the.

The time interval between the specified data packet

You know every Ping seconds to transmit a packet? Do you like fast or slow down a bit? Use the -i option to specify the time interval between the package. Use the following commands to send a quick or slow sending packets.

Every 0.13 seconds to send a packet

ping -i 0.13

Every 13 seconds to send a packet

ping -i 13

Combined with the -i and -c options

ping -c 13 -i 3

Spent a total of 39 seconds to send 13 packets, the packet is 3 seconds time interval.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Eva at December 17, 2013 - 6:01 AM