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

# Alibaba Cloud Express Connect Configuration

The Alibaba Cloud side of the setup: accept the shared physical port, create the VBR, attach a VPC, and bring up BGP.

## Background Information

Alibaba Cloud Express Connect builds a fast, stable, secure private link between your on-premises data center and your VPCs. Traffic travels over the physical circuit instead of the public internet, which lowers latency and keeps network quality predictable.

Once your IDC reaches the Zenlayer backbone, Express Connect takes you to several VPCs inside the target region:

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-1ab5b091e8776efdd6a06146be4774b2bebbf5f0%2Falibaba-ec-overview.png?alt=media" alt=""><figcaption><p>An on-premises IDC reaching several Alibaba Cloud VPCs over the Zenlayer backbone</p></figcaption></figure>

## Terminology

| Term                               | Description                                                                               |
| ---------------------------------- | ----------------------------------------------------------------------------------------- |
| **VPC** (Virtual Private Cloud)    | The virtual network environment in your Alibaba Cloud account                             |
| **VBR** (Virtual Border Router)    | The virtual border router at the Alibaba Cloud access point                               |
| **CEN** (Cloud Enterprise Network) | A self-service private networking service that attaches and interconnects cloud resources |

The definitions follow the [**Express Connect terms**](https://www.alibabacloud.com/help/en/express-connect/product-overview/terms).

## Procedures

The Alibaba 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-caceaf9ac065e39d1c9fa944d0e5d7f7e2be4eca%2Falibaba-express-connect-flow.svg?alt=media" alt=""><figcaption><p>Alibaba Cloud-side setup flow</p></figcaption></figure>

{% stepper %}
{% step %}
**Accept the shared physical port**

After Zenlayer pushes the shared port to you, open the **Express Connect** console in that region, go to **Physical Connections**, find the shared port instance ID, and click **Accept and Pay**. The port then shows as available.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-84adeb63efa6db01d349e4b57ade8f21863081ac%2Falibaba-ec-accept-port.png?alt=media" alt=""><figcaption><p>Accept the shared physical port</p></figcaption></figure>

<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;">When you terminate the Express Connect service, delete this shared physical port as well — otherwise Alibaba Cloud keeps charging for the port. See the</mark> [<mark style="color:purple;">**billing overview**</mark>](https://www.alibabacloud.com/help/en/express-connect/product-overview/billing-overview)<mark style="color:blue;">.</mark>
{% endstep %}

{% step %}
**Create the virtual border router (VBR)**

Create a VBR on the shared port you accepted; it bridges traffic between the VPC and your on-premises workloads.

1. On the **Physical Connections** page, click the shared port instance ID.
2. In the VBR creation panel, confirm the physical port and the interface IP addresses.
3. Complete the creation.

<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;">A shared port carries exactly one VBR.</mark>

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-63b805658de9a59989a029eda11963a3cdefd278%2Falibaba-ec-vbr-1.png?alt=media" alt=""><figcaption><p>Create the VBR</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-32f0cddba5451c90602dc78ca25518199bf9985b%2Falibaba-ec-vbr-2.png?alt=media" alt=""><figcaption><p>Confirm the physical port and interface IPs</p></figcaption></figure>
{% endstep %}

{% step %}
**Attach the VBR to a VPC**

Choose one of the two methods below. CEN is recommended — it keeps network resources under one management plane.

**Option 1: through Cloud Enterprise Network (CEN)**

1. On the VBR page, select **Attach to CEN**, then configure routing in the CEN console.

   <figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-33dfde703153b25d1a261a1b77d95a15b2d76489%2Falibaba-ec-cen-1.png?alt=media" alt=""><figcaption><p>Attach the VBR to CEN</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-412ebf486fe4419b9fb33f2c44645ee69d8d714f%2Falibaba-ec-cen-2.png?alt=media" alt=""><figcaption><p>Confirm the attachment</p></figcaption></figure>
2. Attach the VPC to the CEN transit router as well, then turn on **route synchronization** under intra-region connection management.

   <figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-69d9a1c5d90ae1e5dbebb1bbe852e6c96b5dcb00%2Falibaba-ec-cen-vpc-1.png?alt=media" alt=""><figcaption><p>Attach the VPC to the transit router</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-78b3132d6c90e282635bbf247a60305fa245ec0b%2Falibaba-ec-cen-vpc-2.png?alt=media" alt=""><figcaption><p>Turn on route synchronization</p></figcaption></figure>
3. On the transit router route table page, add the association and route learning for the VBR.

   <figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-22c8447848c2ae7efce0f89eac8bda103b5f6cf1%2Falibaba-ec-cen-route-1.png?alt=media" alt=""><figcaption><p>Add the association for the VBR</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-50b31777e0f07ae476aa351e224cb50a72a5a08f%2Falibaba-ec-cen-route-2.png?alt=media" alt=""><figcaption><p>Configure route learning for the VBR</p></figcaption></figure>

**Option 2: through a peering connection**

The VBR uplink feature attaches the VPC to the VBR directly, which suits compact, clearly planned networks.

On the VBR page click **Create peering connection** and attach the VBR to your VPC. Both ends then show as **Activated**, and you add the destination routes manually — the VPC CIDR, the BGP peer CIDR, and your on-premises CIDR.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-2969af03776941de25a0efc9fe6291ade49246f8%2Falibaba-ec-peer-1.png?alt=media" alt=""><figcaption><p>Create the peering connection between the VBR and 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-c8bd739f46fccaafe04ab624772cb4c1e7a18fc7%2Falibaba-ec-peer-2.png?alt=media" alt=""><figcaption><p>Both ends show as Activated</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-14094eb85229f9cff5cb9d86748b7fd5d9c19f8b%2Falibaba-ec-peer-3.png?alt=media" alt=""><figcaption><p>Add the destination routes manually</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-8a02a4c4a658d15af2c0cba80131c9c6fd9838a7%2Falibaba-ec-peer-4.png?alt=media" alt=""><figcaption><p>Review the route table</p></figcaption></figure>
{% endstep %}

{% step %}
**Configure BGP peering**

1. On the VBR instance, create a **BGP group** with the BGP key and your local AS number.
2. Create a **BGP peer**: pick the group, enter the peer BGP IP, and decide whether to enable BFD.
3. Once the far end is configured, the BGP peer shows as **Established**.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-2ddd9859eced84e6942e58b78dc1d23ce23be5ef%2Falibaba-ec-bgp-1.png?alt=media" alt=""><figcaption><p>Create the BGP group</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-24d6b537392984db545ecf4d044c78ba107aaea4%2Falibaba-ec-bgp-2.png?alt=media" alt=""><figcaption><p>Create the BGP peer</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-055440a4aaa4baab1495e1b631068dcc3c201cf9%2Falibaba-ec-bgp-3.png?alt=media" alt=""><figcaption><p>The BGP peer shows as Established</p></figcaption></figure>
{% endstep %}

{% step %}
**Advertise the prefixes and verify**

Once BGP is up, the VBR learns your on-premises prefixes automatically. You still advertise the VPC CIDR towards your site: click **Advertise BGP CIDR blocks** and enter the VPC CIDR. Then test connectivity between your site and the cloud.

<figure><img src="https://3201622183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9X3FDdkCL2HzhbPpPMFt%2Fuploads%2Fgit-blob-b380a7d0d147a45c1041c0e94e72380edc5e08e6%2Falibaba-ec-advertise-1.png?alt=media" alt=""><figcaption><p>Advertise the BGP CIDR blocks</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-9c56d7fee8578f14b32a0f28748cd6094e7fc067%2Falibaba-ec-advertise-2.png?alt=media" alt=""><figcaption><p>Test connectivity between on-premises and the cloud</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## References

* [**Express Connect terms**](https://www.alibabacloud.com/help/en/express-connect/product-overview/terms)
* [**Create and manage a VBR**](https://www.alibabacloud.com/help/en/express-connect/user-guide/create-and-manage-a-vbr)
* [**Configure and manage BGP**](https://www.alibabacloud.com/help/en/express-connect/user-guide/configure-and-manage-bgp)
