Re: [SLUG] Unknown command

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Sun Nov 06 2005 - 21:56:46 EST


>> You can do a broadcast ping.
[snip]
>
> 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

Hmm.. It's possible that some of the hosts are set to not respond to broadcast
pings. On Linux there's a setting in /proc/net that toggles this:

   /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts

It's also possible that host based firewalls are preventing the response?

Another possibility besides your script may be to query the arp cache.

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan@digitalhermit.com
-----------------------------------------------------------------------
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:33 EDT