[192123] in North American Network Operators' Group
Re: A perl script to convert Cisco IOS/Nexus/ASA configurations to
daemon@ATHENA.MIT.EDU (Ken Chase)
Thu Oct 20 15:07:52 2016
X-Original-To: nanog@nanog.org
Date: Thu, 20 Oct 2016 14:59:49 -0400
From: Ken Chase <math@sizone.org>
To: nanog@nanog.org
Errors-To: nanog-bounces@nanog.org
re more general 'network utilities' and scripts:
http://sizone.org/m/hacks/cidrmath.pl
adds and removes subnets from networks giving list of remaining/aggregated (sub)nets.
I couldnt find an online calculator that does this, most are just for 'translation'
from subnet masks<>cidr or cisco inverse masks, etc.
Wrote it years ago cuz I had an itch. The included perl module populates a
hash entry per ip and I didnt want to write my own, so uses lots of ram+cpu on
big ops (/8 - /9 for eg). But great for earthly operations like /23 - /27 +
/28.
Yes I should start my own git repo, but i've been lazy.
No warranties provided.
If anyone has a faster/better one, that'd be handy.
/kc
--
Ken Chase - ken@sizone.org Toronto & Guelph Canada