You can associate a public IP address with an internal-facing Classic Load Balancer (CLB) instance in a virtual private cloud (VPC). This way, the internal-facing CLB instance can forward requests from the Internet.
Background information
An elastic IP address (EIP) is a public IP address that you can purchase and use as an independent resource. You can associate EIPs with Elastic Compute Service (ECS) instances, internal-facing CLB instances in VPCs, and Internet NAT gateways. For more information, see What is EIP?
Limits
Make sure that your CLB instance is internal-facing.
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 a CLB instance.
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 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 EIP.
In the message that appears, check 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 static public IP address by using one of the following methods:
Purchase an internal-facing CLB instance and associate an EIP with the static public IP address of 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 an 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 an Internet-facing NLB instance to enable Internet access. For more information, see Create and manage an NLB instance.