Multiple internet gateways..

Soldato
Joined
25 Dec 2008
Posts
5,976
Location
Sheffield/Norwich
I currently have a number of internet connections available to me (all legit, due to having home broadband and a couple of phone contracts) and I'm trying to maximise my bandwidth potential on the cheap.

So far I've been doing this by using route add, restricting each connection to a range of IP addresses but I'm struggling to set it up how I would like and wondered if anyone knows what they're doing instead of me basically poking it with a stick until it works ;)

Currently using
route add 0.0.0.0 mask 128.0.0.0 192.168.43.1
route add 128.0.0.0 mask 128.0.0.0 192.168.1.254
route add 192.0.0.0 mask 192.0.0.0 192.168.137.1

The aim here is to give one connection half the IP range due to faster speeds, and the other two half of the remaining range each. I've set up the middle connection with a metric of 3 and the other two with a metric of 2.

I'm sure this is entirely down to me not understanding it at all, and this is going to be a ridiculous question for someone who's set it up this far, but - I have no idea why what I'm using is currently working. As far as I can tell, I've got the first connection only using IPs between 0.0.0.0 and 128.0.0.0, the second connection between 128.0.0.0 and 255.255.255.255, and the third connection between 192.0.0.0 and 255.255.255.255 with higher priority than the 2nd connection.

When I put in just about anything else, it either fails with a route addition failed, parameter incorrect error, or accepts it and then doesn't allow a connection (e.g. if I use a mask of 255.255.255.255)

Please, educate me, beat me with a stick, whatever, but help me understand! :p :o
 
What you're trying to do seems fairly pointless. Splitting the IP range as you describe isn't going to magically combine the available bandwidth, it'll probably just slow some things down.

You don't appear to understand what subnet masks are for, or how they work. This is something you really need to get some understanding of before you start. The internet is full of articles that'll explain the principles. There are also on-line calculators that'll show you the results of various masks if you don't want to work it out for yourself.
 
using home grade items you will have to manually set the default gateway to point at alternate connections..

but unless you either have a very slow connection or are heavily into bit torrent it seems pointless
 
Back
Top Bottom