Skip to content

{ Tag Archives } python

IP sub-netting for fun and profit

Update: Added MIT License. IP sub-netting is one of the first things one learns about network administration. You have a /22, you want /24′s, 2 bits give you 4 sub-nets. Or you want one /24, so you break the /22 into two /24′s and a /23. Not rocket science. It’s the kind of thing you [...]

Also tagged , , ,

The humble ZA Internet Map

I’ve been playing with BGP-based maps showing links between South African autonomous systems, on-and-off, for a long time. I always got stuck at the graph layout step and was never able to trick GraphViz into doing exactly what I wanted. When I re-visited this project one evening this week, I decided to generate a Dia [...]

Also tagged , , , ,

Reading MikroTik’s winbox addresses.wbx file format

MikroTik, a Latvian network equipment vendor makes a Linux-based router operating system called RouterOS. It has become a popular software platform for wireless networking, and the WISP industry. While it has it’s fair share of bugs (OSPF instabilities in 2.9.x for example), I quite enjoy working with RouterOS. I recently noticed that version 3 sports [...]

Also tagged , ,

Making BIND zone files readable

Update: Added MIT License The zone configuration format for BIND has a number of short-cuts that make writing DNS zone files easy, but also make them hard to read. Here is an example: $TTL 3D @ SOA server1.example.com. hostmaster.example.com. (1 8H 2H 4W 1D) NS server1 NS server2 MX 10 server1 MX 20 server2 server1 [...]

Also tagged ,