LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2010, 02:05 PM   #1
saga35
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Configuring second interface with multicast problem - tried multiple OSs -


Hope someone can help, I've tried this on a Fedora, Centos and now on Ubuntu machine.

I need to configure one interface on 10.0.10 and one on 171.31.4. to receive a multicast stream from the VPN, but when I attempt configuring both with gateways I can't get traffic over both networks.

I have attempted both interfaces static, as well as attempting static and dhcp. I have this working on a Mac OS X server, so I know that all the networking for both LANs are fine.

In Mac OS X this seems to work just fine having two default gateways.

On Ubuntu - latest test - two default gateways and still no traffic over the 171 network.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
171.31.4.0 * 255.255.255.0 U 0 0 0 eth1
10.0.10.0 * 255.255.255.0 U 0 0 0 eth0
default 171.31.4.1 0.0.0.0 UG 100 0 0 eth1
default 10.0.10.1 0.0.0.0 UG 100 0 0 eth0

Fedora 12:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.31.4.0 * 255.255.255.0 U 1 0 0 eth1
10.0.10.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default 10.0.10.1 0.0.0.0 UG 0 0 0 eth0

When I do
route add default gw 172.31.4.1
I can get multicast but I lose the connection to the external network.

Any ideas for how to proceed in this would be appreciated!!
 
Old 10-18-2010, 03:01 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
http://kindlund.wordpress.com/2007/1...utes-in-linux/

See note about kernel.

http://eglug.org/node/2188
 
Old 11-16-2010, 11:54 AM   #3
saga35
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the tips

First flushed the routing table to get rid of all the previous junk - devils in the details. Solved this by creating ip tables for the two different IP access points, and did install iproute2.

Basically this is what I did, where OTHER is the 2nd internet connection
and COMCAST has internal IP, but provides the main connection out:

echo 1 COMCAST >> /etc/iproute2/rt_tables
echo 2 OTHER >> /etc/iproute2/rt_tables

ip route add default via 10.0.10.1 dev eth0 table COMCAST
ip rule add from 10.0.10.0/24 table COMCAST

ip route add default via x.x.x.1 dev eth1 table OTHER
ip rule add from x.x.x.0/24 table OTHER

ip rule add to x.x.x.0/24 table OTHER
ip rule add to 10.0.10.0/24 table COMCAST

ip route add default nexthop via 10.0.10.1 dev eth0 nexthop via x.x.x.1 dev eth1

Again, thanks for pointing me in the right direction!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multicast with more than one network interface eantoranz Linux - Networking 1 07-30-2010 02:19 PM
Problem receiving multicast on multiple interfaces. shahhe Linux - Networking 3 07-19-2010 09:10 AM
Combining multiple interfaces with multicast icedown Linux - Networking 1 04-03-2010 09:09 AM
How NET_TX_SOFTIRQ select network interface when multiple interface exits Mr.J Linux - Kernel 0 06-02-2009 11:17 AM
Problem assigning multiple aliases to one interface xxloaf Linux - Networking 3 05-08-2007 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration