creating subnets based on network requirements