Design an AWS 10.0.0.0/16 VPC across three AZs
Allocate three public and three private AWS subnets, include per-subnet reservations and export a Terraform address plan.
Try these inputsWorked calculation
- Each private group needs 500 + 5 = 505 slots. A /23 provides 512 total and 507 usable, so place three /23s first.
- Each public group needs 120 + 5 = 125 slots. Use three /25s, starting at 10.0.6.0/25 after the private ranges.
- Allocated addresses total 3 × (512 + 128) = 1,920. The rest of the /16 holds 65,536 − 1,920 = 63,616 unassigned addresses.
Results
- Usable across subnets
- 1,890
- Allocated subnets
- 6
- Unassigned space
- 63,616
Cloud subnet placement map
- Private
- Public
- Parent CIDR
- 10.0.0.0/16
- Provider
- AWS
- Reserved per subnet
- 5
- Allocated addresses
- 1,920
- 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 | 120 | 123 | 10.0.6.4 – 10.0.6.126 |
| Public / 2 | 10.0.6.128/25 | 120 | 123 | 10.0.6.132 – 10.0.6.254 |
| Public / 3 | 10.0.7.0/25 | 120 | 123 | 10.0.7.4 – 10.0.7.126 |
Questions
What is the private address capacity in one zone of this layout?
A /23 provides 512 slots. With five reserved, a single private subnet offers 507 assignable addresses.
Where does the first public /25 start in the exported layout?
It starts at 10.0.6.0. Three private /23s consume the addresses through 10.0.5.255 first.