Elastic IP Address (EIP) is a type of public IP address that you can purchase and hold as an independent resource. After EIPs are associated with cloud resources, the cloud resources can use the EIPs to communicate with the Internet. This topic describes how to apply for EIPs.
Apply for an EIP
Apply for a new EIP
EIPs support the subscription and pay-as-you-go billing methods.
Subscription: The subscription billing method requires you to pay for resources before you can use the resources. The subscription billing method supports the pay-by-bandwidth metering method. This billing method is suitable for scenarios in which resource usage is stable.
Pay-as-you-go: The pay-as-you-go billing method allows you to pay for the resources that you use. The pay-as-you-go billing method supports the pay-by-data-transfer and pay-by-bandwidth metering methods. This billing method is suitable for scenarios that experience temporary traffic spikes.
On the Elastic IP Addresses page, click Create EIP.
On the buy page, select the Pay-as-you-go or Subscription billing method, configure the EIP information, click Buy Now, and then complete the payment.
Pay-as-you-go
Region
Select the region in which you want to create the EIP.
Make sure that the EIP and the resource to be associated with the EIP are in the same region. EIPs can be associated with ECS instances in VPCs, NAT gateways, Server Load Balancer (SLB) instances, high-availability virtual IP addresses (HAVIPs), and secondary elastic network interfaces (ENIs).
Line Type
Select a line type for the EIP.
BGP (Multi-ISP): provides premium BGP lines across the world. BGP lines from different Internet service providers (ISPs) can be used. The optimal BGP line is automatically selected to ensure network stability. Supported ISPs are China Telecom, China Unicom, China Mobile, China Mobile Tietong, China Netcom, CERNET, NRTA, Dr. Peng Group, and Founder Broadband.
BGP (Multi-ISP) Pro: BGP (Multi-ISP) Pro is provided to improve the efficiency of data transmission from regions outside the Chinese mainland to the Chinese mainland. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to users in the Chinese mainland (excluding data centers), cross-border connections are established by using Chinese mainland ISP services. This reduces network latency.
NoteIf the pay-as-you-go billing method is used, the following regions support BGP (Multi-ISP) Pro: China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).
Network Type
Select a network type for the EIP.
You can select only Internet.
Security Protection
Select an edition of Anti-DDoS based on your requirements.
Default: Anti-DDoS Origin Basic, which can mitigate DDoS attacks at 5 Gbit/s or lower. For more information, see What is Anti-DDoS Origin?
Anti-DDoS (Enhanced): specifies Anti-DDoS Pro/Premium, which can mitigate DDoS attacks at the Tbit/s level.
ImportantIf you use Anti-DDoS Pro/Premium to protect your EIP, take note of the following items:
The first time you use Anti-DDoS Pro/Premium for your EIPs, click Anti-DDoS Origin (pay-as-you-go) to activate Anti-DDoS Pro/Premium on a pay-as-you-go basis.
If you use Anti-DDoS Pro/Premium to protect your EIP, you are charged a protection fee, which is managed by Anti-DDoS. For more information, see Anti-DDoS Origin 2.0 (Pay-as-you-go).
Anti-DDoS Pro/Premium is supported only in some regions. For more information about the supported regions, see Security protection types.
IP Address Pool
Select an IP address pool based on your business requirements.
By default, the system assigns an EIP from the public IP address pool of Alibaba Cloud.
You can also select an IP address pool from the drop-down list. Then, an EIP is allocated from the selected IP address pool.
For more information, see Create and manage an IP address pool.
Data Transfer
Select a metering method for data transfers over the EIP.
Pay-By-Data-Transfer: You are charged based on the amount of data transfers over the Internet on an hourly basis.
If you create a pay-by-data-transfer EIP after 00:00:00 on December 17, 2024 (UTC +8) for the first time, the EIP is billed by CDT by default. For more information about the billing rules and discount information about CDT, see Internet data transfers.
If your pay-by-data-transfer EIP was created after 00:00:00 on December 17, 2024 (UTC +8), the EIP is still billed based on the billing rules for pay-by-data-transfer EIPs.
To enable CDT for EIP, select Upgrade to Pay-by-CDT. After you enable CDT for EIP, the data transfers of all existing and new EIPs are billed by CDT.
Pay-By-Bandwidth: You are charged based on the specified maximum bandwidth on a daily basis, regardless of the actual usage.
Billing Method
Pay-by-CDT is selected by default if you select Pay-By-Data-Transfer for Data Transfer and one of the following conditions is met:
It is your first time creating a pay-by-data-transfer EIP after 00:00:00 on December 17, 2024 (UTC +8).
CDT is already enabled for EIP.
Maximum Bandwidth
Enter a bandwidth value or adjust the slider to specify a bandwidth value based on your business requirements.
Name
Enter a name for the EIP.
Resource Group
Select a resource group for the EIP.
Billing Cycle
Select a billing cycle for the EIP.
Pay-by-bandwidth EIPs support only the Day option. Pay-by-data-transfer EIPs support only the Hour option.
Quantity
Select the number of EIPs that you want to purchase.
Subscription
Parameter
Description
Region
Select the region in which you want to create the EIP.
Make sure that the EIP and the resource to be associated with the EIP are in the same region. EIPs can be associated with Elastic Compute Service (ECS) instances in virtual private clouds (VPCs), NAT gateways, Classic Load Balancer (CLB) instances, High-availability virtual IP addresses (HAVIPs), and secondary elastic network interfaces (ENIs).
Line Type
Select a line type for the EIP.
BGP (Multi-ISP): provides premium BGP lines across the world. BGP lines from different Internet service providers (ISPs) can be used. The optimal BGP line is automatically selected to ensure network stability. Supported ISPs are China Telecom, China Unicom, China Mobile, China Mobile Tietong, China Netcom, CERNET, NRTA, Dr. Peng Group, and Founder Broadband.
BGP (Multi-ISP) Pro: BGP (Multi-ISP) Pro is provided to improve the efficiency of data transmission from regions outside the Chinese mainland to the Chinese mainland. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to users in the Chinese mainland (excluding data centers), cross-border connections are established by using Chinese mainland ISP services. This reduces network latency.
NoteIf the subscription billing method is used, only the China (Hong Kong) region supports BGP (Multi-ISP) Pro.
Netmode
Select a network type for the EIP.
You can select only Public.
Bandwidth
Select a maximum bandwidth value for the EIP. Unit: Mbit/s.
Name
Enter a name for the EIP.
Resource Group
Select a resource group for the EIP.
Quantity
Select the number of EIPs that you want to purchase.
Duration
Select a subscription duration for the EIP based on your business requirements, and select whether you want to enable auto-renewal.
Recover a released EIP
You can recover EIPs that are released within the last seven days by specifying the IP address or EIP ID.
If the EIP or ECS static IP address is already assigned to another Alibaba Cloud account, or is locked or recycled due to security reasons, the EIP cannot be recovered. You cannot recover the public IP addresses of ECS instances or CLB instances that are deployed in classic networks.
By default, a recovered EIP is billed on a pay-by-data-transfer basis and the maximum bandwidth of the EIP is 5 Mbit/s.
If CDT is already enabled for EIP, the data transfers of the recovered EIP are billed by CDT. You can check whether CDT is enabled for EIP in the CDT console. For more information about CDT billing rules and discounts, see Internet data transfers.
On the Elastic IP Addresses page, select the region of the EIP in the top navigation bar and click Apply for Specific EIP.
In the Apply for Specific EIP dialog box, set Request Type to Apply for Specific EIP, configure the parameters, and then click OK. The following table describes the parameters.
Parameter
Request by IP Address
Request by EIP ID
Request Method
Request by IP Address: Specify the IP address of the EIP or the static public IP address of the ECS instance.
Request by EIP ID: Request an EIP by specifying the ID of the EIP.
IP Address or EIP ID
IP Address: Enter the IP address that you want to recover
EIP ID: Enter the ID of the EIP that you want to recover.
NoteYou can recover only EIPs that you have used before. You can view the EIPs that you have used on the Orders page.
Line Type
Select the line type of the EIP that you want to recover.
BGP (Multi-ISP): provides premium BGP lines across the world. BGP lines from different Internet service providers (ISPs) can be used. The optimal BGP line is automatically selected to ensure network stability. Supported ISPs are China Telecom, China Unicom, China Mobile, China Mobile Tietong, China Netcom, CERNET, NRTA, Dr. Peng Group, and Founder Broadband.
BGP (Multi-ISP) Pro: BGP (Multi-ISP) Pro is provided to improve the efficiency of data transmission from regions outside the Chinese mainland to the Chinese mainland. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to users in the Chinese mainland (excluding data centers), cross-border connections are established by using Chinese mainland ISP services. This reduces network latency.
NoteOnly the following regions support BGP (Multi-ISP) Pro: China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).
IP Address Pool
You can select an IP address pool from the drop-down list only when the IP address pool feature is enabled.
For more information, see Create and manage an IP address pool.
Apply for a contiguous EIP group
Beginning 00:00:00 (UTC+8), August 6, 2024, contiguous EIP groups are no longer available for new users. You can use IP address pools to assign contiguous IP addresses.
If you already used contiguous EIP groups before 00:00:00 (UTC+8), August 6, 2024, you can continue to use contiguous EIP groups.
You can migrate contiguous EIP groups to IP address pools to facilitate EIP management.
Applies for a contiguous EIP group
You can apply for multiple contiguous EIP groups at a time. Contiguous EIP groups facilitate network management. A contiguous EIP group consists of multiple contiguous EIPs. Contiguous EIP groups are similar to standard EIPs which are allocated from Alibaba Cloud IP address pools. You can associate contiguous EIP groups with cloud resources in VPCs, such as ECS instances, internal-facing CLB instances, internal-facing Application Load Balancer (ALB) instances, secondary ENIs, NAT gateways, and HAVIPs. After you associate a contiguous EIP group with a cloud resource, the cloud resource can use the EIPs in the contiguous EIP group for network communication.
Before you apply for a contiguous EIP group, take note of the following rules:
You cannot release only one EIP in a contiguous EIP group. If you want to release an EIP in a contiguous EIP group, you must release all EIPs in the contiguous EIP group.
The following table describes the differences between contiguous EIP groups and standard EIPs.
Item
Contiguous EIP group
Standard EIP
Billing methods
Only the pay-as-you-go billing method is supported.
The subscription and pay-as-you-go billing methods are supported.
Switch between billing methods
You cannot switch the billing method from pay-as-you-go to subscription.
You can switch the billing method from pay-as-you-go to subscription.
Billable items
EIPs in contiguous EIP groups and standard EIPs support the same billable items. For more information, see Billable items.
On the Elastic IP Addresses page, select the region of the EIP in the top navigation bar and click Apply for Specific EIP.
In the Apply for Specific EIP dialog box, set Request Type to Request Contiguous EIP Group, configure the parameters, and then click OK.
Parameter
Description
Mask for Contiguous EIP Group
Select a subnet mask length for the contiguous EIP group, and select I have read and understand that: N EIPs are allocated by default. One, three, or four EIPs may be reserved by the system.
Valid values: 24 to 28. The number of contiguous EIPs varies based on the subnet mask length selected for the contiguous EIP group.
/28: allocates 16 contiguous EIPs by default.
/27: allocates 32 contiguous EIPs by default.
/26: allocates 64 contiguous EIPs by default.
/25: allocates 128 contiguous EIPs by default.
/24: allocates 256 contiguous EIPs by default.
NoteIn some scenarios, the actual number of EIPs that are allocated may be less than the expected number because one, three, or four EIPs may be reserved.
Network Type
Select a network type for the contiguous EIP group.
You can select only Internet.
Metering Method
Select a metering method for the contiguous EIP group.
Pay-By-Bandwidth: You are charged based on the specified maximum bandwidth on a daily basis, regardless of the actual usage.
Pay-By-Data-Transfer: You are charged based on the amount of data transfer over the Internet on an hourly basis.
ImportantIf CDT is already enabled for EIP, the data transfers of the continuous EIP group are billed by CDT. For more information about the billing rules and discount information about CDT, see Internet data transfers.
Bandwidth
Specify a maximum bandwidth value for the contiguous EIP group.
Valid values: 1 to 200. Unit: Mbit/s.
Migrate a contiguous EIP group to an IP address pool
To facilitate the management of continuous EIP groups, you can migrate continuous EIP groups to IP address pools. The release of an EIP that falls into the CIDR block of an IP address pool does not affect the public CIDR block. You can also share the public CIDR block of an IP address pool among multiple Alibaba Cloud accounts.
This procedure migrates an entire continuous EIP group to an IP address pool. Before you migrate a continuous EIP group, take note of the following information:
The association between the EIPs and cloud resources remains unchanged.
After the migration, the EIPs cannot be restored to a continuous EIP group.
After the migration is complete, you are charged an IP address retention fee for the public IP addresses in the IP address pool.
On the Elastic IP Addresses page, select the region of the continuous EIP group in the top navigation bar.
Find an EIP in the continuous EIP group and choose
in the Actions column.In the Migrate Contiguous EIP Groups to IP Address Pool message, review the information and click OK.
If this is your first time using an IP address pool, read the terms of service and click Enable IP Address Pool.
Check the migration result.
After you perform the migration, the ID of the IP address pool is displayed in the IP Address Pool ID column. You can click the ID to go to the IP Address Pool page, where you can manage the IP addresses.
Alternatively, you can call the TransformEipSegmentToPublicIpAddressPool API operation to migrate a continuous EIP group to an IP address pool.
What to do next
After you apply for a continuous EIP group, you can associate the EIPs with cloud resources to allow the cloud resources to use the EIPs to communicate with the Internet.
Associate an EIP with an SLB instance
If a pay-as-you-go EIP is not associated with a cloud resource, you are still charged an EIP configuration fee (public IP retention fee). If you do not use a pay-as-you-go EIP, we recommend that you release the EIP.
FAQ
Am I immediately charged an EIP configuration fee (public IP retention fee) when my application for an EIP is approved?
Billing rules for pay-as-you-go EIPs:
After your application for an EIP is approved, you are immediately charged an EIP configuration fee (public IP retention fee). You are not charged an EIP configuration fee (public IP retention fee) if the EIP is allocated from a specific IP address pool.
When the EIP is associated with a resource, you are not charged an EIP configuration fee (public IP retention fee) only of the EIP is directly associated with an Elastic Compute Service (ECS) instance in a virtual private cloud (VPC) or an elastic container instance and the number of EIPs that your Alibaba Cloud account can own does not exceed 2,000.
NoteTo prevent unnecessary fees, we recommend that you apply for EIPs only when you need to use them.
If you use a subscription EIP, you are not charged an EIP configuration fee (public IP retention fee).
References
Associate EIPs with and disassociate EIPs from Internet Shared Bandwidth instances: You can associate pay-as-you-go EIPs with an Internet Shared Bandwidth instance to share the bandwidth of the Internet Shared Bandwidth instance.
How does a data transfer plan offset the data transfer fees of pay-by-data-transfer EIPs? data transfer plans automatically offsets EIP data transfer fees of pay-by-data-transfer EIPs, excluding data transfers over BGP (Multi-ISP) Pro lines.
IP address pools: To use EIPs or contiguous EIPs within a specific CIDR block, you can create an IP address pool and add the CIDR block to the IP address pool. When you create an EIP, you can specify the IP address pool to assign an IP address to the EIP.
Manage EIP quotas: Each Alibaba Cloud account can apply for at most 20 EIPs. If you need more EIPs, you can increase the EIP quota.
AllocateEipAddress: applies for an EIP.
AllocateEipAddressPro: applies for a specific EIP.
AllocateEipSegmentAddress: applies for a contiguous EIP group.