Soru

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

An organization needs to expand an existing subnet within a custom-mode Virtual Private Cloud (VPC) network in Google Cloud to accommodate new virtual machines. The target subnet currently uses the primary IP CIDR block 10.50.4.0/2410.50.4.0/24. The VPC network is connected via VPC Network Peering to a partner network using the CIDR block 10.50.8.0/2210.50.8.0/22 (10.50.8.010.50.8.0 to 10.50.11.25510.50.11.255). Which extended CIDR range can be configured to expand the existing subnet without causing an IP address collision or violating GCP subnet expansion rules?

  1. 10.50.4.0/23Cevap
  2. B
    10.50.0.0/20
  3. C
    10.50.4.0/25
  4. D
    10.50.5.0/23

Cevap

10.50.4.0/23 is the valid expansion range because it encompasses the current range, adheres to CIDR alignment rules, and avoids overlapping with the peered network.
Expanding a primary subnet range in Google Cloud VPC requires choosing a larger prefix block (smaller prefix length) that encloses the original block and aligns with standard netmask boundaries without overlapping any peered VPC ranges. Expanding from 10.50.4.0/24 to 10.50.4.0/23 provides IPs 10.50.4.0 through 10.50.5.255, satisfying all expansion and non-overlap rules.

Adım Adım Çözüm

1
Analyze current subnet range and constraints
Current range is 10.50.4.0/24 (IPs 10.50.4.0–10.50.4.255). Peered range is 10.50.8.0/22 (IPs 10.50.8.0–10.50.11.255).
GCP subnets can only be expanded (prefix number reduced) and cannot overlap with peered networks.
2
Evaluate candidate expansion CIDRs for overlap and validity
10.50.4.0/23 spans 10.50.4.0–10.50.5.255. It contains the original /24 range, is properly aligned on a binary boundary, and does not reach the 10.50.8.0/22 boundary.
Expanding to /23 doubles the IP capacity without conflicting with existing routing rules or peered CIDR blocks.

Anahtar Kavram

Subnet IP Range Expansion in Google Cloud VPC
Tahmini Süre:1m 30s
Bu soruyu puanla