Maxwell Lol <(E-Mail Removed)> writes:
> (E-Mail Removed) (Mark Hobley) writes:
>
>> Maxwell Lol <(E-Mail Removed)> wrote:
>>
>>> ping -b 192.168.1.255 (or whatever the broadcast address)
>>
>> Hmmm, that sounded interesting, but I tried it here and absolutely nothing
>> replied.
>
> It worked for me. You might have to be superuser, and you have to get
> the broadcast address correct.
>
> As the manual page says
>
> Flood pinging is not recommended in general, and flood pinging the
> broadcast address should only be done under very controlled condi‐
> tions.
>
> So there may be a policy of some sort (in the source code?) to disable this.
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts -- if it's 0 you
respond to broadcast pings, if it's 1 you don't. By default (on my
debian boxes) it's 1.
So, depending on what the OP is really trying to do, this isn't
something he can rely on.