LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-04-2012, 06:06 AM   #1
swissmac
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Rep: Reputation: Disabled
Load balanced routing multiple nics


Hi everone,

I have a question about routing and loadbalancing on Redhat/Centos. I've the following Interfaces

eth0 -> SDSL1 62.65.1.122
eth1 -> SDSL1 62.65.1.122
eth2 -> SDSL2 81.122.221.10
eth3 -> SDSL2 81.122.221.10
eth4 -> MOBILE1 135.34.120.10
eth5 -> MOBILE2 128.35.110.20

Now if I would like to route traffic based on the URL oder IP-Address that I call how would you implement this? Additionally I would be necessary to do loadbalancing on these interfaces.

Any help would be greatly appreciated.

Kind regards, Mac
 
Old 03-05-2012, 12:59 AM   #2
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 92

Rep: Reputation: 3
Looks like you need to bond the respective pairs of interfaces, so:

bond0 = eth0 + eth1
bond1 = eth2 + eth3
bond2 = eth4 + eth5

There are lots of references on setting up bonding, and you'll need to specify to use load balancing (there are a couple of options, eg. round-robin) rather than active-backup.

If you are goign to use the server to route, then you'll need to enable the ip_forward parameter (again, google is your friend!).
 
Old 03-29-2012, 06:53 PM   #3
swissmac
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks prowla,

I've now tried bonding like you said but it doesn't work on ESXi 4.1

The links are up but the connection is either slow or dosen't work at all.
eth0 + eth1 are connected to 2 physical ports on the ESXi Server and each NIC has his own vSwitch. I'm using Centos 5.8.

Is there any issue in ESXi?

regards,
mac

Last edited by swissmac; 03-29-2012 at 06:55 PM.
 
Old 03-30-2012, 07:29 AM   #4
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
How many physical RJ45 ports do you have on the box?
 
Old 03-30-2012, 09:35 AM   #5
swissmac
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
I've got all together 4 interfaces on the box but I use only 2 interfaces (eth0 + eth1) right now. These two intefaces do have a WAN each of them a different WAN-IP one of them is ADSL (10Mbit) and the other is SDSL (20Mbit). I would like to use round-robin.
 
Old 03-30-2012, 10:39 AM   #6
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
It might help if you edit the initial post then... prowla's reply could very well be helpful in the setup you described initially but your actual setup isn't even close to that. If you have two interfaces clonnected to separate providers then bonding them doesn't make sence.

This might help http://lartc.org/howto/lartc.rpdb.multiple-links.html
 
Old 03-30-2012, 10:46 AM   #7
swissmac
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
you're right it's not what i orginally worte my current setup ist like this

eth0 -> SDSL 62.65.1.122
eth1 -> VDSL 81.122.221.10
eth2 -> MOBILE 135.34.120.10

but I don't want to use routing and be able to use later more interface that's why his initial idea would be really great. Please give me advice how to solve my issuie. I've tried with centos5 and centos6 already.
 
  


Reply

Tags
loadbalancing


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
routing tables, multiple NICs... linux_kung_fu Linux - Newbie 1 01-06-2012 01:03 AM
[SOLVED] load balanced routing in beowulf cluster nickjamesd Linux - Networking 2 10-02-2011 03:29 PM
outbound web traffic load balancing across multiple nics univaco Linux - Networking 5 01-21-2009 02:25 PM
Routing issues with multiple nics on ClarkConnect 2.2 (RedHat 9) Killbot_5000 Linux - Networking 1 01-13-2005 11:58 AM
routing/forwarding between multiple (3+) nics sublime Linux - Networking 2 07-26-2004 03:22 AM


All times are GMT -5. The time now is 08:50 PM.

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