This is a discussion on Re: IP range to CIDR within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Tue, 27 Jan 2004 01:20:57 +0200, Liviu Daia wrote > On 26 January 2004, Cameron Knowlton <...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Tue, 27 Jan 2004 01:20:57 +0200, Liviu Daia wrote
> On 26 January 2004, Cameron Knowlton <cameronk@igods.com> wrote: > > I was wondering if anyone knows of a web page or a Mac OS application > > that can convert from IP ranges to CIDR addresses, e.g.: > > > > 200.41.0.0-200.41.127.255 --> a.b.c.d/x > > Script attached below. > > Regards, > > Liviu Daia Very nice indeed. It is one of the few that calculates the ones that are not satified by a single cidr: [x@www TARBALLS]$ ./cidr_range.pl 200.41.0.0 200.41.128.255 200.41.0.0/17 200.41.128.0/24 To verify: [x@www TARBALLS]$ ipcalc -bn 200.41.0.0/17 BROADCAST=200.41.127.255 NETWORK=200.41.0.0 [x@www TARBALLS]$ ipcalc -bn 200.41.128.0/24 BROADCAST=200.41.128.255 NETWORK=200.41.128.0 Thank you for sharing. |