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 EIP?.
Limits
Make sure that the CLB instance is an internal-facing 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
- Log on to the CLB console.
- In the top navigation bar, select the region where the CLB instance resides. On the Instances page, find the internal-facing CLB instance that you want to manage.
- Choose Actions column of the CLB instance. in the
- In the Associate with 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 Buy EIP and follow the instructions on the buy page 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 CLB instance resides. On the Instances page, find the internal-facing CLB instance that you want to manage.
- On the Instances page, use one of the following methods to disassociate the EIP:
- Choose Actions column of the CLB instance. in the
- 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.
- 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.
FAQ
Can I associate an EIP with the static public IP address of an Internet-facing CLB instance?
No.
- 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.