Course contentsShow
← Cloud and Infrastructure
Lesson 2206 of 2,98947. Advanced NetworkingFree lesson

Interconnect VLAN Attachments

Configuring VLAN attachments and Cloud Routers for Google Cloud Interconnect connections.

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

  1. Create a Cloud Router in your target VPC region
  2. Create a VLAN attachment linked to your Interconnect and Cloud Router
  3. Google assigns you a VLAN ID and a BGP peering IP address pair (/29 subnet)
  4. Configure your on-premises router with the matching VLAN tag and BGP settings
  5. 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.