Help Center/ Bare Metal Server/ User Guide/ Network/ VPC/ Changing the Private IP Address
Updated on 2023-07-14 GMT+08:00

Changing the Private IP Address

Scenarios

You can directly change the private IP address of a BMS in a VPC, or change the private IP address by modifying the subnet to which the BMS belongs.

Constraints

  • The BMS must be stopped.
  • The private IP address of an extension NIC cannot be changed.
  • If you specify a private IP address, ensure that the IP address belongs to the selected subnet.
  • The private IP address cannot be in the same subnet as the IP addresses of other NICs of the BMS.
  • The BMS cannot be in an ELB backend server group.

Procedure

  1. Log in to the management console.
  2. Under Computing, click Bare Metal Server.
  3. In the upper right corner of the BMS list, enter the name, private IP address, ID, or flavor of a BMS and click to search for the desired BMS.
  4. Click the name of the target BMS.

    The page showing details of the BMS is displayed.

  5. Click the NICs tab. Locate row that contains the primary NIC and click Change Private IP Address.

    The Change Private IP Address dialog box is displayed.

    Figure 1 Changing a private IP address
  6. Change the subnet and private IP address of the primary NIC and click OK.

    You can only select a subnet in the same VPC as the original subnet.

    If you do not need to change a subnet, change the private IP address only.

    If you do not specify Private IP Address, the system will assign one to the primary NIC.

  7. On the BMS details page, click Start in the upper right corner. After the BMS is started, the new private IP address will take effect.