Before you connect to a database instance from Data Management (DMS), the IP addresses and Classless Inter-Domain Routing (CIDR) blocks of DMS must be added to the IP address whitelist of the database instance.

Automatically add the IP addresses and CIDR blocks of DMS to the IP address whitelist of a database instance

Note The IP addresses and CIDR blocks of DMS can be automatically added to the IP address whitelist only for an ApsaraDB instance.

When you log on to an ApsaraDB instance in DMS for the first time, DMS prompts you to add its own IP addresses and CIDR blocks for the specified region to the IP address whitelist of the ApsaraDB instance. In this case, you can click Configure Whitelist in the Whitelist issues message. Then, DMS automatically adds its own IP addresses and CIDR blocks to the whitelist. After that, log on to the ApsaraDB instance again. For more information, see Register an ApsaraDB instance.

In addition to the preceding method, the IP addresses and CIDR blocks of DMS can be automatically added to the IP address whitelist of an ApsaraDB instance by using the following method:

  1. Log on to the DMS console.
  2. In the top navigation bar, move the pointer over the More icon and choose System > Instance.
    Note You are a database administrator (DBA) or a DMS administrator.
  3. On the Instance List tab, select one or more instances for which you want to configure an IP address whitelist and click Configure Whitelist in the upper part.
  4. In the Auto set DMS whitelist in batch message, click OK.
    Then, DMS adds the IP addresses and CIDR blocks to the IP address whitelist of each selected ApsaraDB instance.

Manually add the IP addresses and CIDR blocks of DMS to the IP address whitelist of a database instance

  1. Select the specific IP addresses and CIDR blocks that you want to add. For more information about the IP addresses and CIDR blocks, see the DMS IP addresses and CIDR blocks table in this topic.
  2. Manually add the IP addresses and CIDR blocks to the IP address whitelist of a database instance.

Fail to connect to a database instance from DMS

Assume that the IP addresses and CIDR blocks of DMS are added to the IP address whitelist of a database instance but you still fail to connect to the database instance from DMS. In this case, troubleshoot the issue by performing the following steps:

  1. Try again later because the whitelist may take time to become effective.
  2. Assume that the database instance is accessible from the Internet and you have added the DMS IP addresses and CIDR blocks for the specified region to the IP address whitelist of the instance. In this case, if you still fail to connect to the database instance from DMS, add the DMS IP addresses and CIDR blocks for the China (Hangzhou) region to the IP address whitelist of the instance. Then, try to connect to the database instance again.
  3. In the Add instance or Edit instance dialog box, check the connection information such as the port number.

DMS IP addresses and CIDR blocks

Table 1. DMS IP addresses and CIDR blocks
Region Self-managed databases on ECS instances or Alibaba Cloud databases, both on the classic network Self-managed databases on ECS instances, Alibaba Cloud databases, and on-premises databases accessible from Express Connect circuits, all in VPCs Databases accessible from the Internet
China (Hangzhou) 11.193.54.0/24

10.143.32.0/24

10.143.34.0/24
100.104.175.0/24 101.37.74.0/24

112.124.140.0/24

121.43.18.66

121.43.18.68

China (Shanghai) 10.152.163.0/24 100.104.5.0/24 139.224.4.0/24
China (Qingdao) 10.151.203.0/24 100.104.188.0/24 114.215.161.0/24
China (Beijing) 11.192.101.0/24 100.104.72.0/24 60.205.89.0/24
China (Zhangjiakou) 11.192.243.0/24 100.104.205.0/24 N/A
China (Hohhot) 11.193.183.0/24 100.104.205.0/24 39.104.29.35/24
China (Chengdu) 11.195.52.68/24 100.104.5.0/26 N/A
China (Shenzhen) 10.152.27.0/24 100.104.5.0/24 120.76.91.0/24
China (Heyuan) 11.118.24.0/24 100.104.96.64/26 N/A
China (Hong Kong) 10.152.161.0/24 100.104.205.0/24 47.89.61.0/24
Singapore (Singapore) 10.152.166.0/24 100.104.205.0/24 47.88.147.0/24
Australia (Sydney) 11.192.100.0/24 100.104.5.0/24 47.91.49.0/24
Malaysia (Kuala Lumpur) 11.193.189.0/24 100.104.175.0/24 47.254.212.25/24
Indonesia (Jakarta) 11.194.48.0/22 100.104.5.0/24 149.129.228.88/24
India (Mumbai) 11.194.10.0/24 100.104.205.0/24 149.129.164.77/24
Japan (Tokyo) 11.192.147.0/24

11.192.148.0/24

11.192.149.0/24
100.104.205.0/24 47.91.9.0/24

47.91.12.0/24

47.91.13.0/24
US (Silicon Valley) 10.152.31.0/24 100.104.205.0/24 47.89.224.0/24
US (Virginia) 10.152.235.0/24 100.104.205.0/24 47.89.170.0/24
Germany (Frankfurt) 11.192.169.0/24,11.192.170.0/24 100.104.233.0/24 47.91.83.0/24,

47.91.84.0/24

UK (London) 11.199.93.0/24 100.104.5.0/24 N/A
UAE (Dubai) 11.192.189.0/24

11.192.190.0/24

11.192.191.0/24
100.104.5.0/24 47.91.102.0/24

47.91.103.0/24

47.91.112.0/24
China East 1 Finance N/A 100.104.175.0/24 N/A
China East 2 Finance N/A 100.104.72.0/24 N/A
China South 1 Finance N/A 100.104.205.0/24 N/A