Sign in to follow this  
Followers 0

Any IP Range to (one or more) CIDR Blocks

1 post in this topic

does anyone know how to convert a random/any ip range to as much cidr blocks necessary?

there's ought to be some processing with a while loop but i just don't know how to process it.

the idea is to make the ip into 4 binary octets and start comparing values :S but.. that's just about it from me :)

Example: into as much cidr blocks necessary (that'd be the result)

Any ideas are welcome

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0