Is it possible to do bonding/connection teaming with non-ethernet devices?
I am trying to set up a mobile router using linux. It connects to several ISPs using 3G connections, and offers a NATed wireless network for clients.
I wish to utilize the bandwith when all ISPs are available, and be able to provide internet access for all as long as at least one ISP is available.
I have looked at bonding and "ifenslave". But I can't use this because some of the 3G devices provides ppp links like
ppp0, ppp1, ... and bonding seems to want physical ethernet devices only. Windows was able to do this - but the os turned out to be too unstable.
Is there some other approach that might work?
Helge Hafting
You can this decently by using iproute2's nexthop. Of course, one client isn't able to use more than one ISP per connection and their IP will keep changing depending on which route they happend to get.
Anyway, to the point. http://wiki.robotz.com/index.php/Iproute2#General_Notes_and_Information
Quoted 19 lines · Helge Hafting
I am trying to set up a mobile router using linux. It connects to several ISPs using 3G connections, and offers a NATed wireless network for clients.
I wish to utilize the bandwith when all ISPs are available, and be able to provide internet access for all as long as at least one ISP is available.
I have looked at bonding and "ifenslave". But I can't use this because some of the 3G devices provides ppp links like
ppp0, ppp1, ... and bonding seems to want physical ethernet devices only. Windows was able to do this - but the os turned out to be too unstable.Is there some other approach that might work?
Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Quoted 3 lines · Eljas Alakulppi
You can this decently by using iproute2's nexthop. Of course, one client isn't able to use more than one ISP per connection and their IP will keep changing depending on which route they happend to get.
Anyway, to the point. http://wiki.robotz.com/index.php/Iproute2#General_Notes_and_Information
Thanks a lot - just what I needed. One ISP per connection is fine.
There is one big problem though:
The routing works well when I bring up the interfaces. But if one interface goes down and pppd quits, then the whole default route is destroyed. In a test, this did not happen if I brought down "lo", I had a test route there. But if ppp0 goes down, then the route to ppp1 dies too.
So no reliability through multiple connections.
I have tried giving pppd the "nodefaultroute" option, it is not supposed to make its own default route (a script does that) and then it shoudn't delete the default route either. But the route goes away.
Is there some other trick I should use, or will I have to resort to a polling script that checks every 10s if the default route is gone, and then recreates it from "ifconfig" output?
I hope this ugly solution won't be needed, but it is all I can come up with and there isn't too much time. :-(
Another minor issue I noticed:
Using "weight 1" for the routes didn't work - everything went through the first interface I brought up. Changing to "weight 5"
for the routes seemed to fix this - off-by-one?
Helge Hafting
В Срд, 21/11/2007 в 15:31 +0100, Helge Hafting пишет:
Quoted 7 lines
I am trying to set up a mobile router using linux. It connects to several ISPs
using 3G connections, and offers a NATed wireless network for clients.I wish to utilize the bandwith when all ISPs are available, and be able to provide internet access for all as long as at least one ISP is available.
If I am correct setting several default routes with equal metric value will do what you want. This will do load ballancing between several available connections.
Signature · 1 line
Покотиленко Костик <[email protected]>