SA IP ranges

milomak

Honorary Master
Joined
May 23, 2007
Messages
12,571
Reaction score
92
I was thinking about routing traffic via the router this morning. The main use of local bandwith for me are the local servers, so I have entered those and a few specific sites to be routed specifically via a local account. I’ve figured that (and from looking at my rough usage for about 2-3 months the balance of my use of local based sites uses very little of my international bandwidth. This is all good and well given that I don’t use the local torrent scene.

But I thought to myself but what if I did want to use the torrents and ensure that no matter who I was connected to who had a local IP, that traffic went via a local account. How could I tell my router to route as wide a net of IPs without having to enter all of them.

So it struck me, currently I route myadsl (196.40.97.12) via a local account. On my router I have it entered :

Code:
IP				subnet				gateway
196.40.97.0			255.255.255.0			165.146.152.1

This made me wonder whether the following would route all local IPs over the 196 range via the same local account

Code:
IP				subnet				gateway
196.0.0.0			255.0.0.0			165.146.152.1

Then I would do the same for IPs in the 41 and 165 range. But of course that begs the question of what happens to non-local sites in those IP ranges? Are there any non-local sites in those IP ranges?

Given this seems like such a simple rather than adding over 800 IP addresses (which slowed my poor router down to a crawl), it seems that I couldn’t have thought of it and it would work. Have I missed a trick?

Interestingly I note that the Telkom site is on a 198 range IP. Is that also a local IP range?
 
You'll find the people who work with Route Sentry will have the most current list...
 
There is a public IS server with all the local ip ranges on. just telnet into public-route-server.is.co.za and type the command "sh ip bgp" without the quotes. You'll get all the local ip ranges there.
 
Obtaining the list is not a problem. The question is one of whether it is only locally based sites that would be in the IP ranges - 41, 165 and 196? I'll be trying this this evening in any case. Just wanted to bounce the idea of people so that I know whether I should have high hopes of this working when I get home this evening.

EDIT: Nice kloon. Will look at that this evening.
 
its unlikely that the full Class A networks have been assigned to SA networks (local only)
 
its unlikely that the full Class A networks have been assigned to SA networks (local only)

If it was assigned a full class A the route server wouldn't contain all the smaller routes. I mean i would rather add one big route then adding all the smaller routes. So no don't think a 196.0.0.0/8 range will work.
 
I have a program that harvests the local routing table from our routers, and can convert to any usable format if anyone is interested.
 
@JayM
Is it not possible to simply configure a dynamic routing protocol like eigrp or BGP into the various traffic splitting apps that are being developed. This would be more efficient that the copy & paste meathods used currently.
 
Than can probably be achieved, but you will have to establish a routing protocol session with someone with a local table, and I don't see your ISP giving you that over an ADSL line.
 
There is a public IS server with all the local ip ranges on. just telnet into public-route-server.is.co.za and type the command "sh ip bgp" without the quotes. You'll get all the local ip ranges there.

Niiice!! thanks for that one... ;)
 
I'm guessing 196.0.0.0 is Class A, 196.10.0.0 Class B etc.I don't have access to the command line here at work so can't use Kloon's info just yet. What Class would SA be most likely given?
 
I'm guessing 196.0.0.0 is Class A, 196.10.0.0 Class B etc.I don't have access to the command line here at work so can't use Kloon's info just yet. What Class would SA be most likely given?

Classful networks are not issued nowadays. Only CIDR (classless interdomain routing) blocks are issued. I've seen from /22 (=4 class C) blocks right down to /13 (=8 class B) blocks issued to SA companies.

In total, there are around 900 of these blocks which represent all local IPs.
 
i've actually down what you want to do, route entire a class blocks for local only, its not neat and elegant, but its easy and works 99.9% of the time.

there are some locals on other ips, i've noticed from the bittorrent traffic, but not much
 
my suspicion is that it should work for a good deal of local IPs. And if I try to access a site and it doesn't resolve I will have to check it's IP and if it is in, say, the 196 range investigate whether in fact it is a local based site. I do not expect to many issues.

It would be neat though if SA had a contiguous allocation of IP addresses even if they are not Class A.
 
Top
Sign up to the MyBroadband newsletter
X