Arcade Base Camp October 2026 | GSP211

Solution for Arcade Base Camp October 2026 | GSP211. 1 lab: GSP211. Fast copy-paste commands for Google Cloud.

GSP211 — Multiple VPC Networks

Estimated time: 25 minutes

# 🚀 Multiple VPC Networks | GSP211 > ⚠️ **Disclaimer:** This is an independent, community-made walkthrough created for educational purposes, hands-on practice, and Google Cloud certification preparation. This guide is designed to help learners understand network isolation, multiple VPC networks, subnets, firewall rules, and multi-interface virtual machines. Always attempt the lab yourself first and follow Google Cloud Skills Boost / Qwiklabs Terms of Service. This walkthrough is not affiliated

clear
# Professional ANSI Color Variables
CYAN='\033[1;36m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
RESET='\033[0m'
BOLD='\033[1m'

echo -e "${CYAN}${BOLD}"
echo "   ____       _    _ _             __   ___             "
echo "  / __ \     | |  (_) |           / _| / _ \            "
echo " | |  | |_ __| |__  _| |_  ___   | |_ | | | |_ __ ___  "
echo " | |  | | '__| '_ \| | __| / _ \ |  _|| | | | '_ \ / __| "
echo " | |__| | |  | |_) | | |_ | (_) || |  | |_| | |_) \__ \ "
echo "  \____/|_|  |_.__/|_|\__| \___/ |_|   \___/| .__/|___/ "
echo "                                            | |         "
echo "                                            |_|         "
echo -e "${RESET}"

echo -e "${YELLOW}▶ Detecting pre-provisioned regions and zones...${RESET}"
export ZONE_1=$(gcloud compute instances list --filter="name=mynet-vm-1" --format='value(zone)')
export ZONE_2=$(gcloud compute instances list --filter="name=mynet-vm-2" --format='value(zone)')

export REGION_1=$(echo "$ZONE_1" | cut -d '-' -f 1-2)
export REGION_2=$(echo "$ZONE_2" | cut -d '-' -f 1-2)

echo -e "${BLUE}▶ Creating custom VPC 'managementnet' and subnets...${RESET}"
gcloud compute networks create managementnet --subnet-mode=custom
gcloud compute networks subnets create managementsubnet-1 --network=managementnet --region=$REGION_1 --range=10.130.0.0/20

echo -e "${BLUE}▶ Creating custom VPC 'privatenet' and subnets...${RESET}"
gcloud compute networks create privatenet --subnet-mode=custom
gcloud compute networks subnets create privatesubnet-1 --network=privatenet --region=$REGION_1 --range=172.16.0.0/24
gcloud compute networks subnets create privatesubnet-2 --network=privatenet --region=$REGION_2 --range=172.20.0.0/20

echo -e "${YELLOW}▶ Configuring Firewall Rules...${RESET}"
gcloud compute firewall-rules create managementnet-allow-icmp-ssh-rdp \
    --direction=INGRESS --priority=1000 --network=managementnet --action=ALLOW \
    --rules=icmp,tcp:22,tcp:3389 --source-ranges=0.0.0.0/0
gcloud compute firewall-rules create privatenet-allow-icmp-ssh-rdp \
    --direction=INGRESS --priority=1000 --network=privatenet --action=ALLOW \
    --rules=icmp,tcp:22,tcp:3389 --source-ranges=0.0.0.0/0

echo -e "${BLUE}▶ Provisioning VM Instances...${RESET}"
gcloud compute instances create managementnet-vm-1 \
    --zone=$ZONE_1 --machine-type=e2-micro --subnet=managementsubnet-1
gcloud compute instances create privatenet-vm-1 \
    --zone=$ZONE_1 --machine-type=e2-micro --subnet=privatesubnet-1

echo -e "${CYAN}▶ Provisioning Multi-NIC VM Appliance...${RESET}"
gcloud compute instances create vm-appliance \
    --zone=$ZONE_1 \
    --machine-type=e2-standard-4 \
    --network-interface=network-tier=PREMIUM,stack-type=IPV4_ONLY,subnet=privatesubnet-1 \
    --network-interface=network-tier=PREMIUM,stack-type=IPV4_ONLY,subnet=managementsubnet-1 \
    --network-interface=network-tier=PREMIUM,stack-type=IPV4_ONLY,subnet=mynetwork

echo -e "${GREEN}✓ All VPCs, subnets, firewall rules, and instances provisioned successfully! You may now click 'Check my progress' on all objectives.${RESET}"