> 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/tencent-cloud-configuration.md).

# Tencent Cloud Direct Connect Configuration

The Tencent Cloud side of the setup: create the VPC and the direct connect gateway, request the shared tunnel, and bring up BGP.

## Background Information

Tencent Cloud Direct Connect builds a stable, fast, secure, low-latency private link between your on-premises workloads and your Tencent Cloud resources. Going through Zenlayer, you do not have to build the physical circuit yourself: one connection reaches compute resources across several regions, with a steadier experience than the public internet.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-e90ad2e2410e29e0c5ad164213c638f7c1a43064%2Ftencent-dc-overview.png?alt=media" alt=""><figcaption><p>The logical and physical layers of a Tencent Cloud Direct Connect</p></figcaption></figure>

## Terminology

| Term                            | Description                                                                                                                                        |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**                  | The physical circuit — the hardware link between your router and the Tencent Cloud device                                                          |
| **Dedicated Tunnel**            | A network partition of the physical connection. Different tunnels attach to different direct connect gateways, so one circuit reaches several VPCs |
| **VPC** (Virtual Private Cloud) | The isolated, secure network environment you run in the cloud                                                                                      |
| **Direct Connect Gateway**      | The entry point for connection traffic into a VPC; it can carry several tunnels and reach several on-premises sites                                |

The definitions follow the [**Tencent Cloud Direct Connect documentation**](https://www.tencentcloud.com/document/product/216/19249).

## Procedures

The Tencent 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-7e198d12f0988d856bd6d92198f9e2987b182208%2Ftencent-direct-connect-flow.svg?alt=media" alt=""><figcaption><p>Tencent Cloud-side setup flow</p></figcaption></figure>

BGP between your side and Tencent Cloud can be set up in two ways:

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-ba5fb357d05b40a28202e62f3c8a442437acd0d8%2Ftencent-dc-bgp-peering-modes.png?alt=media" alt=""><figcaption><p>The two BGP peering arrangements</p></figcaption></figure>

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

On the Tencent Cloud console, open **Virtual Private Cloud** in the target region, click **Create**, and set the name, CIDR block, and subnets.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-ed736bac68ae5861b0de8b88c3bea942ecb7b80d%2Ftencent-dc-vpc-1.png?alt=media" alt=""><figcaption><p>Create the VPC</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-7e66bcaa6468594076684dc315708c5323f130b4%2Ftencent-dc-vpc-2.png?alt=media" alt=""><figcaption><p>Set the name, CIDR block, and subnets</p></figcaption></figure>
{% endstep %}

{% step %}
**Create the direct connect gateway**

On the Tencent Cloud console, open **Direct Connect Gateway**, click **Create**, enter a name, and bind a VPC in the same region.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-c1548f90e2abee8a999cb115b011843e0200dc35%2Ftencent-dc-gateway-1.png?alt=media" alt=""><figcaption><p>Create the direct connect gateway</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-849f5e7f8e7e23a0e2797ffa77fb4f306f0a8608%2Ftencent-dc-gateway-2.png?alt=media" alt=""><figcaption><p>Bind a VPC in the same region</p></figcaption></figure>
{% endstep %}

{% step %}
**Request the shared dedicated tunnel**

1. A Zenlayer solutions engineer confirms the overall network design with you, including which Tencent Cloud location the tunnel lands on and how high availability is handled.
2. Send Zenlayer your **Tencent Cloud account ID**. Zenlayer gives you the **connection provider ID** and the **shared tunnel ID** — the circuit Zenlayer has physically established with Tencent Cloud. Both IDs are also shown in the Tencent Cloud connection details on zenConsole.

   <figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-13f3338a35f678f5e4cebe130b03501e47848610%2Fimage%20(3)%20(1).png?alt=media&amp;token=646776c7-d9b6-47f7-82d5-ffe5f2b338a2" alt=""><figcaption><p>Tencent Cloud connection details on zenConsole</p></figcaption></figure>
3. On the Tencent Cloud console, go to **Direct Connect** > **Shared Dedicated Tunnel** and click **Create**. Enter the connection provider ID and the shared tunnel ID, and attach the tunnel to your VPC or to Cloud Connect Network (CCN).
4. Click **Next** and set the connection parameters for your design.
5. Click **Submit**. Zenlayer approves the request and completes the end-to-end setup.

<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 Tencent Cloud-side ASN is</mark> <mark style="color:blue;"></mark><mark style="color:blue;">`45090`</mark><mark style="color:blue;">, and the Zenlayer-side ASN is</mark> <mark style="color:blue;"></mark><mark style="color:blue;">`62610`</mark><mark style="color:blue;">. The connection parameters stay editable after you submit the request.</mark>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-9c2214433109d716dbe5e6a002ce29e5922f2c5d%2Ftencent-dc-shared-tunnel-1.png?alt=media" alt=""><figcaption><p>Create the shared dedicated tunnel</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-83db614147b819581f22faddb10adb76c01fda3c%2Ftencent-dc-shared-tunnel-2.png?alt=media" alt=""><figcaption><p>Set the connection parameters and submit</p></figcaption></figure>
{% endstep %}

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

Configure BGP on your router as planned, then confirm that the session is established and the virtual interface is available. Both sides then start learning each other's routes.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-34756c3315de586727130b5b85909274a6e9038d%2Faws-dx-router-bgp.png?alt=media" alt=""><figcaption><p>The BGP session on the on-premises router</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## References

* [**Tencent Cloud Direct Connect overview**](https://www.tencentcloud.com/document/product/216/19249)
* [**Create a VPC**](https://www.tencentcloud.com/document/product/215/31891)
* [**Create a direct connect gateway**](https://www.tencentcloud.com/document/product/216/19256)
* [**Apply for a shared tunnel**](https://www.tencentcloud.com/document/product/216/48575)
