Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.27 KB

File metadata and controls

51 lines (36 loc) · 1.27 KB

GSP193 - VPC Network Peering

Task 1. VPC network peering setup

Project A

  1. 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
  2. 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

Task 2. Setting up a VPC Network Peering session

Task 3. Connectivity test