An organization is designing a custom mode Virtual Private Cloud (VPC) network in Google Cloud that connects to an on-premises data center via Cloud VPN. The on-premises network utilizes the IP address block . Within the GCP VPC network, an engineer creates a primary subnet named `prod-subnet-us` in the `us-central1` region with an initial CIDR range of . To accommodate incoming application workloads, the team needs to expand the primary IP range of `prod-subnet-us`. Which of the following expansion plans complies with Google Cloud VPC subnet expansion rules without causing IP range overlaps or routing conflicts with the on-premises network?
- Expand the primary IP range of `prod-subnet-us` to .Answer
- BExpand the primary IP range of `prod-subnet-us` to to cover both cloud and on-premises systems.
- CDecrease the primary IP range of `prod-subnet-us` to and create a second non-contiguous primary subnet in `us-central1` with .
- DConvert the VPC network from custom mode to auto mode so Google Cloud can automatically expand the subnet without IP collisions.
Answer
Expanding the primary IP range of `prod-subnet-us` to is the correct choice.
Expanding the primary subnet range to follows GCP subnet expansion rules: the prefix length decreases (from to ), the new range ( - ) strictly encloses the existing range ( - ), and it does not overlap with the on-premises range .
Step-by-Step Solution
Key Concept
Subnet IP Range Expansion and Overlap Prevention in Custom Mode VPCs