LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-21-2006, 04:27 PM   #1
Xeta
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
Unhappy Load Balancing on RHEL 4 AS with Transparent Proxy


Hi all, i have been trying to set up load balancing on my linux server, but no luck. I've tried a host of solutions including "balance" and "bonding". But in both instances they've failed. In using balance, it tells me that it cant bind to local address. When using bonding, i set the bond up and enslave the two ethernet interfaces (both have different gateways), but i cant browse after that. My route table has one entry :

192.168.77.0 * 255.255.255.0 U 0 0 0 bond0

when i add another route by using "route add default bond0" i can resolve pings, but still no browsing or replies. Next i add another route "route add default gw 192.168.77.22 bond0" and this works, but i dont think theres any load balancing goin on here since all the traffic is going through one gateway when it should be balanced between two.

Can anyone help me, is there something im doin wrong, or is there a better way of doing this?

The reason for this setup is i have 2 dsl lines that i want to balance users' requests through squid. Squid is up and running fine with transparent proxying, i just need to get the load balancing part up.

Thanks.
 
Old 04-22-2006, 09:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you want to balance two ISP connections? Bonding at NIC level is not what you want at all, that will just expect the other end of the bond to be doing a similar job. there are docs on lartc.org for isp load balancing using advanced metrics and such, i'd suggest you went there asap.
 
Old 04-25-2006, 08:38 AM   #3
Xeta
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Hmmm, okay i'll check it out and give you a feedback later on about how it goes.
 
  


Reply



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
Load Balancing laurent01 Linux - Networking 6 02-22-2006 02:38 PM
Load Balancing otisthegbs Linux - Networking 4 02-10-2005 02:16 PM
Load Balancing? gsibble Linux - Networking 3 12-09-2003 10:39 PM
new to load balancing suliu Linux - General 3 05-12-2003 08:08 AM
Load balancing ?? Lucsi Linux - Newbie 1 07-16-2002 12:54 PM

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

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