0
0
GCPcloud~30 mins

Subnet modes (auto, custom) in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Subnet Modes in Google Cloud Platform
📖 Scenario: You are setting up a Virtual Private Cloud (VPC) network in Google Cloud Platform (GCP) for a small company. You need to understand how subnet modes work to create the network properly.Subnet modes control how subnets are created in a VPC. There are two main modes: auto and custom. Auto mode automatically creates subnets in all regions, while custom mode lets you create subnets manually.
🎯 Goal: Create a VPC network in GCP with auto subnet mode, then create another VPC network with custom subnet mode and add a subnet manually.
📋 What You'll Learn
Create a VPC network named auto-network with auto subnet mode.
Create a VPC network named custom-network with custom subnet mode.
Create a subnet named custom-subnet in custom-network with the IP range 10.0.1.0/24 in the us-central1 region.
💡 Why This Matters
🌍 Real World
Setting up VPC networks with correct subnet modes is essential for organizing cloud resources and controlling network traffic in real projects.
💼 Career
Cloud engineers and network administrators often configure VPCs and subnets to meet security and architecture requirements.
Progress0 / 4 steps
1
Create a VPC network with auto subnet mode
Write the gcloud command to create a VPC network called auto-network with auto subnet mode.
GCP
Need a hint?

Use gcloud compute networks create with the --subnet-mode=auto flag.

2
Create a VPC network with custom subnet mode
Write the gcloud command to create a VPC network called custom-network with custom subnet mode.
GCP
Need a hint?

Use gcloud compute networks create with the --subnet-mode=custom flag.

3
Create a subnet in the custom network
Write the gcloud command to create a subnet named custom-subnet in the custom-network network with IP range 10.0.1.0/24 in the us-central1 region.
GCP
Need a hint?

Use gcloud compute networks subnets create with the --network, --region, and --range flags.

4
Verify the networks and subnets
Write the gcloud commands to list all networks and list all subnets in the custom-network network.
GCP
Need a hint?

Use gcloud compute networks list to see all networks and gcloud compute networks subnets list --network=custom-network to see subnets in the custom network.