~/netref / Next Free Subnet
##

Next Free Subnet

The everyday IPAM question — "give me the next free /24." Enter a parent network and the blocks already in use, pick the prefix you need, and get the first free block plus the next several available gaps.

parent network (CIDR)
want prefix /24
blocks in use (comma or newline separated)
next free: 10.0.2.0/24
// next available /24 blocks in 10.0.0.0/1648 of 256 blocks free
10.0.2.0/2410.0.3.0/2410.0.8.0/2410.0.9.0/2410.0.10.0/2410.0.11.0/2410.0.12.0/2410.0.13.0/2410.0.14.0/2410.0.15.0/2410.0.16.0/2410.0.17.0/2410.0.18.0/2410.0.19.0/2410.0.20.0/2410.0.21.0/2410.0.22.0/2410.0.23.0/2410.0.24.0/2410.0.25.0/2410.0.26.0/2410.0.27.0/2410.0.28.0/2410.0.29.0/2410.0.30.0/2410.0.31.0/2410.0.32.0/2410.0.33.0/2410.0.34.0/2410.0.35.0/2410.0.36.0/2410.0.37.0/2410.0.38.0/2410.0.39.0/2410.0.40.0/2410.0.41.0/2410.0.42.0/2410.0.43.0/2410.0.44.0/2410.0.45.0/2410.0.46.0/2410.0.47.0/2410.0.48.0/2410.0.49.0/2410.0.50.0/2410.0.51.0/2410.0.52.0/2410.0.53.0/24