If you have an internal-facing Classic Load Balancer (CLB) instance and you want it to communicate with the Internet, you can associate an elastic IP address (EIP) with the 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 Elastic IP Address?
Limitations
You cannot associate EIPs with Internet-facing CLB instances. You can associate EIPs only with internal-facing CLB instances. Make sure that your CLB instance is internal-facing.
No matter how you are billed for your CLB instance, you can associate EIPs with your CLB instance.
Limitations 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.
Prerequisites
An internal-facing CLB instance is created.
An EIP is created. For more information, see Apply for an.
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:
Method 1: Choose CLB instance.
in the Actions column of theMethod 2: Find 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.
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.
Disassociate an EIP from a CLB instance
Log on to the CLB console.
In the top navigation bar, select the region where the 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:
Method 1: Choose CLB instance.
in the Actions column of theMethod 2: Find 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.
FAQs
Can I associate an EIP with an Internet-facing CLB instance?
No, this is not supported.
Instead, you can use the following methods to enable SLB instances to use EIPs for Internet communication:
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.
How can I reuse the public IP address of a CLB instance on another CLB instance?
You can release the CLB instance that you no longer need, switch its public IP address to an EIP, and retain the EIP. For detailed instructions, see Release a CLB 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.