# Binding an IP Address to or Unbinding an IP Address from a Load Balancer

#### Scenarios

You can bind an IP address to a load balancer or unbind the IP address from a load balancer based on service requirements.

- An IPv4 EIP or a private IPv4 address can be bound to or unbound from a dedicated load balancer.
- Only an IPv4 EIP can be bound to or unbound from a shared load balancer.

- Load balancers without IPv4 EIPs cannot route requests over the public IPv4 network.
- Load balancers without private IPv4 addresses cannot route requests over the private IPv4 network.

#### Binding an IPv4 EIP

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 Balancing.
4. On the Elastic Load Balancers tab page, locate the load balancer to which you want to bind an IPv4 EIP and click More > Bind IPv4 EIP in the Operation column.
5. In the Bind IPv4 EIP dialog box, select the EIP you want to bind to the load balancer.
6. Click OK.

#### Binding a Private IPv4 Address

Only dedicated load balancers support this function.

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 Balancing.
4. On the Elastic Load Balancers tab page, locate the load balancer to which you want to bind a private IPv4 address and click More > Bind Private IPv4 Address in the Operation column.
5. In the Bind Private IPv4 Address dialog box, select the subnet where the IP address resides and specify the IP address.
   - By default, the system automatically assigns an IP address. To manually specify an IP address, deselect Automatically-assigned IP address and enter the IP address.
   - Ensure that the entered IP address belongs to the selected subnet and is not in use.
6. Click OK.

#### Unbinding an IPv4 EIP

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 Balancing.
4. On the Load Balancers page, locate the load balancer from which you want to unbind the IPv4 EIP and click More > Unbind IPv4 EIP in the Operation column.
5. In the Unbind IPv4 EIP dialog box, confirm the IPv4 EIP that you want to unbind and click Yes.

   After the IPv4 EIP is unbound, the load balancer cannot route requests over the Internet.

#### Unbinding a Private IPv4 Address

Only dedicated load balancers support this function.

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 Balancing.
4. On the Elastic Load Balancers tab page, locate the load balancer from which you want to unbind the private IPv4 address and click More > Unbind Private IPv4 Address in the Operation column.
5. In the Unbind Private IPv4 Address dialog box, confirm the private IPv4 IP address that you want to unbind and click Yes.

   After the private IPv4 address is unbound, the load balancer cannot route requests over the private IPv4 network.

Parent topic: Load Balancer