tencent cloud

Feedback

Switching to VPC

Last updated: 2022-03-28 17:19:33

    Overview

    Tencent Cloud provides the classic network and VPC for different scenarios. Various features are offered to help you flexibly manage your networks.

    • Switching between networks:
    • Switching from the classic network to VPC: Tencent Cloud allows you to migrate one or more CVM instances from the classic network to VPC at a time.
    • Switching between VPCs: Tencent Cloud allows you to migrate one or more CVM instances from VPC A to VPC B at a time.
    • Specifying a custom IP address.
    • Choosing to retain the HostName.

    Prerequisites

    • Before migration, unbind the CVM instance from the CLB and ENI in the private and public networks and release the secondary IP address of the primary ENI. Rebind them after migration.

    Operation Directions

    Determining the network attribute of the CVM instance

    1. Log in to the CVM console.
    2. On the "instance" list page, view the target instance of which the network is pending switched based on the actually used view mode.

      The instance is in the classic network if "Network: Classic Network" appears in the Instance Configuration column, as shown below:

      Note
      • Switching from a classic network to a VPC is irreversible. A CVM instance cannot communicate with CVM instances in classic networks after being migrated from a classic network to a VPC.
      • Before switching from a classic network to a VPC, it is necessary to create a VPC in the same region and a subnet in the same availability zone as the CVM in the classic network to be migrated in advance. For details, see Creating VPCs.
      • After determining the network attribute of the instance, switch to VPC as required.

    Switching to VPC

    1. Log in to the CVM console.

    2. On the Instances page, migrate the target instance to VPC.

      Migrating a single instance to VPC

      Select the target instance to be migrated, and click More > Resource Adjustment > Switch VPC under the Operation column, as shown below:

      Migrating instance in batches to VPC

      To migrate the target instances to VPC in batches, check the instances of which the network to be switched, and select More > Resource Adjustment > Switch VPC above the list of instances, as shown below:

      Note

      Batch migration is only supported for CVM instances in the same availability zone.


    3. In the Switch VPC window that appears, read the notes and then click Next.

    4. Select the destination VPC and the corresponding subnet and then click Next.

    5. Specify the pre-assigned IP address and the HostName options for Set IP as needed, and then click Next.

      Note
      • If no pre-assigned IP address is specified, the system will automatically assign an IP address.
      • When specifying the HostName options, you can select Reset HostName or Retain the original HostName of the instance.
    6. Perform the operations according to the instructions on the Shutdown CVM page and then click Start Migration. After the migration is completed, you can log in to the CVM console. On the Instances page, you will see that Modifying instance VPC attributes is displayed in the Status column of the migrated instances.

      Note
      • During the migration, the CVM instance or instances need to be restarted. Therefore, do not perform other operations.
      • After the migration, please check whether the CVM instance or instances are running normally and can be accessed via a private network and logged in to remotely.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support