Soru

Zorluk: KolayPlanning Virtual Private Cloud (VPC) Networks and Subnets

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.

  1. 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.
  2. 2Run the command `gcloud compute networks subnets expand-ip-range` specifying the updated primary `--ip-cidr-range`.
  3. 3Verify the expanded IP address range in the subnet details and confirm that new workloads can receive IP addresses from the newly expanded pool.

Cevap

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.

Adım Adım Çözüm

1
Select a valid expanded CIDR block (such as expanding a /24 to a /23 block).
A target prefix size is defined that fully includes the current IP addresses.
Google Cloud VPC subnets can only be expanded to a larger range that encompasses the existing range without overlapping other subnets in the network.
2
Execute the IP expansion command using `gcloud compute networks subnets expand-ip-range` or the GCP Console.
The subnet primary range is modified in-place online without workload disruption.
Subnet expansion is a zero-downtime operation managed dynamically by the GCP control plane.
3
Inspect the subnet properties using `gcloud compute networks subnets describe` or the GCP Console.
Subnet configuration reflects the new netmask and expanded IP pool.
Validation confirms that the operation completed successfully and additional IP addresses are ready for allocation.

Anahtar Kavram

VPC Subnet CIDR Range Expansion Workflow
Bu soruyu puanla