This topic describes how to associate an elastic IP address (EIP) with an internal-facing Classic Load Balancer (CLB) instance that is deployed in a virtual private cloud (VPC). After you associate an EIP with an internal-facing CLB instance, the CLB instance can forward requests from the Internet.

Background information

An EIP is a public IP address that you can purchase and use as an independent resource. You can associate an EIP with an Elastic Compute Service (ECS) instance, an internal-facing CLB instance in a VPC, or an Internet NAT gateway. For more information, see What is an EIP?.

Limits

Limits on associating an EIP with a CLB instance:
  • The CLB instance and the EIP must belong to the same region.
  • A CLB instance can be associated only with one EIP.

Prerequisites

  • An internal-facing CLB instance that is deployed in a VPC is created.
  • An EIP is created. For more information, see Apply for an EIP.

Associate an EIP with a CLB instance

  1. Log on to the CLB console.
  2. In the top navigation bar, select the region where the CLB instance that you want to manage is deployed and find the CLB instance.
  3. Choose More > Bind EIP in the Actions column of the CLB instance.
  4. In the Associate EIP panel, set the following parameters and click OK.
    Parameter Description
    IP Address Type Select EIP.
    Resource Group Select a resource group from the drop-down list.
    IP address Select an EIP from the drop-down list. If no EIP is available, click Purchase EIP and follow the instructions on the buy page to purchase an EIP. For more information, see Apply for an EIP.
    Note When you associate an EIP with an internal-facing CLB instance, your service will be temporarily interrupted. Therefore, we recommend that you perform this operation during off-peak hours or use another CLB instance to serve your workloads before the operation is completed.

Disassociate an EIP from a CLB instance

  1. Log on to the CLB console.
  2. In the top navigation bar, select the region where the CLB instance that you want to manage is deployed and find the CLB instance.
  3. On the Instances page, use one of the following methods to disassociate the EIP:
    • Choose More > Unbind EIP in the Actions column of the CLB instance.
    • Click the ID of the CLB instance to navigate to the details page. On the Instance Details tab, click Unbind EIP next to IP Address.
  4. In the message that appears, confirm the information and click OK.
    After you disassociate the EIP from the CLB instance, the CLB instance can no longer forward requests from the Internet. If the data is not updated after you perform the operation, refresh the page later.