Network Switch

Last updated: 2021-07-29 16:44:46

    Overview

    Tencent Cloud supports classic network and VPC, which are capable of offering a diversity of smooth services. On this basis, we provide more flexible services as shown below to help you manage network connectivity with ease.

    • Network switch
      • Switch from classic network to VPC: a single TencentDB source instance can be switched from classic network to VPC.
      • Switch from VPC A to VPC B: a single TencentDB source instance can be switched from VPC A to VPC B.
    • Custom IP and port
      • Custom source instance IP and port: the IP and port of a source instance can be customized on the instance details page in the console.
      • Custom read-only instance IP and port: the IP and port of a read-only instance can be customized on the instance details page in the console.

    Notes

    • Switching the network may cause the change of the instance's private IP. The original IP will become invalid after the repossession time has elapsed. Please modify the instance IP on the client promptly.
      The default repossession time for the original IP is 24 hours and the longest repossession time can be 168 hours. If "Valid Hours of Old IPs" is set to 0 hours, the IP is released immediately after the network is changed.
    • The switch from classic network to VPC is irreversible. After the switch to a VPC, the TencentDB instance cannot communicate with Tencent Cloud services in another VPC or classic network.
    • After you switch a source instance's network, the networks of read-only instances associated with the source instance won't be automatically switched, that is, you need to manually switch them.

    Directions

    Switching network

    1. Log in to the TencentDB for MySQL console. In the instance list, click an instance ID or Manage in the Operation column to enter the instance details page.
    2. Click Switch to VPC or Change Network after Network in the Basic Info section.
    3. In the pop-up window, select a VPC and a subnet and click OK.
      Note:

      • If there is no IP address specified, one will be automatically assigned by the system.
      • You can only select a VPC in the region of the instance.
      • We recommend you select the VPC where the CVM instance resides; otherwise, the CVM instance will not be able to access TencentDB for MySQL over the private network, unless a peering connection or a CCN instance is created between the two VPCs.
      • Switch from classic network to VPC
      • Switch from VPC A to VPC B
    4. Return to the instance details page where you can view the network of the instance.

    Customizing IP and port

    1. Log in to the TencentDB for MySQL console. In the instance list, click an instance ID or Manage in the Operation column to enter the instance details page.
    2. Click after Private Network Address and Private Port in the Basic Info section.
      Note:

      Modifying the private network address and port affects the database business being accessed.

    3. In the pop-up window, specify the IP and port and click OK.