Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Static Routing)

ET

  • API Reference
    • API function release records
    • Appendix
    • Common Request Headers and Response Headers
    • Dedicated Line Related Interfaces
      • Add dedicated channel routing parameters
      • Add dedicated channel user object
      • Apply for physical dedicated line
      • Associate dedicated channel
      • Create dedicated channel
      • Create routing rules of Dedicated channel
      • Delete dedicated channel
      • Delete routing rules of dedicated channel
      • Disable dedicated channel IPv6 function
      • Disassociate dedicated channel
      • Enable IPv6 function for the dedicated channel
      • Modify the dedicated channel routing rules
      • Query dedicated channel
      • Query dedicated line details
      • Query dedicated line list
      • Query the routing rules of the dedicated channel
      • Remove dedicated channel route parameters
      • Remove dedicated channel user object
      • Resubmit the dedicated channel
      • Update dedicated channel
      • Update physical dedicated line
    • Error code
    • General Description
    • Interface Overview
    • Overview
    • Service domain
  • FAQs
    • General Problems
  • Function Release Records
  • Getting Started Guide
    • Getting Started Guide
    • On-Premises IDC and Cloud VPC Interconnection
      • Add dedicated channel
      • Add network instance
      • Apply for physical dedicated line
      • Configure user-side routing and test connectivity
      • Create dedicated gateway
  • Operation guide
    • Dedicated channel
      • Add cross-account dedicated channel
      • Add dedicated channel
      • Dedicated Channel Cross-Account Authorization for Cloud Smart Network
      • Dedicated Channel IPv6 Feature Configuration
      • Delete dedicated channel
      • Dynamic routing BGP configuration for dedicated channels
      • Static route configuration for dedicated channels
    • Dedicated gateway
      • Create dedicated gateway
      • Dedicated Gateway
    • Identity and access management
    • Monitor and Operations
      • Alarm Strategy Description
      • Dedicated Channel Instance Diagnosis
      • Fault Drill
    • Physical dedicated line
      • Apply for physical dedicated line
      • Express Tunnel process
      • Manage Physical Dedicated Line
      • Operation preparation
  • Product billing
    • Billing Item Description
    • Charge
    • Expiration description
    • Overdue description
  • Product Description
    • Application scenarios
    • Dedicated Line Access Point Address
    • Product advantages
    • Usage restrictions
    • What Is Dedicated Line Access
  • SDK
    • GO SDK
      • Dedicated line
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Version history
    • Java-SDK
      • Dedicated line
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Version history
    • Python SDK
      • Dedicated line
      • Function Release Records
      • Initialization
      • Install the SDK Package
      • Overview
  • Service Level Agreement (SLA)
    • Service Level Agreement (SLA)
  • Typical Practices
    • Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Dynamic Routing)
    • Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Static Routing)
    • Connecting On-Premises IDC to Cloud VPC via Primary and Backup Dedicated Lines (Dynamic Routing)
    • Connecting On-Premises IDC to Cloud VPC via Primary and Backup Dedicated Lines (Static Routing)
    • Interconnecting IDCs and VPCs Across Different Regions via Dedicated Lines
All documents
menu
No results found, please re-enter

