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.
Results
- Usable across subnets
- 1,971
- Allocated subnets
- 9
- Unassigned space
- 63,520
Cloud subnet placement map
- Private
- Public
- Database
- Parent CIDR
- 10.0.0.0/16
- Provider
- AWS
- Reserved per subnet
- 5
- Allocated addresses
- 2,016
- Placement
- Availability zones
| Tier / group | CIDR | Requested | Usable | Usable range |
|---|---|---|---|---|
| Private / 1 | 10.0.0.0/23 | 500 | 507 | 10.0.0.4 – 10.0.1.254 |
| Private / 2 | 10.0.2.0/23 | 500 | 507 | 10.0.2.4 – 10.0.3.254 |
| Private / 3 | 10.0.4.0/23 | 500 | 507 | 10.0.4.4 – 10.0.5.254 |
| Public / 1 | 10.0.6.0/25 | 60 | 123 | 10.0.6.4 – 10.0.6.126 |
| Public / 2 | 10.0.6.128/25 | 60 | 123 | 10.0.6.132 – 10.0.6.254 |
| Public / 3 | 10.0.7.0/25 | 60 | 123 | 10.0.7.4 – 10.0.7.126 |
| Database / 1 | 10.0.7.128/27 | 26 | 27 | 10.0.7.132 – 10.0.7.158 |
| Database / 2 | 10.0.7.160/27 | 26 | 27 | 10.0.7.164 – 10.0.7.190 |
| Database / 3 | 10.0.7.192/27 | 26 | 27 | 10.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.