It should work fine with two wifi interfaces, as long as you are accessing two different AP’s.
But I never tried it…
Is this bash file compatible when I use two WiFi interface?in my case, I make 2 APs by using 2 WiFi interfaces with different gw and use 2 clients by using 2 WiFi interfaces which connected to different AP?
]]> http://underpop.online.fr/n/nielshorn/2008/09/load-balancing-two-isps/comment-page-1/#comment-2447 Niels Horn Fri, 10 Aug 2012 11:23:11 +0000 http://underpop.online.fr/n/nielshorn/blog/?p=5#comment-2447 Hi, Sorry for the delay, but I've been quite busy lately. Yes, it should improve upload speed as well, as it will use both ISPs. Regards, Niels Hi,Sorry for the delay, but I’ve been quite busy lately.
Yes, it should improve upload speed as well, as it will use both ISPs.
Regards,
Niels ]]> http://underpop.online.fr/n/nielshorn/2008/09/load-balancing-two-isps/comment-page-1/#comment-2442 Sayantan Wed, 25 Jul 2012 17:22:48 +0000 http://underpop.online.fr/n/nielshorn/blog/?p=5#comment-2442 hi Niels, Thanks for such a great post. I was looking for a Load balancing post . However, I have a question. will this improve the upload speed as well? I have two ISPs with 0.8 Mbps upload speed. Will that improve it? I use asterisk telephony system, hence require improved upload speed. Regards. sayantan hi Niels,
Thanks for such a great post. I was looking for a Load balancing post . However, I have a question. will this improve the upload speed as well? I have two ISPs with 0.8 Mbps upload speed. Will that improve it? I use asterisk telephony system, hence require improved upload speed.
Regards.
sayantan
Its very usefull on my mandriva desktop ]]> http://underpop.online.fr/n/nielshorn/2008/09/load-balancing-two-isps/comment-page-1/#comment-1784 Niels Horn Tue, 22 Mar 2011 12:07:20 +0000 http://underpop.online.fr/n/nielshorn/blog/?p=5#comment-1784 Hello, In this case - having the same gateway - my solution won't work for you... But it should be possible to adapt it to your setup. The problem is I can't test it for you here :) You might try using "via a.b.c.d" where a.b.c.d is the internal IP address of the NIC connected to your adsl modem, instead of the gateway address. But - as I said - I have not tried this here... Hello,
In this case – having the same gateway – my solution won’t work for you…
But it should be possible to adapt it to your setup. The problem is I can’t test it for you here
You might try using “via a.b.c.d” where a.b.c.d is the internal IP address of the NIC connected to your adsl modem, instead of the gateway address.
But – as I said – I have not tried this here…
I tried this script but under my circumstances does not work. I have 2 adsl bridged modems from the same ISP and I connected it via pppoe. The problem is that I have the same default gw for ppp0 and ppp1. When only one link is up it works perfectly but when I start the second and run the script the two links goes “down”(not really because when I shut down one the other begin to work). Do you need more details? Any help will be appreciated.
P.S. I use Slackware too.
]]> http://underpop.online.fr/n/nielshorn/2008/09/load-balancing-two-isps/comment-page-1/#comment-252 Niels Horn Sat, 27 Mar 2010 15:09:57 +0000 http://underpop.online.fr/n/nielshorn/blog/?p=5#comment-252 @aspnair: IIRC, pppd should create the gateway. You might have to set the "defaultroute" parameter in your pppd configuration file, or use it as an option when calling pppd. @aspnair:IIRC, pppd should create the gateway. You might have to set the “defaultroute” parameter in your pppd configuration file, or use it as an option when calling pppd. ]]> http://underpop.online.fr/n/nielshorn/2008/09/load-balancing-two-isps/comment-page-1/#comment-245 aspnair Wed, 24 Mar 2010 14:03:50 +0000 http://underpop.online.fr/n/nielshorn/blog/?p=5#comment-245 I just modified the script to find out the ppp0 gateway from ifconfig itself. Following is my modification. gw2=$(route -n | grep $DEV2 | grep '^0.0.0.0' | awk '{print $2}') if [ "$gw2" == "" ] then gw2=$(ifconfig $DEV2 | grep P-t-P | awk '{print $3}' | awk -F: '{print $2}') fi I tried dialing using pon with pppd and wvdial. It looks like, they dont add a default route when it sees another active default route, eth0 interface in this case. I just modified the script to find out the ppp0 gateway from ifconfig itself.
Following is my modification.
gw2=$(route -n | grep $DEV2 | grep ‘^0.0.0.0′ | awk ‘{print $2}’)
if [ "$gw2" == "" ]
then
gw2=$(ifconfig $DEV2 | grep P-t-P | awk ‘{print $3}’ | awk -F: ‘{print $2}’)
fi
I tried dialing using pon with pppd and wvdial. It looks like, they dont add a default route
when it sees another active default route, eth0 interface in this case.
It seems that when you use your GSM modem, it is not recognized as a gateway in your routing table.
I use a script to “dial” my ISP with my GSM modem that automatically adds it as a gateway, so the balancing script finds it when I start that.
Setting the gw2 variable manually works, but it would be best to set the gateway on your ppp connection.
Anyway, thanks for your feedback! ]]>