Divide an AWS /26 into four /28 subnets in two AZs
Fit two public and two private subnets into 10.90.0.0/26. Verify the usable capacity and see why one extra address can make the design fail.
Try these inputsWorked calculation
- Each tier needs 11 + 5 = 16 addresses. Choose a /28 with exactly 16 IPv4 addresses.
- Two tiers in two AZs create four subnets. Their starts are .0, .16, .32 and .48.
- They consume 4 × 16 = 64 slots, the full /26. Increasing either tier to 12 usable IPs requires two /27s for that tier alone.
Results
- Usable across subnets
- 44
- Allocated subnets
- 4
- Unassigned space
- 0
Cloud subnet placement map
- Public
- Private
- Parent CIDR
- 10.90.0.0/26
- Provider
- AWS
- Reserved per subnet
- 5
- Allocated addresses
- 64
- Placement
- Availability zones
| Tier / group | CIDR | Requested | Usable | Usable range |
|---|---|---|---|---|
| Public / 1 | 10.90.0.0/28 | 11 | 11 | 10.90.0.4 – 10.90.0.14 |
| Public / 2 | 10.90.0.16/28 | 11 | 11 | 10.90.0.20 – 10.90.0.30 |
| Private / 1 | 10.90.0.32/28 | 11 | 11 | 10.90.0.36 – 10.90.0.46 |
| Private / 2 | 10.90.0.48/28 | 11 | 11 | 10.90.0.52 – 10.90.0.62 |
Questions
How many assignable IPs remain across the four AWS /28s before workloads?
There are 4 × 11 = 44 assignable IPs. The other 20 are reserved by AWS.
Can an even smaller CIDR be added inside the fully packed /26?
The /26 is completely allocated. An additional subnet needs more space or a different parent.