A cloud engineer needs to expand the primary IPv4 range of an existing subnet in a Google Cloud custom-mode Virtual Private Cloud (VPC) network without causing downtime to running Virtual Machines. Arrange the operational steps in the correct order from first to last.
- 1Identify a larger, contiguous CIDR block that encompasses the current subnet IP range and does not overlap with any existing subnets in the VPC network.
- 2Run the command `gcloud compute networks subnets expand-ip-range` specifying the updated primary `--ip-cidr-range`.
- 3Verify the expanded IP address range in the subnet details and confirm that new workloads can receive IP addresses from the newly expanded pool.
Answer
The correct order begins with identifying an available contiguous CIDR block that contains the current subnet range without overlapping existing subnets, followed by executing the subnet IP expansion command via gcloud, and concluding with verification of the updated subnet CIDR block.
The proper sequence for expanding a VPC subnet's IP range requires evaluating netmask boundaries to select a non-overlapping contiguous block first, applying the subnet modification command second, and verifying the updated allocation space last.
Step-by-Step Solution
Key Concept
VPC Subnet CIDR Range Expansion Workflow