Can't ping broadcast

12,899

Solution 1

echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts - as root.

You may need to also use the -b option with ping and it will most likely require root permissions.

Solution 2

Broadcast amplification was used to mount DOS (Denial of Service) attacks. As a result most IP stacks now turn off echo responses to broadcast ping. This is normal behavior now.

Share:
12,899

Related videos on Youtube

Jon Phenow
Author by

Jon Phenow

Updated on September 17, 2022

Comments

  • Jon Phenow
    Jon Phenow over 1 year

    We're running four computers connected to a hub (yes a hub not a switch) on Fedora 13. They were installed using images from a colleague that has recently left us to go back to school, they may have been set to somehow block the use of the broadcast, but we'd like to continue using this image. We've setup the static IPs for each computer using ifconfig (we've also tried ip addr add) to 10.0.1.11/24 through 10.0.1.14/24, using these settings we can't seem to ping the broadcast which is indeed set correctly to 10.0.1.255, using tcpdump we see nothing except outgoing ping requests from the computer that calls the ping request. Does anyone have any ideas or am I missing something entirely?

    • Admin
      Admin about 13 years
      Are you using ping -b?
  • Jon Phenow
    Jon Phenow about 13 years
    That's sort of what we were figuring, I guess I wasn't sure it was default but it would make sense... does anyone use broadcast messages anymore?
  • Jon Phenow
    Jon Phenow about 13 years
    Very nice, not sure how I would've found that
  • LawrenceC
    LawrenceC about 13 years
    Broadcast is so 1995. Multicast is what the cool kids are doing now.
  • Shawn J. Goff
    Shawn J. Goff about 13 years
    @jphenow - you find it like so: man ping Once inside the man program, do /broadcast. It jumps right to the relevant part.
  • Jon Phenow
    Jon Phenow about 13 years
    Oh I knew about the -b part, it was the option that needed changing, I use manuals quite often.
  • Jon Phenow
    Jon Phenow about 13 years
    Haha yea our Network professor figured he'd dig way back into the ages of Networking.
  • peterh
    peterh about 5 years
    @LawrenceC Not 95, around 99 as I can remember (smurf)