Help Center> Huawei Cloud Flexus> User Guide> FlexusX> Managing VPCs> Changing a Private IP Address
Updated on 2024-06-18 GMT+08:00

Changing a Private IP Address

Scenarios

You can change the private IP address of the primary network interface for a FlexusX instance on the console.

Notes and Constraints

  • The FlexusX instance must be stopped.
  • If a virtual IP address or DNAT rule has been configured for the network interface, cancel the configuration before modifying the private IP address.
  • If the network interface has an IPv6 address, its private IPv4 or IPv6 address cannot be modified.
  • To change the private IP address for a backend server of a load balancer, remove the backend server from the backend server group first.

Procedure

  1. Log in to the FlexusX console, click in the upper left corner, and select a region and project.
  2. Locate the target FlexusX instance and click its name.

    The details page of this instance is displayed.

  3. On the Network Interfaces tab, locate the primary network interface and click Modify Private IP.

    The Modify Private IP dialog box is displayed.

  4. Change the subnet and private IP address of the primary network interface as required.
    • Subnet: You can change the subnet when changing the private IP address.

      You can only change to a subnet within the same VPC.

    • New Private IP Address: You can specify a new private IP address. If you do not specify a private IP address, the system will automatically assign one to the primary network interface.