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

# Huawei Cloud Direct Connect Configuration

The Huawei Cloud side of the setup: confirm the project ID, create the VPC, configure the hosted connection and virtual interface, and bring up BGP.

## Background Information

Huawei Cloud Direct Connect (DC) builds a fast, low-latency, stable, and secure private channel between your on-premises data center and your Huawei Cloud VPC. You keep your existing IT estate while using Huawei Cloud services, for a flexible and scalable hybrid cloud.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-f2c43b3f633820bc6d7437f643f70a4c57c24366%2Fhuawei-dc-overview.png?alt=media" alt=""><figcaption><p>A Huawei Cloud Direct Connect: data center, carrier, Huawei Cloud</p></figcaption></figure>

## Terminology

| Term                      | Description                                                                                                                                                                 |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Operations connection** | The hardware link between your router and Huawei Cloud                                                                                                                      |
| **Hosted connection**     | The logical link that reaches Huawei Cloud, assigned to you by Zenlayer                                                                                                     |
| **VPC**                   | The isolated, secure network environment provided logically                                                                                                                 |
| **Virtual gateway**       | The logical gateway through which a connection reaches a VPC. A VPC has exactly one virtual gateway, and several connections can reach the same VPC through it              |
| **Virtual interface**     | The entry point from your site into the VPC. Creating a virtual interface links the connection to the virtual gateway, so your data center and the VPC can reach each other |

The definitions follow the [**Huawei Cloud Direct Connect glossary**](https://support.huaweicloud.com/intl/en-us/pcre_gls/index.html?product=dc).

## Procedures

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

Two onboarding designs are available on the Huawei Cloud side:

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-a98672a89c3bce024d60b9766445a22a20d98c37%2Fhuawei-dc-sdn1.png?alt=media" alt=""><figcaption><p>Design 1</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-722bbb6d941308d5f289e4558cb3ab28c2290313%2Fhuawei-dc-sdn2.png?alt=media" alt=""><figcaption><p>Design 2</p></figcaption></figure>

{% stepper %}
{% step %}
**Confirm which project the access node belongs to**

Under your account information, open **My Credentials**, confirm which project the access node belongs to, and send the **project ID** to Zenlayer. Zenlayer assigns the connection based on that project ID.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-aa057d62d0833791e2d213ce0457cfb48be19370%2Fhuawei-dc-project-id.png?alt=media" alt=""><figcaption><p>Find the project ID under My Credentials</p></figcaption></figure>
{% endstep %}

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

On the Huawei Cloud console, open **Virtual Private Cloud**, click **Create VPC**, and set the region, name, and CIDR block. You can also create it while creating the virtual gateway and attach it directly.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-022d386694a99cf20ea2644f8da7b0f3e4ce303f%2Fhuawei-dc-vgw.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-287ca70efadbc6a706e31fac022099120e1b8084%2Fhuawei-dc-vif.png?alt=media" alt=""><figcaption><p>Set the region, name, and CIDR block</p></figcaption></figure>
{% endstep %}

{% step %}
**Check and configure the hosted connection**

Once Zenlayer has assigned it, the hosted connection appears under that project and region. Then:

1. Create the **virtual gateway** and attach it to the VPC.
2. Create the **virtual interface**, linking the connection to the virtual gateway, which completes the cloud-side setup.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-aa057d62d0833791e2d213ce0457cfb48be19370%2Fhuawei-dc-project-id.png?alt=media" alt=""><figcaption><p>The assigned hosted connection</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-022d386694a99cf20ea2644f8da7b0f3e4ce303f%2Fhuawei-dc-vgw.png?alt=media" alt=""><figcaption><p>Create the virtual gateway and attach 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-287ca70efadbc6a706e31fac022099120e1b8084%2Fhuawei-dc-vif.png?alt=media" alt=""><figcaption><p>Create the virtual interface</p></figcaption></figure>
{% endstep %}

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

Configure BGP on your router as planned, then confirm 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-cf880ad491cebc0899758e92e971bb79641ffec0%2Fhuawei-dc-router-bgp.png?alt=media" alt=""><figcaption><p>The BGP session on the on-premises router</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## References

* [**Huawei Cloud Direct Connect glossary**](https://support.huaweicloud.com/intl/en-us/pcre_gls/index.html?product=dc)
* [**Huawei Cloud Direct Connect documentation**](https://support.huaweicloud.com/intl/en-us/dc/index.html)
