Jump to content
Sign in to follow this  
botanic

combine cidr block

Recommended Posts

botanic

I have 2 blocks such as 192.168.0.0/24 and 192.168.0.1/24, and I need to combine them into 192.168.0.0/23

 

Anyone know of any way to do this? or of any scripts for it?

 

for example in Ruby I can use NetAddr.merge

 

thanks

Share this post


Link to post
Share on other sites
UEZ

Maybe you can try to explain how merging two subnets is working.

 

Found a Python script: http://nullege.com/codes/search/netaddr.ip.cidr_merge

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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  

×