添加DMS IP地址

为确保DMS能够正常访问您的数据库实例,您需要在数据库实例的安全设置(防火墙、白名单、安全组等)中添加对应地域的DMS的IP地址。

给阿里云数据库添加DMS IP地址

适用范围:阿里云数据库、ECS自建数据库。

在DMS控制台给实例添加DMS IP地址

您可以根据实际情况选择如下任一方式添加DMS IP地址:

  • 通过系统提示添加

    首次在DMS中登录阿里云数据库时,DMS会提示您添加DMS IP地址到数据库的安全设置中,您只需单击对话框中的设置白名单。设置完成后,您可在DMS中重新登录该实例。

  • 通过实例管理添加

    说明

    仅管理员或DBA可以使用该方法。

    1. 登录数据管理DMS 5.0
    2. 单击控制台左上角的2023-01-28_15-57-17.png图标,选择全部功能 > 数据资产 > 实例管理

      说明

      若您使用的是非极简模式的控制台,在顶部菜单栏中,选择数据资产 > 实例管理

    3. 实例列表页签下,选中目标数据库实例,单击实例列表区域上方的设置白名单

    4. 在弹出对话框中,单击确认即可。

在数据库管理控制台添加DMS IP地址

  1. 登录云数据库控制台,找到目标实例。

  2. 单击目标实例ID,在左侧导航栏中,单击白名单与安全组

  3. 获取DMS IP地址,并将该IP地址添加至实例的白名单分组,单击确定

    例如实例所在地域为华东1(杭州)、网络类型为专有网络。您需要在DMS IP地址列表中找到华东1(杭州)地域这一行和专有网络地址这一列,再复制IP地址至实例白名单分组即可。

给他云或自建数据库添加DMS IP地址

他云或自建数据库(除ECS自建数据库)、通过公网IP和VPC专线接入的数据库,需要手动将DMS IP地址添加至数据库的安全设置中。

DMS IP地址列表

在添加IP地址时,建议您将对应地域的DMS IP完整拷贝至对应的安全设置中。

重要
  • 添加DMS服务的公网IP地址段可能存在安全风险,请谨慎使用。

  • 建议加强账号密码防范,限制放行端口号,或者通过专线、VPN网关或智能网关接入。

表 1. IP地址列表

地域名称

专有网络(ECS自建库或阿里云数据库或VPC专线IDC)

经典网络(ECS自建库或阿里云数据库)

公网

华东1(杭州)

100.104.175.0/24,100.104.201.0/26,100.104.52.0/24,100.104.61.128/26,100.104.244.64/26,100.104.216.192/26,100.104.85.0/26

11.193.54.0/24,10.143.32.0/24,10.143.34.0/24,10.137.42.0/24,10.152.29.0/24,10.6.226.32,10.6.226.33,10.187.128.215,10.187.128.216

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

华东2(上海)

100.104.5.0/24,100.104.205.0/24,100.104.226.128/26,100.104.149.64/26

10.152.163.0/24,10.137.42.0/24,11.154.24.173

139.224.4.85,139.224.4.79,101.133.205.192/26,47.102.181.128/26,47.102.181.192/26,47.102.234.0/26,47.102.234.64/26

华东5(南京)

100.104.182.128/26

11.193.54.0/24,10.143.32.0/24,10.143.34.0/24,10.137.42.0/24,10.152.29.0/24,10.6.226.32,10.6.226.33,10.187.128.215,10.187.128.216

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

华北1(青岛)

100.104.188.0/24,100.104.72.0/24,100.104.35.192/26

10.151.203.0/24,10.137.42.0/24,10.245.213.244,10.3.80.246

114.215.161.28,114.215.161.36,118.190.207.194,118.190.207.25,120.27.72.0/26,120.27.72.64/26,120.27.72.128/26,120.27.72.192/26

华北2(北京)

100.104.72.0/24,100.104.183.0/24,100.104.236.128/26,100.104.128.192/26,100.104.227.192/26

11.192.101.0/24,10.137.42.0/24,11.115.125.224

60.205.89.31,60.205.89.21,8.131.132.0/26,39.107.7.0/26,39.107.7.64/26,182.92.32.128/26,182.92.32.192/26

华北3(张家口)

100.104.205.0/24,100.104.175.0/24

