The Elastic Guru

The Elastic Guru is a community of amazing AWS enthusiasts

We're an AWS community where friendly AWS peeps create, read and share content to ignite curiosity, learning, growth and success in young people, students and others.

Create account Log in

Discussion on: What's the best AWS VPC CIDR and subnets calculation for a new VPC?

Collapse
lee profile image
Lee

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

  • Subnet 1: 172.168.0.0/24
  • Subnet 2: 172.168.1.0/24
  • Subnet 3: 172.168.2.0/24
  • Subnet 4: 172.168.3.0/24

The if you wanted another

VPC: 173.168.0.0/16

  • Subnet 1: 173.168.0.0/24
  • Subnet 2: 173.168.1.0/24
  • Subnet 3: 173.168.2.0/24
  • Subnet 4: 173.168.3.0/24

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.

Collapse
jason profile image
Jason Wright Author

Thanks! Makes total sense!