anyone has netrange -> cidr conversion script to share?

Scott Francis darkuncle at
Thu Jun 19 22:40:12 UTC 2003

On Wed, Jun 11, 2003 at 11:12:54PM -0700, william at said:
>  Does anyone here has a script (or perl procedure) for converting range 
> of ips (i.e. - into cidr (i.e. result would be 
>, from the example before). If not I'll do it, I'm 
> just hoping somebody is already done something this for another project...

excellent Perl script called 'aggis' that used to be available from ... I can't remember where I got it last. Since it's brief, I'm
including it here for the sake of the archives.


(well, I was going to, and saw that it was 557 lines, so I'll just post an
url: )
Scott Francis || darkuncle (at) darkuncle (dot) net
      illum oportet crescere me autem minui
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <>

More information about the NANOG mailing list