IS IP Ranges

BishopZA

Active Member
Joined
Dec 30, 2004
Messages
97
Reaction score
0
Location
Cape Town
Hi there,

I'm using ant1b0dy's excellent RouteSentry proggie to split my traffic between my SAIX and IS accounts. At the moment all local (SA) traffic goes through the IS account, but I'd like to configure it so that only IS traffic goes through the IS account (thereby getting rid of the peering point bottleneck).

RouteSentry sets up local routes as specified in the localroutes.dat file, with the following format:
#format is destination IP,mask
168.164.0.0,255.255.0.0
etc...

Does anybody have all the IS IP ranges in this format? Or any idea how I can get it?

I went to http://www.afrinic.net/cgi-bin/whois and performed the following 2 searches:
DA25-AFRINIC
ZT12-AFRINIC
both times I used the "Advanced search" with the "Inverse-lookups" option set to "tech-c"

I got the following ranges:

152.110.0.0 - 152.110.255.255
155.240.0.0 - 155.240.255.255
160.123.0.0 - 160.123.255.255
165.180.0.0 - 165.180.255.255
165.3.0.0 - 165.5.255.255
168.128.0.0 - 168.128.255.255
168.142.0.0 - 168.142.255.255
168.164.0.0 - 168.164.255.255
168.209.0.0 - 168.210.255.255
168.210.54.0 - 168.210.55.255
169.129.0.0 - 169.129.255.255
192.96.3.0 - 192.96.3.255
192.96.38.0 - 192.96.38.255
196.1.74.0 - 196.1.74.255
196.1.81.0 - 196.1.81.255
196.1.103.0 - 196.1.103.255
196.1.8.0 - 196.1.14.255
196.1.16.0 - 196.1.25.255
196.1.32.0 - 196.1.51.255
196.12.16.0 - 196.12.31.255
196.14.164.0 - 196.14.164.255
196.14.84.0 - 196.14.84.255
196.14.0.0 - 196.14.255.255
196.14.3.0 - 196.14.3.255
196.15.0.0 - 196.15.7.255
196.208.0.0 - 196.211.255.255
196.22.128.0 - 196.22.128.255
196.23.168.0 - 196.23.168.255
196.23.52.0 - 196.23.52.255
196.23.0.0 - 196.23.255.255
196.26.24.0 - 196.26.31.255
196.26.0.0 - 196.26.255.255
196.33.0.0 - 196.33.255.255
196.33.32.0 - 196.33.35.255
196.33.33.240 - 196.33.33.255
196.33.33.0 - 196.33.33.15
196.33.33.16 - 196.33.33.31
196.33.33.32 - 196.33.33.47
196.33.33.48 - 196.33.33.63
196.33.33.64 - 196.33.33.79
196.33.33.80 - 196.33.33.95
196.33.33.112 - 196.33.33.127
196.33.33.128 - 196.33.33.159
196.33.33.160 - 196.33.33.175
196.33.33.176 - 196.33.33.191
196.33.33.192 - 196.33.33.207
196.33.33.208 - 196.33.33.223
196.33.33.224 - 196.33.33.239
196.34.165.0 - 196.34.165.255
196.34.0.0 - 196.35.255.255
196.35.84.80 - 196.35.84.95
196.35.84.96 - 196.35.84.111
196.35.84.0 - 196.35.84.63
196.35.84.128 - 196.35.84.143
196.35.84.144 - 196.35.84.159
196.35.84.160 - 196.35.84.175
196.35.84.112 - 196.35.84.127
196.35.84.64 - 196.35.84.79
196.35.84.176 - 196.35.84.191
196.35.84.0 - 196.35.87.255
196.36.0.0 - 196.39.127.255
196.36.44.0 - 196.36.45.255
196.36.0.0 - 196.39.255.255
196.37.76.0 - 196.37.76.255
196.38.226.0 - 196.38.226.255
196.39.0.0 - 196.39.127.255
196.4.160.0 - 196.4.161.255
198.54.64.0 - 198.54.64.255
200.16.8.0 - 200.16.15.255
204.12.128.0 - 204.12.143.255
204.152.14.0 - 204.152.15.255
204.235.32.0 - 204.235.43.255
204.87.179.0 - 204.87.179.255

How can I reliably transform them into the required format (IP,mask)?

Thanks! :D
 
Yay! Ant1b0dy for president! :-)

I tried the tool, but I have a question: one of the ranges is
165.3.0.0-165.5.255.255.
I may be wrong, but isn't that the same as these 3 separate ranges?:
165.3.0.0-165.3.255.255
165.4.0.0-165.4.255.255
165.5.0.0-165.5.255.255

For the 1st (all-inclusive) range, MaskTool converts it to the following:
165.3.0.0,255.252.0.0
165.4.0.0,255.254.0.0
While the 2nd (split) range generates this:
165.3.0.0,255.255.0.0
165.4.0.0,255.255.0.0
165.5.0.0,255.255.0.0

Are these equivalent?
 
BishopZA said:
Yay! Ant1b0dy for president! :-)

I tried the tool, but I have a question: one of the ranges is
165.3.0.0-165.5.255.255.
I may be wrong, but isn't that the same as these 3 separate ranges?:
165.3.0.0-165.3.255.255
165.4.0.0-165.4.255.255
165.5.0.0-165.5.255.255

