The ping command is at hand software command to temporarily check community connections. It sends a packet of knowledge to a selected IP deal with or hostname and displays how lengthy it took to transmit that knowledge with severeal further reaction data.
Basic syntax for
Specify the choice of packets
ping -c [number] [IP-Address]
-c method to have the ping command robotically prevent after a definite choice of packets were despatched.
Instance: Let’s prevent sending packets after 5 replies. And specifying 127.0.0.1 because the IP deal with
Test Localhost community
In the event you’re having hassle connecting to a far off pc or web site, ping the localhost to be sure you’re attached.
Instance: Let’s sort this command to check the community connection.
Ship pings just for a restricted time period
ping -i [number] [IP-Address]
-i possibility units the timeout period in seconds prior to each and every packet is shipped.
Instance: Sending ICMP packets with an period of five seconds to the IP deal with 127.0.0.1.
Flood ping to focus on host
ping -f [IP-address]
-f possibility is used to run the flood ping. This will likely let you check the efficiency of your community underneath heavy load.
Instance: Flood pinging IP deal with 127.0.0.1.
Trade ping packet measurement
ping -s [number] [IP-Address]
-s method to building up the default packet measurement, you’ll ship gentle and heavy packets.
Instance: Let’s building up the packet measurement to 1000 bytes and ship them to the IP deal with 127.0.0.1.
Show simplest the abstract traces
ping -q [IP-Address]
-q possibility outputs a unmarried line with the common ping data, adopted by means of the statistics.
Instance: Getting simplest abstract details about the IP deal with 127.0.0.1.
Set Time Restrict for receiving programs
ping -w [seconds] [IP-Address]
This feature stops receiving
ping output after a definite period of time.
Instance: Coming into the
ping -w 10 127.0.0.1 command to prevent printing
ping output after 10 seconds.