Switching Virtual Private Clouds

Last Updated At: 2025-10-21 09:10:00

Prerequisites

  1. You can shut down first, and switch to Virtual Private Cloud to operate.
  2. Before migration, unbind the private/public network LB and Elastic Network Interface by yourself, release the secondary IP of the primary network interface, and then bind them after migration.
  3. During the migration process, the instance needs to be restarted. Do not perform other operations.
  4. After migration, check the instance running status, private network access, and remote log-in to see if they are normal.
  5. Switching from a basic network to a VPC is irreversible. After a CVM is switched to a VPC, CVM cannot communicate with cloud services on other basic networks.

Operation Steps

  1. Log in to the CVM Console.
  2. In the instances list, select the instance for which you want to switch the VPC and click More > CVM Configuration > Switching Private Network.
  3. On the page that pops up, read the precautions carefully and click Next.
  4. Select the target network and subnet, then click Next.
  5. Set the pre-allocated IP address and HostName options, and click Next.
    Note: If the pre-allocated IP address is empty, the system will automatically allocate one.
  6. Read the precautions carefully, determine whether forced shutdown is required and click OK.
  7. On the Instances page, the status column will display Modify instance vpc attributes. After the modification is successful, the corresponding configuration will be updated to the latest network information.