Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have 2 flatrates in the house and have double bandwith theoretically. There is a local network in the house that connects everything.

But when I am alone I wonder how I can use both connections at the same time.

I want to build a solution where I can browse the web and page requests are spread between the 2 connections.

I imagine there are expensive routers who can split the traffic between 2 lines (Edit: which I do not want to buy or install). But is there a good way to do it with linux (Edit: which I prefer)?

The solution I am looking for will split the requests already for one page (multiple images, css files, javascrfipt files) between the two lines.

share|improve this question
This is just called "Load Balancing" - no need for reverse. It's also common, and there's a few links on serverfault about it already. I'll see if I can find it. – Mark Henderson Apr 6 '10 at 1:47
@Farseeker thank youm I will update the question with the right terms tomorrow but I need some sleep now, and curious about your links then. – user12096 Apr 6 '10 at 1:48
No worries. We use pfSense in our office for load balancing outbound internet connections, but there are a few caveats, which are outlined in those questions. – Mark Henderson Apr 6 '10 at 1:50
If they are both PPPoE/PPPoA, you may want to check if your ISP supports Multilink PPP ( as I know some DSL providers do. – squircle Apr 6 '10 at 2:40
up vote 0 down vote accepted

I've heard of Dual-WAN routers. Could you buy one of those to do the job?

I suspect its possible to use the Linux distro called Vyatta, which does WAN Load Balancing i think:

Another name for this kind of thing is "Bonding" or "Trunking" I think .

share|improve this answer

You can't do this with only the machines in your house unless both connections are to the same ISP and that ISP supports load balancing across two multiple connections, which would be rare for a residential service.

If you have access to a Linux computer that is out on the Internet you might be able to do the following (this is off the top of my head, it's not well researched, so I don't have specific software in mind).

  • C1, C2: Two client machines at home.
  • R1: Linux computer at home acting as your router to the Internet.
  • R2: Linux computer, virtual server, whatever out on the Internet somewhere.
  • L1, L2: Two flat rate links to your ISP
  • R1 establishes two VPN, PPP, or L2TP links over L1/L2 to R2.
  • Setup load balancing software on both ends. Something like the Linux bonding driver over the two virtual interfaces the VPN or whatever creates.
  • Setup C1 & C2 so R1 is the default gateway
  • Setup R1 so it routes traffic from C1 & C2 to the R2 via the bonded connection.
  • Setup R2 so it routes traffic from C1/C2/R1 to the Internet.

Now that I've written all this, I have less confidence it will actually work, but it might get you on the right track.

share|improve this answer
This is overly complex a simple split routing is possible. – Zoredache Apr 6 '10 at 5:04
@Zoredache: split routing will likely run the traffic for one IP over the same link over and over again. The original question states he wants to balance different elements from a single web page over the two lines. If you have an answer, post it. – kbyrd Apr 6 '10 at 12:13
@kbyrd: looks good. but would not be able to do all these configurations. – user12096 Apr 6 '10 at 20:18
in what way would a simple split routing use the same route for different resources of the same page? wouldn't it be possible to configure? – user12096 Apr 6 '10 at 20:21
I do not see how this answer deserves the downvoting. It is a different viewpoint and if it works it would be a solution of my question (although I do not have the skills to set this up) – user12096 Apr 6 '10 at 20:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.