From: Jose Luis Domingo Lopez <linux-kernel@24x7linux.com>
To: John Pesce <pescej@sprl.db.erau.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to make Linux route multicast traffic bi-directionly between multible subnets
Date: Mon, 19 Apr 2004 22:07:40 +0200 [thread overview]
Message-ID: <20040419200739.GA3020@localhost> (raw)
In-Reply-To: <1082389059.1982.15.camel@inferno>
On Monday, 19 April 2004, at 11:37:39 -0400,
John Pesce wrote:
> The only thing I have been able to do is set a default multicast route
> to subnet A. This forwards traffic incoming from B and C to A, but what
> about the other ways?
>
With that default route for multicast traffic the only thing you do is
route through some interface the multicast traffic for which there are
no more specific routes.
Multicast routing is in some ways different from unicast routing: with
multicast you must be able to send several copies on the original
incoming packet through one or more outgoing interfaces, namely those
that lead to hosts and networks somewhat "subscribed" to a multicast
group (the destination multicast IP in the IP packet).
As far as I know, there is no userspace tool (not saying that you can't
write one :) to insert multicast routes directly in the kernel routing
table (at least, I was not able to do anything with "ip").
> I see on bootup a kernel message about 0.96 PIM-SM. Can I somehow use
> that?
>
The only way I know to make a Linux box route multicast traffic "as
expected" is to configure a multicast routing daemon like "mrouted". It
should listen on all interfaces declared as multicast, see IGMP packets
coming from hosts interested in some multicast groups (interested in
receiving traffic to some multicast IP addresses) and route incoming
multicast packets accordingly (sending several copies of the same packet
through all needed interfaces).
The message you see in the kernel boot log refers to one of the
protocols used for dynamic multicast routing, namely PIM-SM (Protocol
Independent Multicast, Sparse Mode). This protocol is implemented by
"mrouted", but seems to need some specific support from kernel space to
work properly (other dynamic multicast routing protocols implemented by
"mrouted" don't seem to show this requirment).
So, to summarize, your best bet is to get "mrouted" or something like
that, and have a look at the documentation bundled. You are quite right,
multicast routing documentation for Linux seems to be quite old, rather
short, and maybe out of date.
Greetings.
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.5)
next prev parent reply other threads:[~2004-04-19 20:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-19 15:37 How to make Linux route multicast traffic bi-directionly between multible subnets John Pesce
2004-04-19 20:07 ` Jose Luis Domingo Lopez [this message]
2004-04-19 20:15 ` Kevin P. Fleming
2004-04-19 21:34 ` John Pesce
2004-04-19 22:16 ` Jose Luis Domingo Lopez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040419200739.GA3020@localhost \
--to=linux-kernel@24x7linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pescej@sprl.db.erau.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox