All Products
Search
Document Center

Server Load Balancer:Associate and manage an EIP

Last Updated:Jan 31, 2024

If you use an internal-facing Classic Load Balancer (CLB) instance in a virtual private cloud (VPC) and you want the CLB instance to communicate with the Internet, you can associate an elastic IP address (EIP) with the CLB instance. This way, the CLB instance can forward requests from the Internet and provide Internet-facing services. You are charged for EIPs.

Introduction to EIPs

An EIP is a public IP address that you can purchase and use as an independent resource. For more information, see What is an EIP?

Limits

  • You cannot associate EIPs with Internet-facing CLB instances. You can associate EIPs only with internal-facing CLB instances in VPCs. Make sure that your CLB instance is internal-facing.

  • Limits on associating an EIP with an internal-facing CLB instance:

    • The CLB instance and the EIP that you want to associate with the CLB instance must belong to the same region.

    • You can associate only one EIP with each CLB instance.

Billing

  • After you associate an EIP with an internal-facing CLB instance, the EIP incurs fees. For more information about the billing rules, see Billing methods.

  • After you associate an Anycast EIP with an internal-facing CLB instance, the Anycast EIP incurs fees. For more information about the billing rules, see Billing rules.

Prerequisites

  • An internal-facing CLB instance is created in a VPC.

  • 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 internal-facing CLB instance that you want to manage is deployed. On the Instances page, find the CLB instance.

  3. On the Instances page, use one of the following methods to associate an EIP:

    • Choose 更多 > Change Specification > Bind EIP in the Actions column of the CLB instance.

    • Find the CLB instance and click the instance ID. On the Instance Details tab, click Associate EIP next to Endpoint.

  4. In the Associate with EIP panel, configure the following parameters and click OK.

    Parameter

    Description

    IP 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 on-screen instructions to purchase an EIP. For more information, see Apply for an EIP.

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 internal-facing CLB instance that you want to manage is deployed. On the Instances page, find the CLB instance.

  3. On the Instances page, use one of the following methods to disassociate the EIP:

    • Choose 更多 > Change Specification > Unbind EIP in the Actions column of the CLB instance.

    • Find the CLB instance and click the instance ID. On the Instance Details tab, click Disassociate EIP next to Endpoint.

  4. In the message that appears, confirm the information and click OK.

    After you disassociate the EIP, the internal-facing CLB instance cannot forward requests from the Internet. If the data is not updated after you perform the operation, refresh the page.

FAQ

Can I associate an EIP with the static IP address of an Internet-facing CLB instance?

No, you cannot directly associate an EIP with the static public IP address of an Internet-facing CLB instance.

However, you can associate an EIP with a CLB instance using one of the following methods:

References