This topic describes how to connect an on-premises database to Data Transmission Service (DTS) by using Cloud Enterprise Network (CEN). To establish the connection, you must connect the database to Alibaba Cloud over Express Connect or Smart Access Gateway (SAG) and deploy DTS in a virtual private cloud (VPC).
Background information

Prerequisites
- The on-premises network to which the self-managed database belongs is connected to
Alibaba Cloud over Express Connect or SAG.
Note For more information, see Connect an on-premises database to Alibaba Cloud.
- A CEN instance is created. For more information, see Create a CEN instance.
- A VPC that belongs to the region where DTS is deployed is attached to the CEN instance.
Note For example, you have three VPCs in a region: VPC 1, VPC 2, and VPC 3. All of the VPCs are attached to the CEN instance. VPC 1 has been used to access other cloud services such as Object Storage Service (OSS) and Server Load Balancer (SLB). When you configure a DTS task, you must set the Connected VPC parameter to VPC 1.
- The virtual border router (VBR) or Cloud Connect Network (CCN) instance that is connected to the on-premises network is attached to the CEN instance. For more information, see Attach a network instance.
Procedure
What to do next
When you configure data migration, data synchronization, or change tracking, select Self-managed database connected over CEN as the instance type, and set the following parameters. You can use the on-premises database as the source or destination database. For more information, see Overview of data migration scenarios or Overview of data synchronization scenarios.
Parameter | Description |
---|---|
CEN Instance ID | Select the ID of the CEN instance. |
Connected VPC | Select the VPC that is configured for the Host VPC parameter. |
Database Type | Select the type of the self-managed database. |
IP Address | Enter the server IP address of the self-managed database. |
Port Number | Enter the server port number of the self-managed database. |
Database Account | Enter the username of the self-managed database. |
Database password | Enter the password of the self-managed database. |
FAQ
Q: Why am I unable to connect an on-premises database to DTS over Express Connect even after I have configured an ACL in the firewall settings of the VPC to allow all access?
- Check whether all the required CIDR blocks of DTS are added when you set the Service IP Address parameter in the CEN console. Add a route to allow the on-premises database to access DTS and then configure the DTS task again. For more information, see Procedure.
- Check whether the ACL in the firewall settings of the VPC is configured to allow access from DTS. DTS may fail to establish a connection with the on-premises database because the packets of DTS servers are blocked. When you configure the ACL, you must set the source IP addresses to the CIDR blocks of DTS and set the destination IP addresses to the CIDR blocks of the on-premises database. Then, the DTS servers can connect to the on-premises database as expected.