Just change the "$base_netmask_size" to what ever you want it to start out on and refernce as a the "base" netmask that is subnetting. For instance a /28 would look like...
Netmask 255.255.255.240 /28 (11111111111111111111111111110000) There are 1 subnets in a /28 0.0.0.0 to 0.0.0.15 Netmask 255.255.255.248 /29 (11111111111111111111111111111000) There are 2 subnets in a /28 0.0.0.0 to 0.0.0.7 0.0.0.8 to 0.0.0.15 Netmask 255.255.255.252 /30 (11111111111111111111111111111100) There are 4 subnets in a /28 0.0.0.0 to 0.0.0.3 0.0.0.4 to 0.0.0.7 0.0.0.8 to 0.0.0.11 0.0.0.12 to 0.0.0.15Suggestions welcomed, flames devnulled.
Tim