Week 11 GCP Notes
Week 11 GCP Notes
What is a VPC?
• A VPC builds private networks on top of Google’s global network.
• Allows deployment of Infrastructure-as-a-Service resources like compute instances and
containers.
• VPCs span all GCP regions but have no IP address ranges themselves.
Subnets
• VPCs contain subnets, regional resources that define IP ranges for VMs.
• VMs in the same VPC but different regions can communicate privately without public IP
addresses.
• Subnets use Classless Inter-Domain Routing (CIDR) notation.
Routes
• Routes direct traffic within a VPC and to destinations outside the network.
• Each route consists of a destination and a next hop.
• Routes allow instances to communicate across subnets within the same VPC.
Firewall Rules
• Protect VMs from unapproved connections (both ingress and egress).
• Firewall rules are applied to the network but affect traffic at the instance level.
• Stateful firewall rules allow bi-directional communication once a connection is established.
Shared VPC
• Allows multiple projects within an organization to share a common VPC.
• Projects can communicate privately using internal IP addresses.
Cloud VPN
• Securely connects on-premise networks to GCP through an IPSEC VPN tunnel.
• Supports both static and dynamic routing using Cloud Router.
Cloud Interconnect
• Dedicated Interconnect: Direct physical connection to Google’s network, ideal for high-
capacity requirements.
• Partner Interconnect: Connectivity through a service provider for smaller capacity needs.