Updated on 2024-03-19 GMT+08:00

Changing an IP Address

Scenarios

You can change the private IPv4 address and IPv6 address bound to a load balancer.

  • You can change the private IPv4 address into another IPv4 IP address in the current subnet or other subnets.
  • You can change the IPv6 address into another IPv6 IP address in other subnets.

You can only change the IP address bound to a dedicated load balancer.

Constraints

To change the IPv6 address, ensure that the VPC where the load balancer works has subnets with IPv6 enabled.

Changing a Private IPv4 Address

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
  4. On the Load Balancers page, locate the load balancer whose IP address you want to change, and click More > Change Private IPv4 Address in the Operation column.
  5. In the Change Private IPv4 Address dialog box, select the subnet where the IP address resides and specify the IP address.
    • To use an IP address from another subnet, select Automatically assign IPv4 address. The system automatically assigns an IPv4 address for your load balancer.
    • To use another IP address from the current subnet, specify an IP address.
  6. Click OK.

Changing an IPv6 Address

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
  4. On the Load Balancers page, locate the load balancer whose IP address you want to change, and click More > Change IPv6 Address in the Operation column.
  5. In the Change IPv6 Address dialog box, select a different subnet where the IP address resides and specify the IP address.

    The system will automatically assign an IPv6 address to the load balancer from the subnet you select.

  6. Click OK.