ET

  • API Reference
    • API function release records
    • Appendix
    • Common Request Headers and Response Headers
    • Dedicated Line Related Interfaces
      • Add dedicated channel routing parameters
      • Add dedicated channel user object
      • Apply for physical dedicated line
      • Associate dedicated channel
      • Create dedicated channel
      • Create routing rules of Dedicated channel
      • Delete dedicated channel
      • Delete routing rules of dedicated channel
      • Disable dedicated channel IPv6 function
      • Disassociate dedicated channel
      • Enable IPv6 function for the dedicated channel
      • Modify the dedicated channel routing rules
      • Query dedicated channel
      • Query dedicated line details
      • Query dedicated line list
      • Query the routing rules of the dedicated channel
      • Remove dedicated channel route parameters
      • Remove dedicated channel user object
      • Resubmit the dedicated channel
      • Update dedicated channel
      • Update physical dedicated line
    • Error code
    • General Description
    • Interface Overview
    • Overview
    • Service domain
  • FAQs
    • General Problems
  • Function Release Records
  • Getting Started Guide
    • Getting Started Guide
    • On-Premises IDC and Cloud VPC Interconnection
      • Add dedicated channel
      • Add network instance
      • Apply for physical dedicated line
      • Configure user-side routing and test connectivity
      • Create dedicated gateway
  • Operation guide
    • Dedicated channel
      • Add cross-account dedicated channel
      • Add dedicated channel
      • Dedicated Channel Cross-Account Authorization for Cloud Smart Network
      • Dedicated Channel IPv6 Feature Configuration
      • Delete dedicated channel
      • Dynamic routing BGP configuration for dedicated channels
      • Static route configuration for dedicated channels
    • Dedicated gateway
      • Create dedicated gateway
      • Dedicated Gateway
    • Identity and access management
    • Monitor and Operations
      • Alarm Strategy Description
      • Dedicated Channel Instance Diagnosis
      • Fault Drill
    • Physical dedicated line
      • Apply for physical dedicated line
      • Express Tunnel process
      • Manage Physical Dedicated Line
      • Operation preparation
  • Product billing
    • Billing Item Description
    • Charge
    • Expiration description
    • Overdue description
  • Product Description
    • Application scenarios
    • Dedicated Line Access Point Address
    • Product advantages
    • Usage restrictions
    • What Is Dedicated Line Access
  • SDK
    • GO SDK
      • Dedicated line
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Version history
    • Java-SDK
      • Dedicated line
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Version history
    • Python SDK
      • Dedicated line
      • Function Release Records
      • Initialization
      • Install the SDK Package
      • Overview
  • Service Level Agreement (SLA)
    • Service Level Agreement (SLA)
  • Typical Practices
    • Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Dynamic Routing)
    • Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Static Routing)
    • Connecting On-Premises IDC to Cloud VPC via Primary and Backup Dedicated Lines (Dynamic Routing)
    • Connecting On-Premises IDC to Cloud VPC via Primary and Backup Dedicated Lines (Static Routing)
    • Interconnecting IDCs and VPCs Across Different Regions via Dedicated Lines
  • Document center
  • arrow
  • ET
  • arrow
  • Typical Practices
  • arrow
  • Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Static Routing)
Table of contents on this page
  • Overview
  • Requirement scenarios
  • Solution overview
  • Configuration steps
  • Environment preparation
  • Configuration example
  • Testing and verification
  • Related products (required)

Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Static Routing)

Updated at:2025-11-11

Overview

This document provides guidance on how to integrate and use Express Tunnel (ET) to connect a local Internet Data Center (IDC) to the cloud via static routing with ECMP, enabling communication with a virtual private cloud (VPC) on the cloud.

Requirement scenarios

This document uses the scenario depicted in the diagram as an example to demonstrate how a local IDC can connect to Baidu AI Cloud using the static routing method of the Express Tunnel product for load redundancy. Normally, four physical dedicated lines simultaneously forward traffic. If one physical line fails, its traffic is load-balanced across the remaining physical lines to ensure uninterrupted service.

Solution overview

This document adopts the scenario in the following diagram as an example to explain how a local IDC accesses Baidu AI Cloud through ECMP dedicated lines. An enterprise in Beijing has a local IDC (VPC network segment: 192.168.0.0/16) and has created a virtual private cloud (VPC) (network segment: 172.168.0.0/12) in North China-Beijing Region of Baidu AI Cloud. To avoid single-point failures, the enterprise is required to apply for two physical dedicated lines from each of two carriers. Each pair of physical dedicated lines connects to the same Express Tunnel POP point of Baidu AI Cloud, with all four physical dedicated lines forwarding traffic simultaneously.

image.png

Dedicated channel configuration item Dedicated Channel 1 (Dedicated channel of physical dedicated line 1) Dedicated Channel 2 (Dedicated channel of physical dedicated line 2) Dedicated Channel 3 (Dedicated channel of physical dedicated line 3) Dedicated Channel 4 (Dedicated channel of physical dedicated line 4)
VLAN ID 0 0 0 0
IPv4 cloud network interconnection IP 9.39.39.1 9.39.39.5 9.39.39.9 9.39.39.13
IPv4 IDC interconnection IP 9.39.39.2 9.39.39.6 9.39.39.10 9.39.39.14
IPv4 subnet mask 30 30 30 30
Routing protocol Static routing Static routing Static routing Static routing

