LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2008, 06:23 PM   #1
louieb39
LQ Newbie
 
Registered: Nov 2005
Distribution: suse
Posts: 16

Rep: Reputation: 0
Dual Wan Dual Nic Round Robbin Debian Lenny


I currently Have Debian Lenny running with two network cards installed. I would like to have one nic connected to one router with a gateway of 10.0.0.1 (connected to a DSL line) and another with a gateway of 192.168.1.1 (connected to a T1 line). I would like to setup the server to be able to use both WANs in a load-balancing configuration. I have done some research and have found this page http://www.debianadmin.com/linux-eth...iguration.html
It seems that I can bond the two NICs but that is the extent of my understanding. It seems that ifenslave-2.6 can do what I want, but Im not sure how. Is it possible to have the bond translate between the two networks? If so, how?
 
Old 10-28-2008, 07:24 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You have misunderstood the article you linked to. Bonding doesn't give you 2 network interfaces, it effectively "shares" a single address/gateway with 2 NICs, that way if either card goes bad or a single cable gets unplugged, the other continues to function.

Having 2 NICs with separate addresses and going out separate gateways requires some type of management configuration through software or interfaces. You can't put 2 gateways on one machine and have them simultaneously work, unless you set it up so one interface is used to communicate with one set of addresses and another communicates with another set. You can set the gateways so that one is preferred, but that won't really accomplish what you seem to be looking for.

You can't load balance with one box easily. You could with 2 boxes, but you still need something to handle the 2 internet feeds.

Peace,
JimBass
 
Old 10-28-2008, 07:38 PM   #3
louieb39
LQ Newbie
 
Registered: Nov 2005
Distribution: suse
Posts: 16

Original Poster
Rep: Reputation: 0
Next Question

Thank you very much for your reply. How about if I am able to use the same subnets? Suppose I have the router that goes to the T1 retrieve an IP from the other network (with the same 10.0.0.1 configuration) Would this be easier and possible?
What I need is to be able to load balance the WAN and can effectively forget about the LAN.
 
Old 10-28-2008, 07:45 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The subnet itself isn't the issue, its the multiple gateways. You'd have to ensure that traffic coming in the first gateway goes out the first gateway, and traffic going in the 2nd goes out the 2nd. But doing that destroys the idea of load balancing and redundancy, IE if gateway1 goes down, you still lose that traffic.

You'd have to get fancy with this, and one box is not the way to do it. There's a reason hardware load balancers cost as much or more than automobiles. You can read about advanced routing at this page, but I don't believe it is possible to make this work with one box, 2 NICs and 2 internet connections -

http://lartc.org/lartc.html#LARTC.LOADSHARE

Peace,
JimBass
 
Old 10-28-2008, 08:04 PM   #5
louieb39
LQ Newbie
 
Registered: Nov 2005
Distribution: suse
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks

Ok, I guess I had my hopes up. At least now I can lay the project to rest. I have read that Clarkconnect can do it http://www.clarkconnect.com/docs/Net...gs_-_Multi-WAN Is this more complicated than they make it out to be? I don't care about fail-over. What I want is to not use up my entire T1. That is the main purpose of this idea.
 
Old 10-30-2008, 07:53 AM   #6
louieb39
LQ Newbie
 
Registered: Nov 2005
Distribution: suse
Posts: 16

Original Poster
Rep: Reputation: 0
Done

I have installed pfsense and am doing what I needed. If BSD can do it, than I must be able to get my linux box to do it, but until I figure out how to do that, pfsense does what I need, on a very low end system.
 
  


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
Dual WAN failover kool_kid Linux - Networking 3 07-16-2010 08:26 AM
LXer: Setting up dual monitors system-wide with XRandR on Debian Lenny LXer Syndicated Linux News 0 10-24-2008 09:50 AM
dual boot problem on debian lenny and windows sarajevo Debian 3 03-10-2008 09:45 PM
dual wan questions shinystuffrox Linux - Networking 3 02-08-2008 11:02 PM
dual monitors the wrong way round Henster Linux - Newbie 8 01-07-2006 02:13 PM

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

All times are GMT -5. The time now is 04:26 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