Specify the Number of Packets #Īs already mentioned, by default, ping will continue to send ICMP packages until it receives an interrupt signal. In the following sections, we’ll go over the most commonly used ping command options. This can be useful when using the ping utility in a shell script. Otherwise, it will exit with code 1 or 2. On success, the ping command exits with code 0. Some hosts may have a firewall that is blocking the ICMP traffic or set to not respond to ping requests. When this happens, it doesn’t always mean that the destination IP is not active. If ping does not return a reply, it means that the network communication is not established. If there is a packet loss, you can use the traceroute command to identify where the packet loss occurs. The packet loss means the data was dropped somewhere in the network, indicating an issue within the network. Once the command stops, it displays a statistic, including the percentage of packet loss. To stop the command, just hit the Ctrl+C key combination. The ping command will continue to send ICMP packages to the Destination IP address until it receives an interrupt. time=41.4 ms.īy default, the interval between sending a new packet is one second.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |