LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-12-2011, 03:56 AM   #1
Cenobite
LQ Newbie
 
Registered: Dec 2003
Location: South Africa
Distribution: CentOS, Arch
Posts: 25

Rep: Reputation: 0
Iproute2 load balancing without default route


Hi there,

I'm trying to set up load balancing using iproute2 following this guide.

I've got 4 dsl links as follows:
  • eth1 - 100.100.100.1
  • eth2 - 100.100.100.2
  • eth3 - 100.100.100.3
  • eth0 - 111.111.111.111 (main uncapped line)

eth0 is the default route, and eth3 is being used for something else. So what I want to do is load balance browsing between eth1 and eth2.

I've added all of the routes in the LARTC guide, but the command to enable the load balancing:

Quote:
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 nexthop via $P2 dev $IF2 weight 1
obviously involves creating a new default route. Since I'll be using Squid to push the traffic through the relevant line, how can I set up a load-balanced link for eth1 and eth2 without changing the existing default route on the server?

Thanks!
 
Old 01-12-2011, 01:14 PM   #2
bzboy88
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Rep: Reputation: 0
You can specify multiple default routes and choose what IP Address uses which route or use IPTables and Nat to specify what kind of traffic uses which route check the link below for more info on using IPTables and Nat. http://linux-ip.net/html/adv-multi-internet.html
 
  


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
Quagga default route not showing in kernel default route (netstat -nr) Valkyr1e Linux - Networking 3 08-03-2008 09:20 PM
Some help with iptables and iproute2 or route Histamine Linux - Networking 1 11-28-2007 02:53 PM
iproute2 (ip route), pppoe and default route lorddoskias Linux - Networking 0 05-09-2007 11:04 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04:59 AM
iproute2 and load balancing kulmis Linux - Networking 0 08-26-2003 12:57 PM

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

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