Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-04-2012, 05:06 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Rep: 
|
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
|
|
|
|
03-04-2012, 11:59 PM
|
#2
|
|
Member
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 88
Rep:
|
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!).
|
|
|
|
03-29-2012, 05:53 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Original Poster
Rep: 
|
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 05:55 PM.
|
|
|
|
03-30-2012, 06:29 AM
|
#4
|
|
Member
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 144
Rep:
|
How many physical RJ45 ports do you have on the box?
|
|
|
|
03-30-2012, 08:35 AM
|
#5
|
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Original Poster
Rep: 
|
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.
|
|
|
|
03-30-2012, 09:39 AM
|
#6
|
|
Member
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 144
Rep:
|
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
|
|
|
|
03-30-2012, 09:46 AM
|
#7
|
|
LQ Newbie
Registered: Oct 2011
Posts: 9
Original Poster
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:50 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|