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 inputsWorked calculation
- Each placement group needs 4 + 4 = 8 addresses. A /29 provides that block size.
- The first /29 spans 10.60.4.0 through .7. Reserved positions are .0, .1, .6 and .7, leaving .2 through .5.
- The second /29 begins at .8. The two subnets consume 16 addresses and leave 240 in the planning envelope.
Results
- Usable across subnets
- 8
- Allocated subnets
- 2
- Unassigned space
- 240
Cloud subnet placement map
- Private
- Parent CIDR
- 10.60.4.0/24
- Provider
- Google Cloud
- Reserved per subnet
- 4
- Allocated addresses
- 16
- Placement
- Logical groups of regional subnets
| Tier / group | CIDR | Requested | Usable | Usable range |
|---|---|---|---|---|
| Private / 1 | 10.60.4.0/29 | 4 | 4 | 10.60.4.2 – 10.60.4.5 |
| Private / 2 | 10.60.4.8/29 | 4 | 4 | 10.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.