Ping Order in Linux


Ping Order in Linux
The ping command is one of the most used utilities for troubleshooting, screening, and identifying system connection problems.

Ping functions by giving several ICMP (Web controls content Protocol) Echo demand products to a particular destination IP from the system and waits for an answer. Once the location obtains the bundle, it will react straight back with an ICMP echo response.


Aided by the ping command, you can easily see whether a destination that is remote is energetic or sedentary. There are also the delay that is round-trip communicating with the destination and look whether there clearly was a packet reduction.

The ping electric are a right part associated with iputils (or iputils-ping) plan, and that’s pre-installed on almost all Linux distributions. ping is available on screens, macOS, and FreeBSD.

Making use of the Ping Demand
The syntax for your ping command is as uses:

To finest illustrate how to ping a server order operates let’s ping that will be google
The result shall look something like this:
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=53 time=40.2 ms
64 bytes from ( icmp_seq=2 ttl=53 time=41.8 ms
64 bytes from ( icmp_seq=3 ttl=53 time=47.4 ms
64 bytes from ( icmp_seq=4 ttl=53 time=41.4 ms
4 packages carried, 4 was given, 0% packet control, times 7ms
rtt min/avg/max/mdev = 40.163/42.700/47.408/2.790 ms
The ping order resolves the website name into an internet protocol address and initiate delivering ICMP solutions into the destination IP. A line that includes the following fields if the destination IP is reachable it will respond back and the ping command prints

The sheer number of facts bytes. The default is actually 56, which results in 64 ICMP data bytes – 64 bytes
The IP address regarding the destination – from (
The ICMP series numbers for each and every package. icmp_seq=1
The Time to reside. – ttl=53 – how can TTL perform?
The ping time, assessed in milliseconds that will be the round trip energy for all the package to attain the host, and also for the response to come back to the sender. – time=41.4 ms
By standard, the interval between sending a packet that is new one next.

The ping command will continue to send ICMP products on the resort ip until it receives an interrupt. To get rid of the order, simply strike the Ctrl+C secret combo.

When the command prevents, it shows a statistic like the percentage of package control. The packet control implies the data was fallen someplace in the community, showing an presssing issue inside the circle. When there is a packet control, you can use the traceroute demand to recognize where in actuality the package reduction happens.

If ping doesn’t return an answer, it means that the circle telecommunications is certainly not founded. At these times, it doesn’t constantly signify the resort internet protocol address isn’t energetic. A firewall may be had by some hosts that will be blocking the ICMP visitors or set never to respond to ping requests.

On achievement, the ping command exits with code 0. Otherwise it will leave with code 1 or 2. This might be helpful with all the ping utility in a cover software.

Inside the following areas, we’ll get across the most often put command that is ping.

Related posts