Change Instance Subnet

Last updated: 2020-08-07 14:33:54

    Overview

    This document describes how to change the subnet of a CVM instance in VPC via the console.

    Limits

    • The associated CVM restarts automatically after its subnet is changed.
    • The subnet of secondary ENI cannot be changed.

    Directions

    1. Log in to CVM Console.
    2. In Instances, select the region where the instance whose subnet needs to be changed belongs.
    3. Locate the instance whose subnet needs to be changed, click its ID/Name and enter the instance details page.
    4. Select the ENI tab, click the ID of the primary ENI,
      and enter the ENI management page, as shown below:
    5. Click Change Subnet, as shown below:
    6. Select a new subnet in the pop-up box. Enter a new IP, and click OK, as shown below:
      The configuration will take effect after the instance is restarted.

      Note:

      • Create a subnet if no subnet can be found in this availability zone.
      • Only the private IP address of the current subnet CIDR can be used as the new IP.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help