Networking Forums

Networking Forums > Computer Networking > Linux Networking > Strange mrouted / kernel routing behaviour

Reply
Thread Tools Display Modes

Strange mrouted / kernel routing behaviour

 
 
Ralph B
Guest
Posts: n/a

 
      09-19-2007, 04:30 PM
I'm trying to modify mrouted to proxy IGMP joins from one interface to
another on GNU/Linux 2.4.31. The setup is roughly as follows (with
fictional and isolated networks):

hostA
|
eth1(1.1.1.1)
|
---(1.1/16)
|
eth1(1.1.1.2)
|
mrouter
|
eth0(1.2.1.1)
|
---(1.2/16)
|
eth0 (1.2.1.2)
|
hostB

The mrouted on "mrouter" is modified such that when a join from hostA
is received on eth1 ("RECV V2 member report" in tcpdump terms) it does
a mrouted/k_join() to setsockopt IP_ADD_MEMBERSHIP on the multicast
socket, with the source address set to 1.2.1.1 (i.e. mrouter's eth0).
This indeed causes mc joins to appear on eth0 of mrouter, but their
source address is set to 1.1.1.2 rather than 1.2.1.1 - i.e. they
appear to "come" from mrouter's eth1 rather than eth0.

Strangely, when the joins are sent from hostB then they also get the
source address of 1.1.1.2 when they are forwarded to hostA. It seems
that a "default" source address is being used, no matter was is
specified in the IP_ADD_MEMBERSHIP.

I've checked the kernel sources at http://lxr.linux.no/source and I
don't see any obvious reason why the source address of my
IP_ADD_MEMBERSHIP should not be respected. Am I missing some trick
here? Is this a known problem/feature? Any workaround.

All/any advice welcomed. Thanks.

 
Reply With Quote
 
 
 
 
Ralph B
Guest
Posts: n/a

 
      09-19-2007, 05:16 PM
Actually, I can very much simplify this question. Given the following
setup - WITHOUT any mrouted running:

|
eth1(1.1.1.2)
|
hostX
|
eth0(1.2.1.1)
|

If I use mtest / mrcv to do a join from hostX on 1.2.1.1, then I see
igmp v2 reports on eth0 but with a source address of 1.1.1.2 - ie.as
if they come from eth1.

What is going on here?

Note that if I do a join from hostX on 1.1.1.2 (i.e. eth1) then the
igmp v2 reports on eth1 also have a source adderss of 1.1.1.2 (i.e.
eth1).

I am very confused.

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ping behaviour Scooty Windows Networking 1 06-10-2008 07:42 AM
Strange behaviour of browser John Broadband 13 10-26-2007 02:32 PM
Strange ADSL behaviour relkeel Broadband 3 01-27-2007 04:48 PM
RH + 3 NICS Strange Behaviour John Miller Linux Networking 0 01-03-2005 09:52 PM
Strange behaviour Daniele Grassi Wireless Internet 0 10-14-2003 06:08 PM



1 2 3 4 5 6 7 8 9 10 11