Mac OS Windows Windows Server

How to Perform Continuous Ping in Different Environments

For Windows: Continuous ping can be realised in the following ways. Open command Prompt and type the command ‘ping’ followed by the IP Address and followed by ‘-t’ flag

Ping -t 192.168.2.1 
ping 192.168.2.1 -t 

For Mac OSX: By default, this is continuous as shown below. Just type ping following by the IP or FQDN

Ping 192.168.2.1 or Ping google.com

Note: If this is also not continuous by default, simple run it this way for MacOSX

/sbin/ping 192.168.2.1

For Linux: This is also continuous by default. Simply type as shown below

ping 192.168.1.1 

High count rate can also be indicated for a long period of time. See example below. This example will ping  about 333 times.

ping 192.168.1.1 -c 333

If this continuous ping does not work by default, there is probably an alias for the ping command which is changing the way you invoke the ping utility.
Solution: Find where the ping command is using the command below.

which ping

Next call the ping program from the path and it should be continuous.

/bin/ping 192.168.2.1

For Juniper: This is by default as well. Simply run 

ping 192.168.2.1

For Cisco Devices: Ranging from ASA, Switches and Router, continuous ping is not possible but can be repeated as shown below

ping 192.168.2.1 repeat 333

If this repeat command does not work, simple enter the ping command and should the help function along side. 

Stopping and killing ping session is down as down below in most environments

ctrl + c
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x