Change Instance Subnet

Last Updated At: 2025-11-26 15:44:37

Overview

This document guides you to directly change the subnet to which a Cloud Virtual Machine instance in a Virtual Private Cloud belongs in the console.

limitation factor

  • Changing the subnet will cause the associated Cloud Virtual Machine to automatically restart.
  • The secondary network interface cannot change the subnet.

Directions

  1. Log in to the CVM Console.
  2. On the CVM host list page, select the region where the instance whose subnet needs to be changed belongs.
  3. On the CVM host list page, find the instance whose subnet needs to be changed and click ID/Host Name of the instance to enter the Instance Details page.
  4. On the Instance Details page, select the ENI tab and click Primary ENI ID.
    Enter the Primary Network Interface Management page.
  5. On the Primary Network Interface Management page, click Change Subnet.
  6. In the pop-up Change Subnet window, select a new subnet, enter a new primary IP, and click OK.
    After the instance is restarted, it takes effect.
    Note:

    - If you have not yet created a subnet in this availability zone, please create one first.

  • When entering the new primary IP, you can only enter a private IP that belongs to the current subnet CIDR.