Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
Are you using ping -b? –  TomasG Feb 15 '11 at 17:13

2 Answers 2

up vote 6 down vote accepted

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.

share|improve this answer
    
Very nice, not sure how I would've found that –  jphenow Feb 15 '11 at 21:17
    
@jphenow - you find it like so: man ping Once inside the man program, do /broadcast. It jumps right to the relevant part. –  Shawn J. Goff Feb 16 '11 at 0:58
    
Oh I knew about the -b part, it was the option that needed changing, I use manuals quite often. –  jphenow Feb 16 '11 at 16:38

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|improve this answer
    
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? –  jphenow Feb 15 '11 at 21:17
    
Broadcast is so 1995. Multicast is what the cool kids are doing now. –  ultrasawblade Feb 15 '11 at 22:33
    
Haha yea our Network professor figured he'd dig way back into the ages of Networking. –  jphenow Feb 16 '11 at 16:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.