AWS, Azure & Google Cloud VPC CIDR Designer

Size public, private, isolated and database subnets across two to four placement groups. Compare AWS, Azure and Google Cloud IPv4 reservations and export Terraform.

Inputs

AWS availability zones. Azure and Google Cloud use regional subnets with logical group labels.
Usable IPs per group

Calculated in your browser

Results

Usable across subnets
1,971
Allocated subnets
9
Unassigned space
63,520

Cloud subnet placement map

Cloud subnet placement mapEach lane shows the relative block sizes within one placement group. The results table lists the exact address ranges.10.0.0.0/16672 addresses per groupAZ 110.0.0.0/23/2310.0.6.0/25/2510.0.7.128/27AZ 210.0.2.0/23/2310.0.6.128/25/2510.0.7.160/27AZ 310.0.4.0/23/2310.0.7.0/25/2510.0.7.192/27
  • Private
  • Public
  • Database
Each lane shows the relative block sizes within one placement group. The results table lists the exact address ranges.
Parent CIDR
10.0.0.0/16
Provider
AWS
Reserved per subnet
5
Allocated addresses
2,016
Placement
Availability zones
Subnet allocation
Tier / groupCIDRRequestedUsableUsable range
Private / 110.0.0.0/2350050710.0.0.4 – 10.0.1.254
Private / 210.0.2.0/2350050710.0.2.4 – 10.0.3.254
Private / 310.0.4.0/2350050710.0.4.4 – 10.0.5.254
Public / 110.0.6.0/256012310.0.6.4 – 10.0.6.126
Public / 210.0.6.128/256012310.0.6.132 – 10.0.6.254
Public / 310.0.7.0/256012310.0.7.4 – 10.0.7.126
Database / 110.0.7.128/27262710.0.7.132 – 10.0.7.158
Database / 210.0.7.160/27262710.0.7.164 – 10.0.7.190
Database / 310.0.7.192/27262710.0.7.196 – 10.0.7.222

How the calculator works

Add cloud reservations

Add five addresses per AWS or Azure subnet and four per Google Cloud primary subnet. Round up to the next power of two and apply the provider’s minimum block size.

Allocate across placement groups

The planner repeats each enabled tier for two to four groups and packs the largest subnets into the parent first. A tier with zero requested addresses is omitted.

Export the address plan

Terraform includes network and subnet resources. AWS placement uses the AZ list you supply. Azure and Google Cloud subnets are regional. Tier names describe intended use. Configure routes, gateways and security for your environment.

Questions

Does calling a cloud subnet public attach an internet gateway?

Public is an address-plan label. Internet reachability comes from the combination of routing, addressing and the provider’s gateway configuration.

Why does a request for 60 AWS addresses need a /25?

A /26 contains 64 addresses. AWS reserves five and leaves 59, so 60 usable addresses require the next larger block.

References