PDA

View Full Version : [ubuntu] Multicast forwarding problems



nadavbitt
September 22nd, 2010, 07:39 AM
Hello all

My name is Nadav and I’m new to linux. I have installed Ubuntu desktop OS my PC, and I’m trying to enable multicast forwarding between two network interfaces. Each is connected to different LAN.

PC configuration

NIC 1 configuration:
Name: Eth0
IP: 192.168.0.1
Subnet: 255.255.255.0
Default gateway: Unspecified
NIC 2 configuration:
Name: Eth1
IP: 193.168.0.1
Subnet: 255.255.255.0
Default gateway: Unspecified

IP Forwarding is enabled: I’m able to send IP traffic between computers on both end, for example ping between PC 192.168.0.2 gets reply from PC 193.168.0.5
End station gateway is configured to be the Linux box IP.

I have also installed PIMD and SMCROUTE.

I have also added the following routes commands
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1

After doing all the above I still can’t send multicast traffic trough the linux box.
Using Wireshark I can see the multicast traffic is received by the Linux box but it is not being forward.

How do I configure the SMCROUTE or the PIMD to forward traffic between the two NIC’s?
Is there something I need to do with the IPTABLES?

Please if you can provide the commands that I need to add in order to send multicast traffic between two NIC’s

Beast regards Nadav

troglobit
November 21st, 2010, 12:49 AM
Hi Nadav, sorry for the late reply!

There are a couple of gotchas that you need to remember when routing. You already mentioned both the ip forwarding and routing, so you're obviously not new to networking. However, for multicast routing there are a couple of additional things to remember:


TTL. What's the TTL of your multicast data? You want it to be > 1 to be able to route more than one hop.
Static multicast routes are not really needed when you run pimd, remove them and try again.

If you run pimd (http://freshmeat.net/projects/pimd) (or mrouted (http://freshmeat.net/projects/mrouted), which is even easier) you usually don't need to do much, pimd/mrouted are enabled by default on all interfaces. As long as pimd receives an IGMP join (membership report) on the destination network the multicast group on the source network is forwarded.

I hope this helps!