On Sun, 24 Mar 2002, Volkan Erdogan wrote:

> Hello,
> 
> Suppose there are 150 pc in a network and all of these pc use same subnet 
> mask.
> i.e: 1 pc>>>>125.125.125.2
>      2.pc>>>>125.125.125.5
>      3.pc>>>>125.125.125.7
>      .
>      .
>      .
>      150.pc>>>125.125.125.208
> Now I want to know which of these pc are alive.
> How can I do that using "ping"?
> thanks..

 Ping the broadcast address:

        [bill@pikachu bill]$ ping 194.42.226.175
        Do you want to ping broadcast? Then -b
        [bill@pikachu bill]$ ping -b 194.42.226.175
        WARNING: pinging broadcast address
        PING 194.42.226.175 (194.42.226.175) from 194.42.226.170 : 56(84) bytes of 
data.
        64 bytes from 194.42.226.170: icmp_seq=1 ttl=255 time=0.180 ms
        64 bytes from 194.42.226.171: icmp_seq=1 ttl=255 time=0.809 ms (DUP!)
        64 bytes from 194.42.226.170: icmp_seq=2 ttl=255 time=0.072 ms
        64 bytes from 194.42.226.171: icmp_seq=2 ttl=255 time=0.379 ms (DUP!)

        --- 194.42.226.175 ping statistics ---
        2 packets transmitted, 2 received, +2 duplicates, 0% loss, time 999ms
        rtt min/avg/max/mdev = 0.072/0.360/0.809/0.281 ms

 So you'd want to do "ping -b 125.125.125.255" or whatever the real
IP network number is.




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to