Subnets in GCP
- VPC in GCP doesnot have an associated IP Range
- Subnet is a logical network partition.
- Subnet is a regional resource
- Network IP range can associated with subnet with any of the private IP Ranges
- Exercise: Lets create a network in GCP in your project
- subnet-1 => us-east-1 => 10.10.0.0/24
- subnet-2 => us-central-1 => 192.168.0.0/24
- subnet-3 => us-west-1 => 172.16.0.0/24
- Exercise: Create the network with same network ranges and different names for vpc using gcloud cli
- Refer Here for gcloud cli cheatsheet
- gcloud reference page Refer Here
- To create a gcp vpc Refer Here
- Now we need to add a subnet Refer Here
- Now add other two subnets
- Refer Here for the changes done
- Now find a gcloud command to view the existing vpc’s Refer Here
- Now find a command to view subnets in a network Refer Here
- Exercise: Write gcloud cli to delete all the created subnets and vpc
- for the changeset Refer Here
- for the changeset Refer Here
