hardgcloud

Create a new subnet within a VPC network with a specified IP range

command

gcloud compute networks subnets create SUBNET --network NETWORK --region REGION --range RANGE

also accepted

gcloud compute networks subnets create

Command breakdown

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

gcloudcomputenetworkssubnetscreateSUBNET--networkNETWORK--regionREGION--rangeRANGE
FlagPurpose
--networkBoolean flag
--regionBoolean flag
--rangeBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →