Google Cloud VPC works slightly differently from AWS. Let's explore GCP subnetting.
GCP uses auto-mode or custom-mode VPC:
In GCP, subnets are REGIONAL — tied to a specific region:
us-central1: 10.128.0.0/20 us-east1: 10.129.0.0/20 europe-west1: 10.130.0.0/20
Each region gets its own subnet.
| CIDR | Hosts | Note |
|---|---|---|
| /29 | 5 | Minimum |
| /20 | 4,094 | Default auto-mode |
| /16 | 65,534 | Large networks |
VPC: 10.0.0.0/16 Frontend: 10.0.1.0/24 (us-central1) Backend: 10.0.2.0/24 (us-central1) Database: 10.0.10.0/24 (us-central1)
| Feature | GCP | AWS |
|---|---|---|
| Subnet scope | Regional | AZ-specific |
| Auto mode | Yes | No |
| Min subnet | /29 | /28 |