January 2019
Intermediate to advanced
484 pages
11h 48m
English
VPC in GCP is quite a different policy compared with AWS. First of all, you don't need to set the CIDR prefix to VPC. In other words, you can't set CIDR to VPC. Instead, you just add one or some subnets to the VPC. Because you have to set certain CIDR blocks with a subnet, GCP VPC is therefore identified as a logical group of subnets, and subnets within VPC can communicate with each other.
Note that GCP VPC has two subnet modes, either auto or custom. If you choose auto, it will create some subnets on each region with predefined CIDR blocks. For example, type the following command:
$ gcloud compute networks create my-auto-network --subnet-mode auto
This will create 18 subnets as shown in the following screenshot (because, as of December ...
Read now
Unlock full access