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
Log on to the CLB console.
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.
On the Instances page, use one of the following methods to associate an EIP:
Choose CLB instance.
in the Actions column of theFind the CLB instance and click the instance ID. On the Instance Details tab, click Associate EIP next to Endpoint.
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 Buy 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
Log on to the CLB console.
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.
On the Instances page, use one of the following methods to disassociate the EIP:
Choose CLB instance.
in the Actions column of theFind the CLB instance and click the instance ID. On the Instance Details tab, click Disassociate EIP next to Endpoint.
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 by using one of the following methods:
Purchase an internal-facing CLB instance and associate an EIP with the CLB instance. For more information, see Create and manage a CLB instance and Associate and manage an EIP.
Purchase an Internet-facing ALB instance. By default, an EIP is associated with the Internet-facing ALB instance to enable Internet access. For more information, see Create an ALB instance.
Purchase an Internet-facing NLB instance. By default, an EIP is associated with the Internet-facing NLB instance to enable Internet access. For more information, see Create and manage an NLB instance.
References
To associate an EIP with an Application Load Balancer (ALB) instance, create an Internet-facing ALB instance or change the network type of an internal-facing ALB instance to Internet-facing.
To associate an EIP with a Network Load Balancer (NLB) instance, create an Internet-facing NLB instance or change the network type of an internal-facing NLB instance to Internet-facing.