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 inputs

Worked calculation

  1. Each tier needs 11 + 5 = 16 addresses. Choose a /28 with exactly 16 IPv4 addresses.
  2. Two tiers in two AZs create four subnets. Their starts are .0, .16, .32 and .48.
  3. They consume 4 × 16 = 64 slots, the full /26. Increasing either tier to 12 usable IPs requires two /27s for that tier alone.

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
44
Allocated subnets
4
Unassigned space
0

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.90.0.0/2632 addresses per groupAZ 110.90.0.0/28/2810.90.0.32/28/28AZ 210.90.0.16/28/2810.90.0.48/28/28
  • Public
  • Private
Each lane shows the relative block sizes within one placement group. The results table lists the exact address ranges.
Parent CIDR
10.90.0.0/26
Provider
AWS
Reserved per subnet
5
Allocated addresses
64
Placement
Availability zones
Subnet allocation
Tier / groupCIDRRequestedUsableUsable range
Public / 110.90.0.0/28111110.90.0.4 – 10.90.0.14
Public / 210.90.0.16/28111110.90.0.20 – 10.90.0.30
Private / 110.90.0.32/28111110.90.0.36 – 10.90.0.46
Private / 210.90.0.48/28111110.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.

References