hardgcloud

Expand the IP range of an existing subnet to a larger CIDR prefix

command

gcloud compute networks subnets expand-ip-range SUBNET --region REGION --prefix-length PREFIX

also accepted

gcloud compute networks subnets expand-ip-range

Command breakdown

Part of the Google Cloud CLI (gcloud) — Networking category.

gcloudcomputenetworkssubnetsexpand-ip-rangeSUBNET--regionREGION--prefix-lengthPREFIX
FlagPurpose
--regionBoolean flag
--prefix-lengthBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →