Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Could somebody explain what exactly this command means in relation to transmitting and receiving multicast traffic

route add -net netmask eth0
share|improve this question
up vote 3 down vote accepted

The "" is a reserved range of IPv4 addresses having special multicast meaning (IPv4 Multicast).

The command in itself just means that the multicast routing should go through the "eth0" interface.

share|improve this answer
Thanks, does that mean both incoming and outgoing traffic is directed through eth0? – smicjk Feb 13 '12 at 13:29
Only outgoing traffic would be affected by this routing. The incoming traffic will still come through your "external" interface as known by your ISP/provider. – Ouki Feb 13 '12 at 13:46
Thanks Ouki, I am on a Lan. My machine has two ethernet cards. IMy application both transmits and receives multicast data. Would this route command only allow the transmission of multicast on eth0? Would that also mean that I should receive multicast on both eth0 and eth1? – smicjk Feb 13 '12 at 15:35
Yes you will transmit only through eth0, and yes you might receive through both (depending on your Lan router configuration and how your machine hostname resolve from elsewhere on this Lan). – Ouki Feb 13 '12 at 15:47
Thanks Ouki, you've been a great help – smicjk Feb 13 '12 at 15:56

It was probably intended to mean "send all multicast through eth0", however is not the correct netmask for multicast. The correct netmask for multicast would have been This command specifies all addresses between and, however the multicast range is really only through The rest of the range specified here is the "Class E" addresses, which are "reserved for future/experimental use". Its unlikely that these addresses are being used, so there is probably no difference.

share|improve this answer
Note the OP corrected the netmask – Bryan Feb 8 at 12:22

Your Answer


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.