Configuration steps

Environment preparation

  • Users have already created a VPC in the North China-Beijing Region of Baidu AI Cloud, and deployed related services using cloud resources such as Baidu Cloud Compute (BCC) within the VPC;
  • Users have understood the security group rules applied to BCC instances in the VPC and ensured that the security group rules allow mutual access between the local IDC and cloud-based BCC instances;
  • Before purchasing physical dedicated lines, users have reviewed the applicable billing rules. As this document requires four physical dedicated lines, users must submit four port applications.

Configuration example

image.png

Please execute configurations according to steps specified in the document, and proceed only after verifying the completion of the current step

Step I: Create a physical dedicated line

  • Log in to the Baidu AI Cloud console.
  • Go to Product Service, select Express Tunnel (ET), click on Physical Dedicated Line, and choose Apply for Physical Dedicated Line.
  • On the Create Dedicated Channel page, configure the required parameters and click OK after confirming there are no mistakes.
Configuration Description
Dedicated line name Assign a name to the physical dedicated line. In this document, the name "Physical Dedicated Line 1" has been selected.
Access point mode Choose the access point search mode. The system currently supports standard mode and map mode.
Region Select the region where the IDC and VPC are located. This document chooses the North China-Beijing region.
Description Provide a description for the physical dedicated line.
Access point Make selections based on the actual situation. For further details, refer to xxx. In this document, Beijing-Beijing-Daxing-A and Beijing-Beijing-Daxing-B access points are used.
Physical Line ISPs Choose a dedicated line operator. Following this, please purchase dedicated line access through the carrier of the selected access point's data center.
Physical port specifications Specify the dedicated port configuration.
Peer address Input the IDC's address.
Purchase period Set the duration for service usage.
Auto-renewal Decide whether to enable the auto-renewal option.
  • Description:
  • After completing the configuration steps, submit the order to proceed to the payment page.
  • After successfully completing the payment, go back to the physical dedicated line console interface, where the status will show "Pending Approval." Reach out to the Baidu AI Cloud team for review and approval.
  • Once the Baidu AI Cloud team approves, the physical dedicated line status will update to "Available," and you will receive an email notification confirming the successful creation of Physical Dedicated Line 1.
  • Repeat Step I to set up Physical Dedicated Lines 2, 3, and 4.

Step II: Create dedicated channel

  • When the physical dedicated line becomes available, click on Dedicated Channel, and then choose Add Dedicated Channel under the dedicated channels section of the account.
  • On the Create Dedicated Channel page, configure the required parameters and click OK after confirming there are no mistakes.
Configuration Description
Physical dedicated line ID Assign a name to the physical dedicated line. In this document, the name "Physical Dedicated Line 1" has been selected.
Channel name Specify a name for the dedicated channel.
Allocation object Select a user for the dedicated channel. In this document, the current account is chosen.
VLAN ID Input the VLAN ID for the dedicated channel. In this document, the value 0 is used, indicating that the physical dedicated line is exclusively assigned to you.
Cloud network interconnection IP Enter the IPv4 address and subnet mask for the ingress gateway from the VPC to the local IDC. Here, the address 9.39.39.1 with a mask of 30 is used.
IDC interconnection IP Provide the IPv4 address and subnet mask for the ingress gateway from the local IDC to the VPC. The address 9.39.39.2 with a mask of 30 is used in this document.
Routing protocol Choose between static routing and dynamic routing (BGP). This document uses static routing as an example.
Description Add a description for the dedicated channel.
  • Description:
  • After completing the configuration, the status of the dedicated line channel on the console will display "Pending Application." Contact the Baidu AI Cloud team for review and approval.
  • After approval from Baidu AI Cloud staff, the dedicated channel status will change to "available." Test connectivity between the cloud interconnection IP and the IDC interconnection IP.
  • Repeat Step II to create dedicated channels for Physical Dedicated Lines 2, 3, and 4 in sequence.

