Active Topics

 


Reply
Thread Tools
Posts: 22 | Thanked: 1 time | Joined on Dec 2007
#1
Hi,

I really just need an example of a ping command set dont really care which form of ping is used, e.g. hping3 or ping. I would just like to know how to ping on an interval say 192.168.0.1 to say 192.168.0.255.

I saw this, http://maemo.org/development/documen...an_pages/ping/,

just confused me

tried this and eh
for i in {1..254}; do ping -c1 192.168.1.$i; done

tried this
ping -g 192.168.0.1 192.168.0.255

just need a little example usually dont understand command code till it thrown at me
 
Posts: 3 | Thanked: 9 times | Joined on Dec 2008
#2
Try this as root

for i in $(seq 1 1 254); do ping -c1 192.168.1.$i; done
 

The Following User Says Thank You to MalamiR For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 11:43.