Packet Inter-Network Grouper is a network utility, one of the
With the ping
command, we can troubleshoot our local and small network, and ascertain where exactly the fault is on the network. This can be achieved by sending a ping to the different devices on the network, using their IP address or Host-name address.
ping
and what exactly happens when we ping?ping
is a word of action. It is a command that uses the PING utility to instruct your
The ping process is just like screaming your name out to a friend, who is few blocks away, to confirm if they are at home. If they are, they will respond. The only difference here is that the message sent back by the receiver must contain the same content that was sent, i.e., the name echo message.
The structure of the
Now, let’s use an example to understand the ping
command better.
Let’s say that you wish to know its ping
command, by default, sends several echo requests, typically four.
The results of the different echo requests sent are displayed, showing whether the request received a successful reply message (that is not lost), how many bytes were received in response (normally 32 bytes), the
So, let’s take our little simple network, like the internet, and ping one of our remote hosts, the www.google.com server. We will go to our command prompt or terminal and enter:
ping www.google.com
The result we get will be as displayed below:
The process followed above is the same when pinging in a local network. The only condition is that the host sending the ping should be in the same inter-network as the receiving host.
These syntaxes are predominantly for Windows, with some variations for other OS.
-to
like ping -t www.google.com
. Use control+C
to quit.ping -a
to resolve to hostnames.-n
to change the default 4 pings to any specified number like this:
ping -n 8 www.google.com
. This will ping the google server eight times, rather than the default four times.ping -I 45 www.google.com
. This can be helpful if you want to know whether a link can be faster.-4
and -6
options will cause a change in the identifier section, which will cause the message to be an IPV4 or IPV6 type, respectively.I encourage you to try out these commands and learn what each really does and how they could help you solve your problems. I promise they’re harmless!
I hope this shot was helpful. Thank you for reading.