11.192.243.0/24,11.193.233.87

47.92.22.68,39.101.252.128/26,47.92.185.0/26,47.92.185.64/26,47.92.185.128/26,47.92.185.192/26

华北5(呼和浩特)

100.104.205.0/24,100.104.72.0/24

11.193.183.0/24,11.197.113.225

39.104.29.35,39.104.78.173,39.104.79.122,39.104.86.0,39.104.62.152,39.104.72.87,39.99.77.0/26,39.99.77.64/26,39.99.77.128/26,39.104.220.192/26

华北6(乌兰察布)

100.104.10.192/26

10.152.29.0/24

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

西南1(成都)

100.104.5.0/26

11.195.52.68/24,11.119.156.53

47.108.22.35,47.109.5.0/26,47.108.45.128/26,47.108.45.192/26,47.108.47.0/26,47.108.47.64/26

华南1(深圳)

100.104.5.0/24,100.104.75.64/26,100.104.235.192/26,100.104.205.0/24,100.104.41.64/26

10.152.27.0/24,10.137.42.0/24,10.245.164.219

120.76.91.7,120.76.91.29,47.113.76.192/26,47.112.83.192/26,47.112.84.0/26,47.112.84.64/26,47.112.84.128/26

华南2(河源)

100.104.96.64/26

11.118.24.0/24,10.137.42.0/24,10.152.29.0/24

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

华南3(广州)

100.104.248.128/26

10.137.42.0/24,10.152.29.0/24,10.58.93.2

8.134.79.141,8.134.79.143,8.134.0.64/26,8.134.0.128/26,8.134.0.192/26,8.134.5.0/26

华中1(武汉-本地地域)

100.104.193.128/26

11.193.54.0/24,10.143.32.0/24,10.143.34.0/24,10.137.42.0/24,10.152.29.0/24,10.6.226.32,10.6.226.33,10.187.128.215,10.187.128.216

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

中国(香港)

100.104.205.0/24,100.104.233.0/24,100.104.177.192/26,100.104.158.192/26

10.152.161.0/24,10.137.42.0/24,10.254.102.13

47.89.61.33,47.89.61.59,47.243.0.32/28,47.56.45.128/26,47.56.45.192/26,47.90.24.0/26,47.90.24.64/26

新加坡

100.104.205.0/24,100.104.188.0/24,100.104.207.128/26,100.104.179.64/26,100.104.12.0/26

10.152.166.0/24,10.137.42.0/24,10.88.51.209

47.88.147.36,47.88.147.22,161.117.172.0/28,161.117.146.128/26,161.117.146.192/26,161.117.164.0/26,161.117.164.64/26

马来西亚(吉隆坡)

100.104.175.0/24,100.104.5.0/24

11.193.189.0/24,11.196.42.179

47.254.212.25,47.250.34.128/28,47.250.30.0/26,47.250.30.64/26,47.250.30.128/26,47.250.30.192/26

印度尼西亚(雅加达)

100.104.5.0/24,100.104.35.192/26,100.104.175.0/24

11.194.48.0/22,11.59.138.151

149.129.228.88,147.139.165.206,147.139.133.46,147.139.179.168,147.139.132.101,147.139.156.0/26,147.139.156.64/26,147.139.156.128/26,149.129.230.192/26

日本(东京)

100.104.205.0/24,100.104.112.0/24,100.104.117.192/26,100.104.112.0/24,100.104.117.192/26

11.192.147.0/24,11.192.148.0/24,11.192.149.0/24

47.91.13.31,47.91.13.77,8.209.192.160/28,47.91.0.128/26,47.91.0.192/26,47.245.51.128/26,47.245.51.192/26

美国(硅谷)

100.104.205.0/24,100.104.48.128/26,100.104.175.0/24

10.152.31.0/24,10.137.42.0/24,10.60.82.16

47.89.224.28,47.89.224.56,47.88.1.17,47.88.6.196,47.88.10.217,47.88.15.174,47.88.98.0/26,47.88.98.64/26,47.88.98.128/26,47.88.98.192/26

美国(弗吉尼亚)

100.104.205.0/24,100.104.233.0/24,100.104.240.128/26

10.152.235.0/24,10.137.42.0/24,11.194.67.243

47.88.98.24,47.88.98.20,47.253.64.0/28,47.252.71.128/26,47.252.71.192/26,47.252.90.0/26,47.252.90.64/26

