Shared VPC allows an organization to connect resources from multiple Google Cloud projects to a single, shared Virtual Private Cloud network. A centralized host project owns the network infrastructure, while attached service projects deploy compute resources directly into shared subnets. A Shared VPC Admin manages administrative permissions and establishes project attachments. Security teams delegate the Network User role at the individual subnet level rather than the project level, ensuring service project administrators can only deploy resources into assigned subnets while preventing unauthorized cross-network access.
Centralizing network administration keeps security policies consistent across the organization. The host project maintains full control over routing tables, IP address allocation, and firewall rules. Instances in service projects can communicate internally across subnets using private IP addresses without crossing the public internet. Egress network costs automatically trace back to the specific service project that created the traffic, ensuring precise billing attribution while preserving centralized governance.
Organizations often deploy a separate Shared VPC network for each operating environment, such as development, staging, and production. This separation creates clear network and project-level isolation boundaries while aligning identity and access controls to each deployment stage. When connecting to on-premises environments, administrators attach Cloud Interconnect or Cloud VPN directly to the Shared VPC host project. This centralized design allows all attached service projects to access hybrid routes without deploying redundant gateways in each project.
Layered security controls protect traffic entering and leaving the Shared VPC network. The host project hosts Cloud NAT gateways to provide outbound internet access for private VM instances without exposing them to incoming public connections. For advanced deep-packet inspection, administrators route traffic through a Network Virtual Appliance (NVA) positioned directly within the host network. To guard against data leaks, both the host project and all attached service projects must reside within the same VPC Service Controls perimeter.
Private Google Access for on-premises hosts allows internal workloads in on-premises data centers to reach Google APIs using private hybrid links. Traffic flows across Cloud VPN or Cloud Interconnect directly into the Google Cloud network without traversing the public internet. Network administrators configure a Cloud Router using Border Gateway Protocol (BGP) sessions to advertise Google virtual IP address ranges down to on-premises routing tables. Advertising these custom routes ensures enterprise traffic destined for Google APIs directs into the hybrid tunnel rather than a public internet gateway.
Choosing the correct route advertisement depends on the security requirements of the enterprise:
199.36.153.4/30): Limits network traffic exclusively to Google APIs and services supported by VPC Service Controls, blocking access to unsupported services.199.36.153.8/30): Directs traffic to a broader collection of Google APIs and services without enforcing VPC Service Controls perimeter constraints.On-premises systems require proper name resolution so API requests target the advertised private endpoints rather than default public addresses. Administrators configure Cloud DNS private zones or DNS response policies to map *.googleapis.com domains to the selected virtual IP address. On-premises DNS servers use forwarding rules to send API queries to Cloud DNS inbound server policies configured in the VPC. This mechanism guarantees that on-premises applications automatically resolve Google service hostnames to the designated private range.
Combining private virtual IP routing with VPC Service Controls creates an isolated perimeter around cloud resources. When traffic reaches the restricted VIP, Google Cloud evaluates the request against service perimeter rules before allowing access to the resource. Placing the Shared VPC host project and its service projects within this boundary prevents users from copying data to unapproved storage buckets or projects. This layered architecture keeps data transfers secure across both cloud and on-premises environments.
VPC Network Peering establishes private, internal IP connectivity between two separate VPC networks in the same project, different projects, or different organizations. Resources communicate directly with low latency across Google's internal network backbone without public IP addresses or intermediate gateways. The connection supports IPv4-only, dual-stack, and IPv6-only subnet designs across peered environments. A Compute Network Admin must initiate the peering configuration independently on both networks, as one-sided configurations will not establish connectivity.
Administrators control the flow of traffic between peered networks using custom route exchange settings. Each network explicitly configures whether it exports or imports custom static and dynamic routes. Route updates can follow an INDEPENDENT mode or require CONSENSUS mode, where changes take effect only after the peer network acknowledges them. Google Cloud limits peering modifications to one active operation at a time across the connected networks to prevent race conditions during configuration.
VPC Network Peering enforces strict boundary rules to maintain predictable routing behaviors across independent networks:
A peering connection moves through defined lifecycle states during management. The connection enters an ACTIVE state only after both networks submit matching configurations that point to each other. If either network administrator deletes the peering relationship, the connection state changes to INACTIVE on both sides and traffic stops immediately. Troubleshooting broken peering connections involves verifying matching route exchange flags, checking firewall rules on both networks, and confirming that neither network introduced overlapping subnet allocations.
Professional Cloud Security Engineer
Gauge your current knowledge
Gauge your current knowledge