CIDR network range flattening script
Budget: $30 – $250 USD
I need a script that would perform what I can only explain as CIDR "flattening" (similar to SPF flattening but slightly different)
Namely, given 1000's of different CIDR ranges, analyse them all and flatten them into the smallest possible set of subnets that includes them all.
E.g. Take 10.0.1.0/24, 10.0.2.0/24, 10.0.3.0/24, 10.0.4.0/24 = flattens to 10.0.1.0/22 - but I need this to figure out the smallest number of CIDR ranges required from a list.
I would prefer this to be done in Perl or Shell, but any linux capable language is fine.
Thanks in advance!
Namely, given 1000's of different CIDR ranges, analyse them all and flatten them into the smallest possible set of subnets that includes them all.
E.g. Take 10.0.1.0/24, 10.0.2.0/24, 10.0.3.0/24, 10.0.4.0/24 = flattens to 10.0.1.0/22 - but I need this to figure out the smallest number of CIDR ranges required from a list.
I would prefer this to be done in Perl or Shell, but any linux capable language is fine.
Thanks in advance!