CCNA 200-301

CCNP Enterprise

CCNP Security

CCIE Enterprise Lab

CCIE Security Lab

CCNP Service Provider

CCNP Data Center

CCNP Collaboration

CCIE DC Lab

The ping command is considered to be one of the most utilized utilities for troubleshooting, testing, as well as diagnosing network connectivity issues. Ping works by sending one or more Internet Control Message Protocol (ICMP) Echo Request would be packaging to a specified destination IP on the network and waits for a reply. When the destination would be receiving the package, it would be responding with an ICMP echo reply.

PING (Packet Internet Groper) command would be utilized for checking the network connectivity between the host as well as server/host. This command would be taking as input the IP address or the URL as well as sending a data packet to the specified address with the message “PING” as well as gaining a response from the server/host this time is recorded which would be known as latency. Fast ping low latency would be meaning a faster connection. Ping would be utilizing ICMP (Internet Control Message Protocol) for sending an ICMP echo message to the specified host if that host would be available then it sends ICMP to reply message. Ping would be generally measured in millisecond every modern operating system has this ping pre-installed.

How does ping work in Linux?
The Linux ping command would be a simple utility utilized for checking whether a network is available as well as if a host is reachable. With this command, you would be able to test if a server is up and running. It would be also helping you with troubleshooting various connectivity issues.

The ping command would be allowing you to:
· Testing internet connection.
· Checking if a remote machine would be online.
· Analyzing if there would be any network issues, like the dropped packages or high latency. When you would be trying to “ping” a remote host, your machine would be beginning sending ICMP echo requests as well as waits for a response. If the connection would be established, you would be receiving an echo reply for every request. The output for the ping command would be containing the amount of time it takes for every packet for reaching its destination and return.

The terminal would keep printing the responses until interrupted. After every session, there would be a few lines with ping statistics.

Now, let’s check out how to utilize the ping command, but before that, if you wish to acquire more knowledge about the Ping Command in Linux, you should check out the training courses which would be obtainable through the SPOTO Club.

How to Use the ping Command

The basic ping syntax would be including ping followed by a hostname, a name of a website, or the exact IP address.

ping [option] hostname or IP address

Hence, for checking whether a remote host is up, in this case, google.com, type in your terminal:

ping google.com

Press Ctrl + C on your keyboard for stopping the process.

ping google.com

1.from: The destination as well as its IP address. Note that the IP address might be different for a website that would be depending on your geographical location.
2.icmp_seq=1: The sequence number of each ICMP packet, which would be increased by one for every subsequent echo request.
3.ttl=52: The Time to Live value would be from 1 to 255. It would be representing the number of networks hops a packet could take before a router would be discarding it.
4.time=7.68 ms: The time it took a packet for reaching the destination as well as coming back to the source. Expressed in milliseconds.

Now, that you have gained certain knowledge and if you wish to acquire certain Linux Certifications, you should check out training courses offered by the SPOTO Club.

For more
Please follow and like us:
Last modified: November 5, 2021

Author

Comments

Write a Reply or Comment

Your email address will not be published.