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; Alex van den Bogaerdt wrote: > On Mon, Jan 26, 2004 at 04:01:50PM -0700, Cameron Knowlton wrote: >&...


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
Bernd Matthes
 
Posts: n/a
Default Re: IP range to CIDR


Alex van den Bogaerdt wrote:
> On Mon, Jan 26, 2004 at 04:01:50PM -0700, Cameron Knowlton 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

>
> If nothing shows up, and if you can write your own:
>
> Range from "x" upto and including "y", properly aligned.
>
> r=3D(x xor y)
> add one
> shift right until r=3D=3D1, count number of shifts
> subtract from 32.
>
> Example
> 200.41.0.0
> 200.41.127.255
> -------------- xor
> 0.0.127.255
>
> 0.0.127.255
> 1
> ----------- +
> 0.0.128.0
>
> binary:
> 00000000 00000000 10000000 00000000
>
> 15 shift-right,
> 32-15=3D17 --> 200.41.0.0/17
>


Hi Alex!

Take a look at
http://www.isc.org/products/Misc/ or
http://freshmeat.net/projects/aggreg...elease_id=3D9=
1662&topic_id=3D20%2C150%2C857
for "aggregate".

--=20
with kind regards
# make love
make: *** No rule to make target `love'. Stop.

Reply With Quote
Reply


Thread Tools
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

vB 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 03:40 PM.


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