Jump to content

Any IP Range to (one or more) CIDR Blocks

Recommended Posts

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...