[59229] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: anyone has netrange -> cidr conversion script to share?

daemon@ATHENA.MIT.EDU (Scott Francis)
Thu Jun 19 18:43:10 2003

Date: Thu, 19 Jun 2003 15:40:12 -0700
From: Scott Francis <darkuncle@darkuncle.net>
To: william@elan.net
Cc: nanog@nanog.org
Mail-Followup-To: Scott Francis <darkuncle@darkuncle.net>,
	william@elan.net, nanog@nanog.org
In-Reply-To: <Pine.LNX.4.44.0306112308490.1874-100000@sokol.elan.net>
Errors-To: owner-nanog-outgoing@merit.edu



--1SQmhf2mF2YjsYvc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

=2E..

(well, I was going to, and saw that it was 557 lines, so I'll just post an
url: http://www.darkuncle.net/aggis )
--=20
Scott Francis || darkuncle (at) darkuncle (dot) net
      illum oportet crescere me autem minui

--1SQmhf2mF2YjsYvc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+8jvMWaB7jFU39ScRAmLTAJ9swbh7pvaevGC4J4ebLEXsOctW5QCgvo0s
8BK5PEO2Ez2fFjLhWK4bu8E=
=F9E3
-----END PGP SIGNATURE-----

--1SQmhf2mF2YjsYvc--

home help back first fref pref prev next nref lref last post