Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have 1 Ubuntu 12.10 server with 1 eth0 ( and it's connected to my switch. In my network I have 2 ADSL routers ( &

How I can configure my server to act as load balanced router (all PCs conected to as gateway) to gain more bandwith or mix bandwith (2 x 4M) ?

Or there is a cheap hardware to do that like PCs -> box -> ADSL1 AND/OR ADSL2 ?

share|improve this question
Real load balancing or just http traffic for example? – CSchulz Feb 27 '13 at 11:53
It's more for common http/s trafic but if I have a solution for all kind of trafics why not ? – Mike Feb 27 '13 at 11:55

Just google for linux multipath routing, there are plenty of how-to's.

share|improve this answer
thanks to give me the right keywords for my search, but I only found examples on multiple Ethernet cards and not on 1 card only. Can you point me to a more specific link ? – Mike Feb 27 '13 at 13:44
You can create multiple aliases for your network device, so it doesn't matter if you are just using one (physical) interface.… – Henry S. Feb 27 '13 at 14:13
Thanks Henry, I know how create virtual interface, but I don"t know how to add a specific route on the C & B interface and use A as gateways for other PCs who will be routed using C & B dynamically. – Mike Feb 27 '13 at 15:17
Henry : following… ip route add default scope global \ nexthop via dev eth0:1 weight 1 \ nexthop via eth0:2 weight 1 Virtual IP seem not work with error message : Error: "nexthop" or end of line is expected instead of "eth0:2" – Mike Feb 27 '13 at 15:49
ip route add default scope global nexthop via $GW1 dev $IF1 weight 1 nexthop via $GW2 dev $IF2 weight 1 – Henry S. Feb 27 '13 at 20:35

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.