Overview
To use VPN access, users need to purchase a Tencent Cloud VPC and VPN gateway, establish a tunnel between the VPN and IDC, and connect the local IDC database to the Tencent Cloud VPC through nearby access, then use DTS for transfer tasks.
Directions
In this scenario, the user's VPC network is TomVPC, subnet is Subnet A, with the subnet range of 192.168.1.0/24
. The newly created VPN gateway is TomVPNGW, and the public IP address of the VPN gateway is 203.195.147.82
. The host IP address of the user's IDC database is 10.0.1.8
.
Subsequent Steps
1. After establishing connection between the VPN and IDC, select VPN Access on the DTS configuration task page.
|
VPN Gateway | Name of the VPN gateway created in the VPC. | TomVPNGW |
VPC | Name of your VPC. | TomVPC |
Subnet | Name of the subnet of your VPC. | Subnet A |
Host Address | IP address of the source database server. | 10.0.1.8 |
Port | Port used by the source database. Below are the default ports for common databases (if they are modified, enter the actual ports):
MySQL: 3306 SQL Server: 1433 PostgreSQL: 5432 MongoDB: 27017 Redis: 6379 | 3306 |
2. Click Test Connectivity. If the test fails, troubleshoot as follows:
The Telnet test fails.
In the created VPC ("TomVPC" in this example), purchase a CVM instance and ping the source database server address from it:
If the address is unpingable:
The port settings of the source database are incorrect.
The Telnet test is passed, but the database connection fails.
The migration account is not properly authorized. Authorize it again as instructed in the corresponding scenario in data migration and data sync. The account or password is incorrect.
Was this page helpful?