A look at what IP-Ranges are used for routers, just because I'm stupidly bored these days.
But, also because it was nice to know, in case you're logging on to a network without DHCP running.

So, in a semi-sorted order, here's a quick list of the most commonly used subnet addresses for routers in the SOHO sector.
I leave it up to you my dear reader to make a basic Python script that enumerates the entire space, then set up basic network, and test it, before jumping online.
It should be pretty basic, and maybe I'll give it a go at a later date, as a cure for boredom, and missing Netflix series :)

A note on classes first. If you remember, we have several classes for network ranges, and they are as follows.

Class A : 0.0.0.0 - 126.0.0.0
Class B : 128.0.0.0 - 191.0.0.0
Class C : 192.0.0.0 - 223.0.0.0

The classes most used for private SOHO networks, are in the 192.168.x.x range, as we will see in a bit. Starting from the start, they are.

192.168.0.x, where x = 1,10,20,30,50,100,102 depending on the make and model of the router.
192.168.1.x, where x = 1,10,99,200,210,254, again depending on the make and model

Some routers use 192.168.x.1, where X = 2,3,8,10,11,15,16,20,30,40,50,55,62,86,87,100,101,102,123,223.
Some also uses 200.200.200.x


That concludes most used class C networks.

In the A range, most normal is :

10.0.0.0
10.0.0.1
10.0.0.2
10.0.1.1
10.1.1.1
10.1.10.1
10.10.1.1
10.90.90.90

So, with this in mind, it should be very simple writing a numerator script, that does the following.

1. Bring interface up
2. Set a IP in first range
3. Ping possible router address
4. If success pinging router. setup DNS client
5. Test ping Google
6. If success, setup default gateway to router IP
7. If no success, try next address space

More or less something like that. But, there's only a couple of addresses to try, depending on what network you think you're on, so a couple of tries by hand, and it should work out. Most of the time, there would be DHCP services on the network, so all of this is a highly thought situation :)
And, the list of ISP's is fairly small, so it's really just reading their docs and see what range they use for their modems & routers :)

You have no rights to post comments