英国(伦敦)

100.104.5.0/24,100.104.133.64/26,100.104.207.128/26

11.199.93.0/24,11.199.225.130

8.208.17.76,8.208.75.64/28,8.208.73.0/26,8.208.73.64/26,8.208.73.128/26,8.208.73.192/26

德国(法兰克福)

100.104.233.0/24,100.104.5.0/24,100.104.193.128/26

11.192.169.0/24,11.192.170.0/24,11.194.56.218

47.91.83.56,47.91.83.15,47.245.155.0/28,8.209.86.0/26,47.254.165.64/26,47.254.165.128/26,47.254.165.192/26

阿联酋(迪拜)

100.104.5.0/24,100.104.205.0/24

11.192.189.0/24,11.192.190.0/24,11.192.191.0/24

47.91.102.19,47.91.103.51

菲律宾(马尼拉)

100.104.36.0/26

10.43.148.217,10.43.148.218

8.212.136.64/26,8.212.136.128/26,8.212.136.192/26,8.212.137.0/26

泰国(曼谷)

100.104.106.192/26

10.186.15.148,10.186.15.149

8.213.162.64/26,8.213.162.128/26,8.213.162.192/26,8.213.163.0/26

沙特(利雅得)

100.104.12.0/26

10.187.119.182,10.187.119.183,10.187.115.137

8.213.0.128/26,8.213.0.192/26,8.213.5.0/26,8.213.5.64/26,8.213.16.59,8.213.16.91,8.213.16.111,8.213.16.17,8.213.16.123,8.213.6.0/26,8.213.6.64/26,8.213.6.128/26,8.213.6.192/26

俄罗斯

100.104.35.192/26

11.111.39.128,11.111.39.129

8.209.134.64/26,8.209.134.128/26,8.209.134.192/26

华北2 金融云(邀测)

100.104.144.0/26

10.254.13.200,10.254.13.201,10.254.22.182

39.107.7.0/26,39.107.7.64/26,182.92.32.128/26,182.92.32.192/26,47.92.185.0/26,47.92.185.64/26,47.92.185.128/26,47.92.185.192/26

杭州金融云

100.104.175.0/24,100.104.52.0/24,100.104.216.192/26

11.193.54.0/24,10.143.32.0/24,10.143.34.0/24,10.137.42.0/24,10.152.29.0/24

116.62.251.150,47.96.59.4,47.96.58.245,116.62.250.113,116.62.249.73,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

海淀金融云1

100.104.5.0/24

10.152.29.0/24

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

上海金融云1

100.104.72.0/24,100.104.175.0/24

10.152.163.0/24,10.137.42.0/24,10.152.29.0/24,10.254.213.170

139.224.122.227,139.224.123.13,139.224.124.107,139.224.123.165,47.102.181.128/26,47.102.181.192/26,47.102.234.0/26,47.102.234.64/26,47.103.170.128/26,47.103.170.192/26,47.103.171.0/26,47.103.171.64/26

深圳金融云1

100.104.205.0/24,100.104.72.0/24

10.152.27.0/24,10.137.42.0/24,10.152.29.0/24

8.136.163.64/27,118.31.243.0/26,118.31.243.64/26,118.31.243.128/26,118.31.243.192/26

在Webhook添加DMS地址

若您需要设置允许DMS的消息发送至Webhook,请在Webhook所在服务器中添加以下IP白名单:8.136.163.64/29, 116.62.200.158

常见问题

  • Q:添加DMS IP地址至数据库白名单后,如果DMS仍无法连接数据库,该如何处理?

    A:请参考如下方式进行排查:

    • 请稍后重试,白名单生效需要时间。

    • 对于公网接入的数据库,如果添加某地域的DMS IP地址至白名单仍无法连接,请添加杭州地域的DMS IP地址至白名单,并再次重试。

    • 新增实例编辑实例对话框,检查连接信息,包括端口号。

  • Q:DMS连接RDS经典网络实例失败,实例只有公网地址,如何解决?

    A:有如下两个解决方案,您可任选其一。

    • 将DMS的公网IP地址(与实例同地域)添加至实例的白名单中。具体操作,请参见设置IP白名单

    • 在RDS控制台上为目标实例开通内网地址。