Step III: Create a dedicated gateway and bind a dedicated channel

  • Start by creating a VPC in the desired Region. In this document, a VPC has been created in the North China-Beijing Region of Baidu AI Cloud, and associated cloud resources, like BCC cloud servers, have been deployed within the VPC for related services.
  • Once the dedicated channel is active, click on Dedicated Gateway. Alternatively, log in to the VPC Management Console and select Dedicated Gateway under Network Connections.
  • From the dropdown menu at the top of the page, choose the desired cloud VPC, and then click Create Dedicated Gateway.
  • On the Create Dedicated Gateway page, configure the parameter details, and click OK after ensuring that there are no errors.
Configuration Description
Virtual private cloud Choose the VPC on the cloud where the new dedicated gateway will be deployed. The VPC selected in the previous dropdown is set as the default but can be changed if needed.
Gateway name Set the name for the dedicated gateway instance. In this document, "Dedicated Gateway 1" has been chosen.
Egress bandwidth Select the outbound cloud bandwidth according to your actual service requirements.
Bind physical dedicated line Decide whether to bind a physical dedicated line. In this document, a physical dedicated line is bound. Choose the line ID for Physical Dedicated Line 1 from the dropdown menu, then select the corresponding dedicated channel ID.
Description Provide a description for this dedicated gateway.
Resource group Select the resource group that the dedicated gateway will belong to. After successfully creating the dedicated gateway, you can also locate the target instance and click "Add Resource" in the Resource Group column to finalize the process.
  • Description:
  • Once the configuration is complete, the dedicated gateway's status on the console will change to "available." Repeat Step 3 to create Dedicated Gateways 2, 3, and 4 sequentially, binding each to Physical Dedicated Lines 2, 3, and 4 respectively.

Step IV: Create a dedicated gateway and bind a dedicated channel

  • Configure routes in the VPC Route Table and on the Dedicated Channel Details page. Carefully review and verify this step, as any missing configuration could disrupt link connectivity.
  • Configure the VPC multi-line routing
  • Log in to the VPC Management Console and select "Route Table" under the Virtual Private Cloud (VPC) section.
  • Use the dropdown at the top of the page to select a cloud VPC, and click on the corresponding route table name.
  • Navigate to the VPC route interface and click "Add Route."
  • In the "Add Route" interface, configure the necessary parameters and click "Confirm" after verifying them.
Configuration Description
Segment type Choose to add IPv4 or IPv6 routing. IPv4 routing is selected in this document.
Source network segment Select a subnet within the VPC or input a custom source network segment. In this document, "172.16.0.0/12" is used.
Destination segment Enter the destination network segment. This document uses "192.168.0.0/16."
Route type Choose the route type. For dedicated gateway routing, you can select single-line or multi-line routing. In this document, the "Dedicated Gateway" option is chosen, followed by multi-line routing. Fields marked with * in the table below will appear only when multi-line routing is selected.
*Multi-Line mode Decide on the cloud access mode for the dedicated line, which can be either active-standby or load balancing (e.g., ECMP). In this document, "Load Balancer" is chosen.
Next-hop instance Select the next hop for the route. In this document, "Dedicated Gateway 1" is chosen for Path 1, "Dedicated Gateway 2" for Path 2, "Dedicated Gateway 3" for Path 3, and "Dedicated Gateway 4" for Path 4.
Description Provide a description for the routing entry.
  • Configure dedicated line route
  • Log in to the Express Tunnel (ET) management console, go to the "Dedicated Channel" tab, select the channel ID associated with Physical Dedicated Line 1, and open the Dedicated Channel Details page.
  • Go to the Route Management tab and click on Create New Route Entry.
  • In the Create Route Entry interface, set the parameter details and click OK after reviewing them.
Configuration Description
Rule type Choose to add IPv4 or IPv6 routing. IPv4 routing is selected in this document.
Destination segment Input the destination network segment. For this example, 172.16.0.0/12 is used.
Next-hop instance type Choose the appropriate instance ID. This document uses Dedicated Gateway 1 as an example.
Next-hop instance ID Choose the appropriate instance ID. This document uses Dedicated Gateway 1 as an example.
Description Provide a description for the routing entry.
  • After completing the configuration, repeat these steps to set up dedicated routing for Dedicated Channels 2, 3, and 4.

