Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a server with multiple NICs on it. Each NIC is plugged into a different, isolated network that is serving multicast traffic. I have a program that listens to the multicast traffic on each of these networks. Right now I have to specify in my program which interface to use as part of the multicast join. This is not a big deal, but is slightly inconvenient.

Is it possible to use routes to influence this process? Suppose I have two multicast groups as follows:

A. 224.1.2.32  39312 eth1
B. 224.1.11.19 59328 eth2

Can I add two routes to the routing table such that when I join the multicast group from my code the kernel knows to send group A's join out eth1 and group B's join out eth2? I've been unable to get it to behave the way I want. Adding various routes seems to not affect this process, and the only way I've found to be able to influence which interface is chosen is to specify it in code as part of the multicast_request data structure.

share|improve this question

1 Answer 1

I would guess that you probably need to look at installing a routing daemon to enable multicast routing and group management. I haven't had an opportunity to really play with it much. I did have to setup Xorp to get some multicast features of a VOIP system to work.

share|improve this answer

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.