For the 1st (all-inclusive) range, MaskTool converts it to the following:
165.3.0.0,255.252.0.0
165.4.0.0,255.254.0.0
While the 2nd (split) range generates this:
165.3.0.0,255.255.0.0
165.4.0.0,255.255.0.0
165.5.0.0,255.255.0.0

Are these equivalent?

nope :D

That's what you call a bug which I have now squished... Try downloading the file again (the fixed one has a 0.02 in the title caption)

Thanks for pointing that out...! :)
 
Last edited:
Thanks for the excellent response time! Telkom sure could learn from you...

I downloaded it again and now I get the following:
165.3.0.0,255.255.0.0
165.4.0.0,255.254.0.0
which is closer to correct, but not quite there yet (or am I wrong?).
 
BishopZA said:
Thanks for the excellent response time! Telkom sure could learn from you...

I downloaded it again and now I get the following:
165.3.0.0,255.255.0.0
165.4.0.0,255.254.0.0
which is closer to correct, but not quite there yet (or am I wrong?).

that IS correct.
165.4.0.0,255.254.0.0 is equivalent to

165.4.0.0,255.255.0.0
165.5.0.0,255.255.0.0

If you convert the numbers to binary you'll see why... ;)
 
Excellent, thanks!

For those interested, the localroutes.dat file should contain the following if you only want to route IS traffic on your local/IS account:

Code:
#format is destination IP,mask
#list of "South African" IP addresses
152.110.0.0,255.255.0.0
155.240.0.0,255.255.0.0
160.123.0.0,255.255.0.0
165.180.0.0,255.255.0.0
165.3.0.0,255.255.0.0
165.4.0.0,255.254.0.0
168.128.0.0,255.255.0.0
168.142.0.0,255.255.0.0
168.164.0.0,255.255.0.0
168.209.0.0,255.255.0.0
168.210.0.0,255.255.0.0
168.210.54.0,255.255.254.0
169.129.0.0,255.255.0.0
192.96.3.0,255.255.255.0
192.96.38.0,255.255.255.0
196.1.74.0,255.255.255.0
196.1.81.0,255.255.255.0
196.1.103.0,255.255.255.0
196.1.8.0,255.255.252.0
196.1.12.0,255.255.254.0
196.1.14.0,255.255.255.0
196.1.16.0,255.255.248.0
196.1.24.0,255.255.254.0
196.1.32.0,255.255.240.0
196.1.48.0,255.255.252.0
196.12.16.0,255.255.240.0
196.14.164.0,255.255.255.0
196.14.84.0,255.255.255.0
196.14.0.0,255.255.0.0
196.14.3.0,255.255.255.0
196.15.0.0,255.255.248.0
196.208.0.0,255.252.0.0
196.22.128.0,255.255.255.0
196.23.168.0,255.255.255.0
196.23.52.0,255.255.255.0
196.23.0.0,255.255.0.0
196.26.24.0,255.255.248.0
196.26.0.0,255.255.0.0
196.33.0.0,255.255.0.0
196.33.32.0,255.255.252.0
196.33.33.240,255.255.255.240
196.33.33.0,255.255.255.240
196.33.33.16,255.255.255.240
196.33.33.32,255.255.255.240
196.33.33.48,255.255.255.240
196.33.33.64,255.255.255.240
196.33.33.80,255.255.255.240
196.33.33.112,255.255.255.240
196.33.33.128,255.255.255.224
196.33.33.160,255.255.255.240
196.33.33.176,255.255.255.240
196.33.33.192,255.255.255.240
196.33.33.208,255.255.255.240
196.33.33.224,255.255.255.240
196.34.165.0,255.255.255.0
196.34.0.0,255.254.0.0
196.35.84.80,255.255.255.240
196.35.84.96,255.255.255.240
196.35.84.0,255.255.255.192
196.35.84.128,255.255.255.240
196.35.84.144,255.255.255.240
196.35.84.160,255.255.255.240
196.35.84.112,255.255.255.240
196.35.84.64,255.255.255.240
196.35.84.176,255.255.255.240
196.35.84.0,255.255.252.0
196.36.0.0,255.254.0.0
196.38.0.0,255.255.0.0
196.39.0.0,255.255.128.0
196.36.44.0,255.255.254.0
196.36.0.0,255.252.0.0
196.37.76.0,255.255.255.0
196.38.226.0,255.255.255.0
196.39.0.0,255.255.128.0
196.4.160.0,255.255.254.0
198.54.64.0,255.255.255.0
200.16.8.0,255.255.248.0
204.12.128.0,255.255.240.0
204.152.14.0,255.255.254.0
204.235.32.0,255.255.248.0
204.235.40.0,255.255.252.0
204.87.179.0,255.255.255.0
 
Just noticed that by fixing that first problem I created another... (doesn't affect your particular results though). There's now a v0.02 out there if anyone cares...
 
Thanks ant1b0dy :-)

If anyone knows of a better way to get the IS ranges than the way I used (via the 2 AfriNic searches), please let me know.
 
telnet public-route-server.is.co.za
sh ip bgp

Anything that has 3741 as the final ASN is an IS range. (I think IS may have another ASN, but I dont know it off hand... anyone?)
eg:
* 196.34.0.0/15 168.209.255.8 0 3741 i
 
Top
Sign up to the MyBroadband newsletter
X