LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 03-14-2013, 07:13 PM   #1
smoyse
LQ Newbie
 
Registered: Aug 2003
Location: Newcastle, Australia
Distribution: RedHat
Posts: 6

Rep: Reputation: 0
Network routing difficulties with 2 NICs


I am having trouble with routing and two network cards.

My set up is as follows

OS Fedora 17 fully patched.

eth2:
DHCP Fixed IP.
Controlled by NetworkManager
This is the Primary NIC

eth1: -> br0:
DHCP Floating IP
Controlled by network service
This NIC is bridged, and used by a virtual machine.

When my system starts up the routing table looks like this:
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.61.106.30    0.0.0.0         UG    0      0        0 eth2
10.61.106.0     0.0.0.0         255.255.254.0   U     0      0        0 eth2
10.61.106.0     0.0.0.0         255.255.254.0   U     0      0        0 br0
169.254.0.0     0.0.0.0         255.255.0.0     U     1004   0        0 br0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
After disconnecting from a VPN it looks like this
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.61.106.30    0.0.0.0         UG    0      0        0 eth2
10.61.106.0     0.0.0.0         255.255.254.0   U     0      0        0 br0
10.61.106.0     0.0.0.0         255.255.254.0   U     0      0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     1004   0        0 br0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
At this point I have lost internet connectivity, though I can still connect to the LAN

If I now add a route:route add -net 10.61.106.0/24 eth2, my internet connectivity is restored, and the new routing table looks like so:
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.61.106.30    0.0.0.0         UG    0      0        0 eth2
10.61.106.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
10.61.106.0     0.0.0.0         255.255.254.0   U     0      0        0 br0
10.61.106.0     0.0.0.0         255.255.254.0   U     0      0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     1004   0        0 br0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
I have tried everything I can think of to fix this situation, including adding the /24 route in NetworkManager, trying to change the mask of br0 to /22 and setting METRIC in ifcfg-*

I think that this is a bug in NetworkManger, but I don't know if any body has other ideas?

Thanks

Steven
 
Old 03-15-2013, 03:24 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 916

Rep: Reputation: 67
The problem is two duplicate route entry. Why do you do this?
10.61.106.0 0.0.0.0 255.255.254.0 U 0 0 0 eth2
10.61.106.0 0.0.0.0 255.255.254.0 U 0 0 0 br0
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
routing between 2 nics littletics Linux - Networking 8 03-10-2011 04:14 PM
need help with routing for two NICs bramint Linux - Networking 8 07-24-2007 02:49 PM
Two NICs and routing bks Linux - Networking 2 02-19-2007 01:14 PM
Routing between 2 NICs Tinochelli Linux - Networking 4 12-09-2004 11:33 AM
Routing with 3 nics _TK_ Linux - Networking 2 09-25-2001 11:32 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration