Find the four usable IPs in a Google Cloud /29

Allocate two small GCP primary subnets, accounting for the first two and last two reserved addresses in each one.

Try these inputs

Worked calculation

  1. Each placement group needs 4 + 4 = 8 addresses. A /29 provides that block size.
  2. The first /29 spans 10.60.4.0 through .7. Reserved positions are .0, .1, .6 and .7, leaving .2 through .5.
  3. The second /29 begins at .8. The two subnets consume 16 addresses and leave 240 in the planning envelope.

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
8
Allocated subnets
2
Unassigned space
240

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.60.4.0/248 addresses per groupGroup 110.60.4.0/29/29Group 210.60.4.8/29/29
  • Private
Each lane shows the relative block sizes within one placement group. The results table lists the exact address ranges.
Parent CIDR
10.60.4.0/24
Provider
Google Cloud
Reserved per subnet
4
Allocated addresses
16
Placement
Logical groups of regional subnets
Subnet allocation
Tier / groupCIDRRequestedUsableUsable range
Private / 110.60.4.0/294410.60.4.2 – 10.60.4.5
Private / 210.60.4.8/294410.60.4.10 – 10.60.4.13

Questions

Is 10.60.4.6 available to a VM in the first GCP subnet?

Google Cloud reserves the second-to-last address in a primary IPv4 subnet, so .6 is unavailable in this /29.

Does a GCP secondary range reserve the same four IPv4 addresses?

Google Cloud’s four-address reservation applies to the primary IPv4 range. The planner models primary ranges.

References