> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cloud-networking/get-started/validate-connection-in-public-cloud/google-cloud-configuration.md).

# Google Cloud Interconnect Configuration

The Google Cloud side of the setup: create the VPC and Cloud Router, generate the pairing key, activate the VLAN attachment, and bring up BGP.

## Background Information

Google Cloud Interconnect builds a private connection between your equipment and Google Cloud. Through any Zenlayer Interconnect location, you can establish a Partner Interconnect between your data center, office, or colocation environment and Google Cloud, and reach the internal IP addresses of your VPC directly from your own network.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-21c3cb736abc7449e2934a6738be8f4b8e5e59e0%2Fgcp-interconnect-overview.png?alt=media" alt=""><figcaption><p>A Google Cloud Partner Interconnect connection</p></figcaption></figure>

## Terminology

| Term                | Description                                                                                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **VPC**             | The virtual network environment in your Google Cloud project                                                         |
| **Cloud Router**    | The virtual gateway of a single VPC, attached directly to the VLAN attachment                                        |
| **VLAN attachment** | The logical connection between your network and the VPC's virtual router                                             |
| **Zone**            | Every region has at least two; they are never under maintenance at the same time, which isolates planned maintenance |

The definitions follow the [**Google Cloud Interconnect terminology**](https://cloud.google.com/network-connectivity/docs/interconnect/concepts/terminology).

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>

<mark style="color:blue;">Interconnect is not available in these Google Cloud regions:</mark>

* <mark style="color:blue;">australia-southeast1 (Sydney)</mark>
* <mark style="color:blue;">australia-southeast2 (Melbourne)</mark>
* <mark style="color:blue;">asia-south1 (Mumbai)</mark>
* <mark style="color:blue;">asia-south2 (Delhi)</mark>
  {% endhint %}

## Procedures

The Google Cloud-side setup runs as follows:

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-d84863cf7c8af87523612b10befa7bf4009107a1%2Fgoogle-interconnect-flow.svg?alt=media" alt=""><figcaption><p>Google Cloud-side setup flow</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-461d22fef05ff1328e8ca782d169e47c9d41031a%2Fgcp-interconnect-architecture.png?alt=media" alt=""><figcaption><p>An on-premises router reaching Google Cloud over the Zenlayer backbone</p></figcaption></figure>

{% stepper %}
{% step %}
**Create the VPC network**

On the **VPC network** page, select **VPC networks**, click **CREATE VPC NETWORK**, enter the name and region, and configure the subnets.

**Dynamic routing mode** defaults to **Regional**, which means the Cloud Router advertises routes only within its own region.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-55f4b870727c0c6f151d72f9848773bdc5980932%2Fgcp-vpc-1.png?alt=media" alt=""><figcaption><p>Create the VPC network</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-c3259fba606d7c378f74a597ad6dfaae77f714a3%2Fgcp-vpc-2.png?alt=media" alt=""><figcaption><p>Set the dynamic routing mode</p></figcaption></figure>
{% endstep %}

{% step %}
**Create the Cloud Router**

Go to **Hybrid Connectivity**, select **Cloud Router**, click **CREATE ROUTER**, and attach the VPC and region you need. The Google Cloud ASN defaults to `16550`.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-a9e6c3a00d4e3abf9600170f504fce16ab174d00%2Fgcp-cloud-router-1.png?alt=media" alt=""><figcaption><p>Open the Cloud Router creation page</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-e4c8ed7a6d44df024b543c96d7a5d7c1fd59ce2d%2Fgcp-cloud-router-2.png?alt=media" alt=""><figcaption><p>Attach the VPC and region, and set the ASN</p></figcaption></figure>
{% endstep %}

{% step %}
**Generate the VLAN attachment pairing key**

1. Back on **Hybrid Connectivity**, select **Interconnect**, confirm you are in the right project, and click **ADD VLAN ATTACHMENT**.
2. For **Interconnect Type**, choose **Partner Interconnect** and then **I ALREADY HAVE A SERVICE PROVIDER**.
3. Choose the redundancy you need. A single circuit needs one VLAN attachment; for a redundant pair, build two Cloud Routers and two VLAN attachments, generating a pairing key in zone 1 and in zone 2.
4. Attach the VPC and Cloud Router. A single-use **pairing key** is then generated.

Send the pairing key and the shared circuit's VLAN details to Zenlayer. Once Zenlayer finishes the provider-side configuration, you are asked to activate the VLAN attachment.

<img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-5961bea9ac389c1aa2f03164b5622f10a99895e1%2FIcon.svg?alt=media&amp;token=b85eac46-fd05-4800-aa2b-8db408b8af26" alt="" data-size="line"><mark style="color:blue;">**Note**</mark>\ <mark style="color:blue;">The pairing key is single use — it expires once it has been paired.</mark>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-57b178474d9cb28082262e1bcd52d3669d5774f1%2Fgcp-vlan-attachment-1.png?alt=media" alt=""><figcaption><p>Start the VLAN attachment flow</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-07170a9e11b23b5e87426682bcd8a687887b25e4%2Fgcp-vlan-attachment-2.png?alt=media" alt=""><figcaption><p>Choose Partner Interconnect and the redundancy</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-b549c983fb0091b491862b6d262e4b5a0750b5ab%2Fgcp-peer-asn.png?alt=media" alt=""><figcaption><p>The single-use pairing key</p></figcaption></figure>
{% endstep %}

{% step %}
**Bring up BGP**

Open the activated VLAN attachment and enter the peer ASN:

* **Cloud router (Layer 3)**: enter the Zenlayer-side ASN `62610`.
* **Private connect (Layer 2)**: enter the ASN of the far-end network.

Share that page with Zenlayer. Once Zenlayer reports the far end as configured, the VLAN attachment's **Status** turns **up**.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-b549c983fb0091b491862b6d262e4b5a0750b5ab%2Fgcp-peer-asn.png?alt=media" alt=""><figcaption><p>Enter the peer ASN</p></figcaption></figure>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-94ad392d69797f3ed63c6dfbfb07c8ced83b0b6d%2Fgcp-attachment-up.png?alt=media" alt=""><figcaption><p>The VLAN attachment shows up</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## On zenConsole

Use the pairing key from Google Cloud to create the cloud connection:

* [**Private connect**](https://docs.console.zenlayer.com/welcome/cloud-networking/get-started/create-a-layer-2-connection/select-a-public-cloud-as-access-point.md)
* [**Cloud router**](https://docs.console.zenlayer.com/welcome/cloud-networking/get-started/create-a-layer-3-connection/select-a-public-cloud-as-access-point.md)

## References

* [**Google Cloud Interconnect terminology**](https://cloud.google.com/network-connectivity/docs/interconnect/concepts/terminology)
* [**Create VLAN attachments**](https://cloud.google.com/network-connectivity/docs/interconnect/how-to/partner/creating-vlan-attachments)
* [**Activate VLAN attachments**](https://cloud.google.com/network-connectivity/docs/interconnect/how-to/partner/activating-connections)
