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

I have configured two internet connection to my Linux box, first Ethernet LAN with range 192.168.2.1 & WIFI with range 192.168.1.1 this both connection are connected to 2 different internet providers & now i want to use both connection at a time & load balance.

Following is output of route -n command

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

share|improve this question
    
route is obsolete on Linux. Use ip route instead. Which, incidentally, have load balancing features, but which won't work in your case. –  BatchyX Mar 7 '13 at 8:15
    
How to use ip route for load balancing & why it will not work in my case ? can you please explain me. Thank you –  yogesh.panchal Mar 8 '13 at 7:33
    
See the ip route manpage on nexthop. It won't work in your case, because each internet provider will give you an IP which can only be used with their network. ip route's multipath requires that only one source address is used on both networks. –  BatchyX Mar 8 '13 at 19:52

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.