Fit AWS isolated and database subnets across four AZs

Reserve 27 isolated and 11 database addresses per zone in 10.20.0.0/24, leaving a contiguous block for a future tier.

Try these inputs

Worked calculation

  1. The isolated tier needs 27 + 5 = 32 addresses per zone and therefore uses /27.
  2. The database tier needs 11 + 5 = 16 per zone. That fits /28, the smallest AWS IPv4 subnet in this planner.
  3. The four copies of each tier consume 4 × (32 + 16) = 192 addresses. The final .192/26 remains unassigned.

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
152
Allocated subnets
8
Unassigned space
64

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.20.0.0/2448 addresses per groupAZ 110.20.0.0/27/2710.20.0.128/28/28AZ 210.20.0.32/27/2710.20.0.144/28/28AZ 310.20.0.64/27/2710.20.0.160/28/28AZ 410.20.0.96/27/2710.20.0.176/28/28
  • Isolated
  • Database
Each lane shows the relative block sizes within one placement group. The results table lists the exact address ranges.
Parent CIDR
10.20.0.0/24
Provider
AWS
Reserved per subnet
5
Allocated addresses
192
Placement
Availability zones
Subnet allocation
Tier / groupCIDRRequestedUsableUsable range
Isolated / 110.20.0.0/27272710.20.0.4 – 10.20.0.30
Isolated / 210.20.0.32/27272710.20.0.36 – 10.20.0.62
Isolated / 310.20.0.64/27272710.20.0.68 – 10.20.0.94
Isolated / 410.20.0.96/27272710.20.0.100 – 10.20.0.126
Database / 110.20.0.128/28111110.20.0.132 – 10.20.0.142
Database / 210.20.0.144/28111110.20.0.148 – 10.20.0.158
Database / 310.20.0.160/28111110.20.0.164 – 10.20.0.174
Database / 410.20.0.176/28111110.20.0.180 – 10.20.0.190

Questions

Can the 11-address AWS database tier use a /29?

AWS uses /28 as the smallest standard IPv4 subnet. A /29 would also be too small for 11 assignable addresses.

How many AWS reservations does this eight-subnet design incur?

Five per subnet times eight subnets equals 40 reserved addresses.

References