Hit a ping to multiple IP the same segment in Windows


And when you verify that the server or router is alive, when you examine the IP that has not been used, it is very troublesome to run a ping to enter one by one 1 IP.

Using the for statement you can check whether there is a response sends a ping packet to a plurality of IP, such as ~ 254 in the command.