Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

How I can configure my server to act as load balanced router (all PCs conected to 192.168.0.100 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

1 Answer 1

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. cyberciti.biz/faq/… –  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 debian-administration.org/article/377/… ip route add default scope global \ nexthop via 192.168.0.1 dev eth0:1 weight 1 \ nexthop via 192.168.0.101 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 lartc.org/howto/lartc.rpdb.multiple-links.html#AEN267 –  Henry S. Feb 27 '13 at 20:35

Your Answer

 
discard

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.