Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am attempting to get multicast running on a couple of RHEL 5.4 test boxes. I have gone through the How-To at TLDP. I added a route
Code:
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
I added the following to /usr/lib/syslinux/com32/include/netinet/in.h
Code:
struct ip_mreq
{
struct in_addr imr_multiaddr; /* IP multicast address of group */
struct in_addr imr_interface; /* local IP address of interface */
};
Is that all that needs to be done for a app running on these machines to use multicast?
Is there a way I can test that multicast is functioning on these machines? Because if I issue the following neither of these 2 machines respond.
Sorry, I wasn't quite sure from what perspective you were doing things.
I was attempting to make sure that the interfaces are active, have
viable configurations, are multi-cast enabled, that the routing is
applicable, and that each machine is a member of the same multi-cast
group.
For that, you need to run those three commands on each machine.
Can the two machines communicate if you don't try to use multi-cast?
For example, can you ping each machine from the other? Are they
directly connected to each other, or connected through other
hardware? If there's other hardware, what is that hardware?
Is there a firewall between the machines? Are there any iptables
or ipchains rules on either machine, or something between them,
that could be causing a problem?
Some devices ( switches, gateways, etc. ) are configuring by default to not allow anything through that doesn't have an IP address that is intended for a single host. Hopefully, each of these RHEL machines is the only machine on it's link to the switch. If so, then when you ping the multicast address, how does the behavior of the lights for those links on the switch, differ from the behavior when you ping the specific IP address of the other machine? Does it seem like the switch is receiving the ping for the multi-cast address? Does it seem like the switch is passing on the multi-cast ping to the link connected to the other machine? Also, you might try the ping of the multicast address, with a higher limit for the TTL, or none if the machines are currently isolated from the Internet.
When I issue a ping –t 1 –c 2 224.0.0.1 I get responses back from other devises, so I assume it’s not the switch.
I will check the link status when I ping a multi cast address.
So generally speaking is the only 2 things that need to be done is add the route and add what I have added to /usr/lib/syslinux/com32/include/netinet/in.h ?
I had hoped someone who knows RHEL specific multi-cast configuration would have helped out. I've been trying to help you trouble shoot multi-cast on a general basis because no one with RHEL specific knowledge has, so far. However, on the distro I'm using, I never had to do anything to any headers to get multi-cast working.
I just need to make sure that the interfaces are active, have viable configurations, are multi-cast enabled, that the routing is applicable, that each machine is a member of the same multi-cast group, that there are no iptables rules preventing communication, and that no active device between them is preventing communication. The output of the commands I asked you to run, seem to confirm that you've done that, apart from iptables. I thought you verbally confirmed that there are no iptables rules on the two machines that would prevent communication between them.
Since you got responses from other devices plural,it sounds like either your switch will forward multi-cast traffic, or it doesn't know the packets are multi-cast traffic. In fact, it sounds like you have multi-cast working if you got responses from more than one device for a single ping. So if the machine you want to respond, still isn't, it seems like it's some other problem. But if the switch does not know that it's multi-cast traffic, if you did the ping before everything was fully configured and other machines responded, the switch might have stopped sending packets to the devices that didn't response. If it's a type of switch you can configure, you could check the configuration, etc. If not, about the only further suggestion I have is, power the switch down for perhaps 10 or more seconds and try the ping again after you turn on the switch.
You are adding to a 2 year old thread, so don't expect the same users to notice. Please repost your question in a new thread and incorporate the items from this thread that you have tried. I'm going to close this thread so people don't report your new thread as a duplicate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.