Step V: Configure local IDC

  • Users need to finalize route settings on the local IDC side. Note that the commands will differ based on the vendor's equipment. Consult directly with the device vendor for detailed configuration commands.
  • Here’s an example using configuration commands for a Cisco C-series switch.

ip route 172.16.0.0 255.240.0.0 9.39.39.1

ip route 172.16.0.0 255.240.0.0 9.39.39.5

ip route 172.16.0.0 255.240.0.0 9.39.39.9

ip route 172.16.0.0 255.240.0.0 9.39.39.13

Step VI: Create link probe

  • By default, Baidu AI Cloud sends an ICMP packet every 3 seconds from the source IP address of each line to the destination address. If no response is received for three consecutive periods on a physical dedicated line, Baidu AI Cloud initiates a secondary inspection mechanism to identify the fault location. If an issue is detected, traffic will automatically reroute to another physical dedicated line.
  • Log into the VPC Management Console and select Dedicated Gateway from the Network Connections section.
  • In the Operations column for the appropriate dedicated gateway instance, click on Link Probe.
  • Go to the Link Probe page and click the Add Rule button.
  • On the Create Rules page, fill in the required parameters and click OK once all information is verified to be correct.
Configuration Description
Rule type Choose either IPv4 or IPv6 link probe rules (IPv6 is optional if IPv6 is enabled for the VPC and dedicated lines). For this example, IPv4 is selected.
Probe subnet belonged Scroll down to choose the subnet where the probe will be created. An unused IP address within the subnet will be allocated for the link probe.
Physical dedicated line ID Select the physical dedicated line you wish to probe (this becomes available when the gateway is connected to multiple dedicated lines).
Dedicated channel ID Choose the dedicated channel to be probed (you can select from multiple dedicated channels available under the physical line).
Probing method The default protocol used is ICMP.
Source IP The source IP address can be configured in two ways: Auto-assign (recommended): The system automatically selects an unused IP address from the specified subnet range. Custom: You can manually specify any unused IP address within the chosen subnet range.
Destination IP The destination IP address can be set up in two ways: Bind channel IDC interconnection IP (recommended): The system automatically picks the designated channel IDC interconnection IP from the table above as the probe address. Custom: Users can specify the destination address as desired.
Health check interval Define the time interval for sending probe packets during health checks. The unit is seconds, and you can input an integer between 1 and 60. It's recommended to set it to 3 seconds.
Unhealthy threshold If consecutive health check failures surpass this threshold, the dedicated channel linked to the dedicated gateway will be considered abnormal. The threshold is an optional integer between 2 and 5, defaulting to 3 seconds.
Health threshold If consecutive health check successes surpass this threshold, the dedicated channel linked to the dedicated gateway will be considered available. The threshold is an optional integer between 2 and 5, defaulting to 3 seconds.
Automatically generate route A route is automatically created for connectivity testing. If disabled, users must manually add a route to the destination address for testing connectivity. Enabled by default.
  • Description:
  • After completing the above configuration, wait a moment for the initialization inspection of the link probe.
  • Once the link probe status is confirmed normal, repeat Step VI to create link probes for Dedicated Gateways 2, 3, and 4.

Step VII: Connectivity testing

  • Description:
  • After completing the above configuration, users should test the connectivity of the physical dedicated line.
  • Log in to the BCC Instance within the VPC via the VPC Management Console.
  • Run the ping command to verify connectivity between the BCC instance in the cloud VPC (172.16.0.0/12) and the local IDC (192.168.0.0/16). A reply message indicates a successful connection.
  • Execute the tracert\traceroute command to check whether the two physical dedicated lines have achieved load balancing access through the route tracking commands.

Testing and verification

Related products (required)

Baidu Cloud Compute (BCC)

Previous
Connecting On-Premises IDC to Cloud VPC via Multi-Line ECMP (Dynamic Routing)
Next
Connecting On-Premises IDC to Cloud VPC via Primary and Backup Dedicated Lines (Dynamic Routing)