-
Setting Network dan buat vm di project A
gcloud compute networks create network-a --subnet-mode custom
gcloud compute networks subnets create network-a-subnet --network network-a \ --range 10.0.0.0/16 --region us-west1
gcloud compute instances create vm-a --zone us-west1-a --network network-a --subnet network-a-subnet --machine-type e2-small
gcloud compute firewall-rules create network-a-fw --network network-a --allow tcp:22,icmp
-
Setting Network dan buat vm di project B
gcloud config set project qwiklabs-gcp-01-76aa41cd9989
gcloud compute networks create network-b --subnet-mode custom
gcloud compute networks subnets create network-b-subnet --network network-b \ --range 10.8.0.0/16 --region us-west1
gcloud compute instances create vm-b --zone us-west1-a --network network-b --subnet network-b-subnet --machine-type e2-small
gcloud compute firewall-rules create network-b-fw --network network-b --allow tcp:22,icmp