ping and broadcasting

ping and broadcasting

Post by Maximilian Bisa » Thu, 10 Aug 1995 04:00:00



Hello!

I want to check which machines on a local network are active.
How can I make ping send a broadcast-message?

ping -c 1 137.226.146.255 says:
ping: sendto: Permission denied

thanx,
    Max

===================================================================
Maximilian Bisani - physics student - Technical University Aachen


SMail: Kastanienweg 25 - Zimmer 6321 - 52074 Aachen - Germany

 
 
 

ping and broadcasting

Post by Mitch DSou » Fri, 11 Aug 1995 04:00:00



-->Hello!
-->
-->I want to check which machines on a local network are active.
-->How can I make ping send a broadcast-message?
-->
-->ping -c 1 137.226.146.255 says:
-->ping: sendto: Permission denied

ICMP uses priviledged ports. Make sure ping is suid root.

Mitch

 
 
 

ping and broadcasting

Post by Douglas H. Quebbem » Sun, 13 Aug 1995 04:00:00



: -->Hello!
: -->
: -->I want to check which machines on a local network are active.
: -->How can I make ping send a broadcast-message?
: -->
: -->ping -c 1 137.226.146.255 says:
: -->ping: sendto: Permission denied

: ICMP uses priviledged ports. Make sure ping is suid root.

I've been having this same problem, and as you can see in this
short session excerpt, ping is indeed sui=root:

FullCircle:~# which ping
/bin/ping
FullCircle:~# cd /bin
FullCircle:/bin# ls ping -l
-r-sr-xr-x   1 root     bin         16388 May 10 21:48 ping*
FullCircle:/bin# ping 191.72.1.255
PING 191.72.1.255 (191.72.1.255): 56 data bytes
ping: sendto: Permission denied
ping: wrote 191.72.1.255 64 chars, ret=-1
ping: sendto: Permission denied
ping: wrote 191.72.1.255 64 chars, ret=-1
ping: sendto: Permission denied
ping: wrote 191.72.1.255 64 chars, ret=-1

--- 191.72.1.255 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
FullCircle:/bin#

So, like, what's going on here? Is this an operation that
doesn't work because it's not supposed to (in other words,
is pinging a broadcast operation not supposed to work by
definition)?

--
--

"The large print giveth, and the small print taketh away."  -Tom Waits

 
 
 

1. "ping"ing broadcast under OSE 5.0

  I just dropped a 3Com Etherlink II into my 90MHz Pentium box running
OSE 5.0, and did the basic network configuration, then checked things
like /etc/hosts to see that everything looked normal.  So far, so good.

  I then proceeded to run my standard tests to check the configuration:

# ping 127.0.0.1        (fine)
# ping localhost        (fine)
# ping <hostname> (fine)
# ping 192.0.0.1        (the IP address I gave it ... fine)
# ping 192.0.0.255      (NOTHING!)

  I made the same selections for broadcast and netmask I've made
before under 3.2v4.2 (many! times), so I'm confused why the standard
broadcast does not work.  Is there something about networking under
OSE 5.0 I've missed?  thanks.

rday

2. Problem with RedHat Linux, linuxconf

3. disable broadcast ping reply

4. 60 GB IPOD deal found

5. broadcast ping doesn't work

6. nohup & rsh issue

7. PING: Linux doesn't respond to ARP broadcast

8. How to restart apache webserver on suse linux 7.1?

9. ICMP Ping to broadcast broken ?

10. Broadcast ping

11. Can't do broadcast ping over PPP (RAS)

12. DUP! replies to broadcast pings

13. No response to broadcast ping