Bluehost.com Web Hosting $6.95

Re: IP range to CIDR

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 <...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2004
Mike Vanecek
 
Posts: n/a
Default Re: IP range to CIDR

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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0