9

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?

Gilles 'SO- stop being evil''s user avatar
Gilles 'SO- stop being evil'
866k205 gold badges1.8k silver badges2.3k bronze badges
askedFeb 15, 2011 at 17:00
Jon Phenow's user avatar
1
  • Are you using ping -b?CommentedFeb 15, 2011 at 17:13

2 Answers2

12

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.

answeredFeb 15, 2011 at 20:26
HBlend's user avatar
3
  • Very nice, not sure how I would've found thatCommentedFeb 15, 2011 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.CommentedFeb 16, 2011 at 0:58
  • Oh I knew about the -b part, it was the option that needed changing, I use manuals quite often.CommentedFeb 16, 2011 at 16:38
6

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.

answeredFeb 15, 2011 at 17:30
BillThor's user avatar
4
  • That's sort of what we were figuring, I guess I wasn't sure it was default but it would make sense... doesanyone use broadcast messages anymore?CommentedFeb 15, 2011 at 21:17
  • Broadcast is so 1995. Multicast is what the cool kids are doing now.CommentedFeb 15, 2011 at 22:33
  • Haha yea our Network professor figured he'd dig way back into the ages of Networking.CommentedFeb 16, 2011 at 16:38
  • @LawrenceC Not 95, around 99 as I can remember (smurf)CommentedFeb 14, 2019 at 15:56

You mustlog in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.