Configure an instance over a VPC data channel

Updated at: 2025-03-14 02:21

This topic describes how to create a Data Transmission Service (DTS) instance that connects to a database over a virtual private cloud (VPC) data channel.

Prerequisites

  • The database instance already has a VPC.

  • You are familiar with the limits and usage notes of the VPC data channel. For more information, see the Limits section in the "What is a VPC data channel?" topic.

Preparations

Note

Before configuring a DTS instance, you need to create primary and secondary vSwitches in different zones for the VPC to which the database instance belongs. In this way, a VPC data channel can be created.

  1. Log on to the VPC console.

  2. In the left-side navigation pane, click vSwitch.

  3. Select the region of the VPC for which you want to create a vSwitch.

  4. On the vSwitch page, click Create vSwitch.

  5. On the Create vSwitch page, configure the vSwitch information.

    Configure Region, VPC, Name, Zone, and IPv4 CIDR Block of the vSwitch. Then click Add under the vSwitch section to add another vSwitch.

    Note
    • You must set the primary and secondary vSwitches in different zones, and the IPv4 CIDR Block must not overlap.

    • For more information about the vSwitch parameter, see Create and manage a vSwitch.

  6. Click OK.

Create a DTS instance

Note

The following example describes how to create a DTS data synchronization instance that connects to a database over a VPC data channel.

  1. Use one of the following methods to go to the Data Synchronization page and select the region in which the data synchronization instance resides.

    DTS console
    DMS console
    1. Log on to the DTS console.

    2. In the left-side navigation pane, click Data Synchronization.

    3. In the upper-left corner of the page, select the region in which the data synchronization instance resides.

    Note

    The actual operations may vary based on the mode and layout of the DMS console. For more information, see Simple mode and Customize the layout and style of the DMS console.

    1. Log on to the DMS console.

    2. In the top navigation bar, move the pointer over Data + AI and choose DTS (DTS) > Data Synchronization.

    3. From the drop-down list to the right of Data Synchronization Tasks, select the region in which the data synchronization instance resides.

  2. Click Create Task to go to the task configuration page.

  3. Optional. Click New Configuration Page in the upper-right corner of the page.

    Note
    • Skip this step if the Back to Previous Version button is displayed in the upper-right corner of the page.

    • Specific parameters in the new and previous versions of the configuration page may be different. We recommend that you use the new version of the configuration page.

  4. Configure the source and destination database information.

    The main parameters of the source or destination database connected over the VPC data channel are shown in the following table.

    Note

    For more parameter information, see the references in Overview of data synchronization scenarios.

    Parameter

    Description

    Parameter

    Description

    Access Method

    Select Express Connect, VPN Gateway, or Smart Access Gateway.

    Instance Region

    Select the region of the VPC to which the database instance belongs.

    Connected VPC

    Select the VPC to which the database instance belongs.

    Primary/Secondary vSwitch in VPC Tunnels

    vSwitch (Primary)

    Select vSwitch (Primary) and vSwitch (Secondary) in Preparations.

    vSwitch (Secondary)

  5. After configuration is complete, click Test Connectivity and Proceed at the bottom of the page.

  6. Add the whitelist in the CIDR Blocks of DTS Servers dialog box to the route configuration of the VPC and the security settings of the specified database.

    Note

    For more information about the routing and whitelist configuration method for connecting a data center to Alibaba Cloud, see Connect a data center to a VPC.

  7. Click Test Connectivity and wait for DTS to create network resources and test the connectivity.

  8. Complete the subsequent configuration based on your business requirements by referring to the related topics.

FAQ

  • Can I use existing vSwitch in the VPC to which the database instance belongs?

    If the existing vSwitch is located within a zone supported by the VPC data channel and the zones of the primary and secondary vSwitches are different, you can use the vSwitch.

  • How do I view the elastic network interfaces (ENIs) created by DTS for the vSwitches?

    1. Log on to the ECS console.

    2. In the left-side navigation pane, choose Network & Security > Elastic Network Interfaces.

    3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

    4. Find the ENI in the VPC/vSwitch column.

      Note

      The name of the ENI is **** endpoint ep-****.

  • Do I need to manually release the ENI of the VPC data channel?

    No. The ENI of the VPC data channel will be automatically released 15 days after the DTS instance is released.

  • On this page (1, T)
  • Prerequisites
  • Preparations
  • Create a DTS instance
  • FAQ
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare