A cloud network team is planning to expand the primary IP range of an existing production subnet in a custom-mode Google Cloud Virtual Private Cloud (VPC) network from to to accommodate a higher volume of compute instances. To ensure zero service downtime and avoid IP address space collisions, what is the correct chronological sequence of operational steps the team should follow?
- 1Audit existing VPC routing tables, static routes, and peered network CIDR allocations to confirm that the contiguous block does not conflict with existing subnet ranges or BGP advertised routes.
- 2Verify that the proposed expansion CIDR () strictly encompasses the current subnet range () and only reduces the prefix length.
- 3Execute the `gcloud compute networks subnets expand-ip-range` command targeting the subnet and specifying `--prefix-length=23`.
- 4Confirm uninterrupted connectivity on active virtual machines and verify that newly created instances successfully receive IP addresses from the newly available upper and lower range blocks.
Answer
The correct operational sequence begins with auditing existing routing tables and peered network ranges for IP collisions, followed by confirming that the new prefix () mathematically encompasses the existing primary range (). Next, the network engineer executes the non-disruptive `gcloud compute networks subnets expand-ip-range` command with `--prefix-length=23`. Finally, post-expansion verification validates active workload connectivity and new instance IP allocation.
Expanding a primary IP range in a Google Cloud custom-mode VPC subnet requires a systematic approach. First, pre-expansion checks must verify that the target expanded block () does not overlap with any static routes, Cloud Routers, or peered networks. Second, the target CIDR must be verified to mathematically encompass the current range () by decreasing the prefix length (from to ). Third, the expansion command `gcloud compute networks subnets expand-ip-range` is run specifying `--prefix-length=23`. Finally, post-deployment testing validates continuous operational status and allocation to new VM instances.
Step-by-Step Solution
Key Concept
VPC Subnet Primary CIDR Range Expansion Rules and Procedure