QuestionQ134

VerifiedEnsuring the successful operation of a cloud solution

You have virtual machines running in a subnet whose subnet mask is 255.255.255.240. This subnet currently has no available IP addresses left, and you need 10 more IP addresses for new VMs. Both the existing VMs and the new VMs must be able to communicate with each other without requiring any additional routes. What should you do?

Explanation

Google Cloud allows you to expand the primary IP range of an existing subnet in place (for example, with gcloud compute networks subnets expand-ip-range), as long as the new range is a superset of the current one and doesn't overlap with other subnets in the network. This preserves the subnet's identity and existing VM configurations while providing additional IP addresses, and because all VMs remain within the same subnet/VPC network, they can reach each other directly without any extra routes being configured.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!