Soru

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

An administrator needs to expand the IP range of an existing subnet in a Google Cloud Virtual Private Cloud (VPC) network. The current subnet is configured with the primary IP address range 10.1.0.0/2410.1.0.0/24. Which of the following IP ranges is valid for expanding this subnet?

  1. 10.1.0.0/23Cevap
  2. B
    10.1.0.0/25
  3. C
    10.1.1.0/24
  4. D
    10.2.0.0/23

Cevap

The IP range 10.1.0.0/23 is the valid choice because it expands the existing 10.1.0.0/24 block while completely containing all existing IP addresses within the subnet.
In Google Cloud VPC, expanding a subnet requires reducing the prefix length (e.g., from /24 to /23). The range 10.1.0.0/23 spans from 10.1.0.0 to 10.1.1.255, which smoothly encompasses all IP addresses in the existing 10.1.0.0/24 block without service disruption.

Adım Adım Çözüm

1
Identify the existing subnet prefix and netmask
The current IP range is 10.1.0.0/24, covering addresses from 10.1.0.0 through 10.1.0.255.
Expanding a subnet requires selecting a broader range (smaller prefix number) that encompasses the current range.
2
Evaluate the netmask rules for GCP VPC subnet expansion
Changing the netmask from /24 to /23 expands the address space to cover 10.1.0.0 through 10.1.1.255.
GCP subnet expansion only permits decreasing prefix lengths without modifying the base start of the IP block in a way that excludes existing addresses.

Anahtar Kavram

VPC Subnet IP Range Expansion Rules
Bu soruyu puanla