allocate subnets and networks automatically