Ping Sweep in Command Prompt
Ping Sweep on Windows cmd prompt The following is a simple For loop which executes the ping command incrementally '%i' is the counter, starts at 1 incremented by 1 stops at 255. Add -w 100 to make it wait for 100 milliseconds C:\> FOR /L %i in (1,1,255) do @ping -n 1 10.10.10.%i -w 100 | find "Reply" /i Ping sweeps can by avoided by configuring Cisco ACL. Courtesy : http://en.wikiversity.org/wiki/Ping/Sweep