An enterprise cloud network engineer is planning network expansion for a custom-mode Virtual Private Cloud (VPC) network on Google Cloud. An application subnet in region `us-east4` currently uses the primary IP range and must be expanded to support at least 500 virtual machine instances.
The VPC network and connected environments currently have the following IP address allocations:
- Subnet A (Application subnet to expand):
- Subnet B (Database subnet in `us-east4`):
- Subnet C (Analytics subnet in `us-central1`):
- On-premises data center network (connected via Cloud VPN):
Which strategy should the network engineer implement to meet the capacity requirement without violating Google Cloud VPC networking constraints?
- Provision a new subnet using the non-overlapping range in `us-east4` and migrate the application workloads to the new subnet.Answer
- BExpand the existing primary subnet CIDR block from to using the gcloud compute networks subnets expand-ip-range command.
- CConvert the VPC network from custom-mode to auto-mode so Google Cloud automatically resizes the subnet to accommodate 500 instances.
- DChange the primary subnet CIDR block from to to bypass the collision with .
Answer
The network engineer must provision a new subnet using a non-overlapping range such as in `us-east4` and migrate the application workloads.
Expanding a primary subnet range in GCP requires contiguous IP space. The current subnet expanded to covers to . Because is already allocated to Subnet B, in-place expansion is rejected by Google Cloud. Therefore, creating a new non-overlapping subnet (such as ) and migrating workloads is the only valid solution.
Step-by-Step Solution
Key Concept
VPC Subnet IP Range Expansion Constraints and Overlap Prevention