Ken Thompson wrote:
>
> Is there a way to ask ping (or whatever) to return a list of addresses on
> your network?
> Example: M$ "find computer" in Network Neighborhood returns a list of systems
> on the network. I'd like to do the same from either a GUI or command line
> interface from my linux boxn...
Assuming all your computers are correctly configured (netmask), you can ping the
broadcast address like this:
$ ping 192.168.1.255
PING 192.168.1.255 (192.168.1.255): 56 octets data
64 octets from 192.168.1.100: icmp_seq=0 ttl=255 time=0.1 ms
64 octets from 192.168.1.101: icmp_seq=0 ttl=255 time=0.5 ms (DUP!)
64 octets from 192.168.1.102: icmp_seq=0 ttl=255 time=0.8 ms (DUP!)
You may have to let ping run for a short while if you have a lot of hosts 'cuz
you will create a "broadcast spike" which tends to lose some packets in certain
networks.
Ignore the DUP; that's expected in this case.
HTH,
Pierre