2

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.

0

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: http://www.vyatta.com/downloads/doc_registration.php

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

0

I think "ip route default equalize" can solve your problem.

ip route replace default equalize nexthop dev ppp0 weight 1 nexthop dev ppp1 weight 1   

ppp0 is a device, ppp1 is another device
weight 1 means the probability that packet will choose

-2

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.

  • This is overly complex a simple split routing is possible. lartc.org/howto/lartc.rpdb.multiple-links.html – 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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