find local computers

Marty Landman MLandman at face2interface.com
Wed Mar 3 13:50:04 UTC 2004


At 09:39 PM 3/2/2004, Barry L. Kline wrote:

>Your network is probably:
>
>Network:  192.168.0.0
>Netmask: 255.255.255.0
>host addresses:  192.168.0.1 - 192.168.0.254
>broadcast address:  192.168.0.255

yes, except I don't know about broadcast addresses

$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
$


>Just issue:
>
>ping -c 10 -b 192.168.0.255

Apparently not. My rh box is not my gateway and it's the only one that 
responded

$ ping -c 1 -b 192.168.0.255
WARNING: pinging broadcast address
PING 192.168.0.255 (192.168.0.255) 56(84) bytes of data.
64 bytes from 192.168.0.160: icmp_seq=1 ttl=64 time=0.128 ms

--- 192.168.0.255 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.128/0.128/0.128/0.000 ms


Marty Landman   Face 2 Interface Inc.   845-679-9387
FormATable  DB: http://face2interface.com/Products/FormATable.shtml
Make a Website: http://face2interface.com/Home/Demo.shtml
Free Formmailer: http://face2interface.com/Products/Formal.shtml  





More information about the redhat-list mailing list