Modifying Private IP Addresses

Last updated: 2025-04-24 09:34:12

Scenario

You can directly modify the private IP of a Cloud Virtual Machine (CVM) instance in the Virtual Private Cloud (VPC) through the console, or change the instance's private IP by changing the subnet to which the CVM instance belongs. This document guides you on how to modify the private IP of a CVM instance in a VPC through the Tencent Cloud CVM console. For information on changing subnets, please refer to Changing Instance Subnet.

Limits

Modifying the primary IP of a primary ENI may cause the CVM to restart.
The primary IP of a secondary ENI cannot be modified.

Instructions

1. Log in to the CVM console.
2. Select the region of the instance whose private IP you want to modify, and click the instance ID/name to enter its details page.
3. In the Instance Details page, select the ENI tab and click

to expand the primary ENI.
4. In the primary ENI's operation column, click Modify Primary IP.

5. In the "Modify Primary IP" window that pops up, enter the new IP and click OK. The changes will take effect after the instance has finished restarting.
Note
You can only enter a private IP that belongs to the current subnet CIDR.