Interconnect VLAN Attachments
You'll learn how to configure VLAN attachments and Cloud Routers to establish private connectivity between your on-premises network and Google Cloud.
What Are VLAN Attachments?
Think of a VLAN attachment as a labeled "lane" on a highway (your Interconnect connection). The physical Interconnect provides the raw road, but VLAN attachments create dedicated, isolated lanes that connect specific VPCs to your on-premises network. Each attachment uses an 802.1Q VLAN tag to separate traffic logically.
Core Components
VLAN Attachment: A logical connection that associates a VLAN ID with a specific VPC network. You configure this in Google Cloud Console or via gcloud compute interconnects attachments create.
Cloud Router: Acts as your BGP routing endpoint in Google Cloud. It exchanges routes with your on-premises router, dynamically learning which IP prefixes exist on each side. Without a Cloud Router, your VLAN attachment won't know where to send traffic.
Configuration Flow
- Create a Cloud Router in your target VPC region
- Create a VLAN attachment linked to your Interconnect and Cloud Router
- Google assigns you a VLAN ID and a BGP peering IP address pair (
/29subnet) - Configure your on-premises router with the matching VLAN tag and BGP settings
- Establish BGP peering—routes are now exchanged automatically
This setup allows your VPC resources to communicate privately with on-premises systems using internal IP addresses, avoiding the public internet entirely.
Key Takeaway: VLAN attachments combine Cloud Routers and VLAN tagging to create isolated, BGP-routed pathways between your VPC and on-premises infrastructure over Google Cloud Interconnect.