Re: [SLUG] Unknown command

From: Eben King (eben1@tampabay.rr.com)
Date: Sun Nov 06 2005 - 21:37:13 EST


On Sun, 6 Nov 2005, Kwan Lowe wrote:

> > Anyone know of a command that will cause other machines on a subnet to
> > echo back their IPs and names? Obviously, this wouldn't work if you had
> > to know the names of the machines first. So it would have to be like a
> > broadcast command that used ICMP or something to cause others to answer.
> > Anyone know of such a beast? Seems like I should know this, but I don't.
>
> You can do a broadcast ping.
>
> For a /24 network:
> ping -b 192.168.8.255
>
> Or /16, etc..
> ping -b 192.168.255.255

Not on all versions of ping, it seems:

,--
| [eben@pc eben]$ ping -b 192.168.1.255
| WARNING: pinging broadcast address
| PING 192.168.1.255 (192.168.1.255) from 192.168.1.11 : 56(84) bytes of data.
| 64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=0.039 ms
| 64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=0.046 ms
| 64 bytes from 192.168.1.11: icmp_seq=3 ttl=64 time=0.035 ms
| 64 bytes from 192.168.1.11: icmp_seq=4 ttl=64 time=0.045 ms
| 64 bytes from 192.168.1.11: icmp_seq=5 ttl=64 time=0.043 ms
(until I killed it)
| --- 192.168.1.255 ping statistics ---
| 5 packets transmitted, 5 received, 0% loss, time 3997ms
| rtt min/avg/max/mdev = 0.035/0.041/0.046/0.008 ms
'--

-- 
I firmly believed we should not march into Baghdad ...To occupy Iraq would
instantly shatter our coalition, turning the whole Arab world against us and
make a broken tyrant, into a latter-day Arab hero assigning young soldiers
to a fruitless hunt for a securely entrenched dictator [.] - George Bush Sr.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:50:01 EDT