I am thinking of building a new AWS VPC with a CIDR block of 172.168.0.0/16.
I don't want this VPC CIDR range to cross my existing VPC's. What CIDR can I use for my new VPC and then how do I decide what subnets I will need to create for 2 private and 2 public subnets.
Does anyone have a template they tend to reuse to keep things nice and tidy?
Latest comments (3)
Here is a great resource for calculating CIDR blocks and subnets
CIDR Calculator
I think a good template is to use a /24 range to divide the VPC CIDR range, here is an example based on your question:
VPC: 172.168.0.0/16
The if you wanted another
VPC: 173.168.0.0/16
From this you can easily determine to have thge subnets use a small or a bigger portion of the CIDR range.
It is mega important to ensure that you don't overlap with on prem or cross cloud/services CIDR blocks. Double, then triple check.
Thanks! Makes total sense!