gcloud compute networks subnets create

From wikieduonline
Jump to navigation Jump to search

# 1. Create a custom VPC network
gcloud compute networks create [NETWORK_NAME] \
 --project=[PROJECT_ID] \
 --subnet-mode=custom \
 --bgp-routing-mode=regional
# 2. Add a subnet with the exact range you want
gcloud compute networks subnets create [SUBNET_NAME] \
 --project=[PROJECT_ID] \
 --network=[NETWORK_NAME] \
 --region=[REGION] \
 --range=[IP_RANGE]

See also[edit]

Advertising: