An Elastic IP Address (EIP) is a public IPv4 address that you can independently purchase and associate with VPC resources—including Elastic Compute Service (ECS) instances, Internet NAT Gateways, Server Load Balancer (SLB) instances, elastic network interfaces (ENIs), and High-availability Virtual IP (HaVip) addresses—for flexible internet access management.
Use cases
|
Provide internet access for ECS instances Associate an EIP with an ECS instance or ENI to provide internet access. |
Create a unified internet gateway Associate an EIP with an Internet NAT Gateway or SLB instance to create a unified gateway for internet traffic. |
|
Build a high-availability, public-facing service Associate an EIP with a High-availability Virtual IP (HaVip) to expose a highly available service to the internet. |
Optimize international access for users in the Chinese mainland A BGP (Multi-ISP) Pro EIP uses dedicated carrier lines to reduce latency for users in the Chinese mainland. |
Benefits
-
Flexible management: Associate or disassociate an EIP at any time to handle service changes and failover.
-
On-demand scaling: Adjust bandwidth caps on demand. Changes take effect immediately.
-
Cost optimization: EIPs support pay-by-bandwidth and pay-by-data-transfer billing. Add a pay-as-you-go EIP to an Internet Shared Bandwidth instance to reuse bandwidth and reduce costs.
-
Security and reliability: EIPs include basic DDoS protection by default. For stronger protection, use an Anti-DDoS (Enhanced) EIP.
EIP vs. static public IP
VPC resources use public IPv4 addresses for internet access. These addresses are categorized as static public IPs and EIPs.
A static public IP is assigned only at resource creation (such as ECS or Classic Load Balancer (CLB) instances) and cannot be disassociated or reassigned—it is released when the resource is deleted. An EIP is an independent resource you can dynamically associate or disassociate, providing greater management flexibility. We recommend EIPs.
Public-facing Application Load Balancer (ALB), Network Load Balancer (NLB), and Internet NAT Gateways use EIPs for internet access.
You can convert static public IPs of ECS and CLB instances to EIPs.
EIP selection
Billing method
Billing method | |||
Pay-as-you-go (pay-by-data-transfer) | Pay-as-you-go (pay-by-bandwidth) | Subscription (pay-by-bandwidth) | |
Billable items |
|
| Internet data transfer fee (bandwidth fee) |
Billing cycle and bill generation time |
|
|
|
Scenarios |
If you cannot estimate your traffic usage, choose pay-by-data-transfer. |
|
|
Cost optimization |
| - | |
Line type
You can select a line type only when you create an EIP. You cannot change it later.
|
Line type |
BGP (Multi-ISP) |
BGP (Multi-ISP) Pro |
|
Description |
Connects to multiple ISP lines and automatically selects the optimal path for fast, stable access. Available in all Alibaba Cloud regions. |
A premium line for traffic from outside the Chinese mainland to end users within the Chinese mainland (excluding data centers). Uses dedicated ISP connections to reduce latency and improve cross-border service quality. |
|
Use cases |
Default choice for most internet-facing services. Provides network stability and broad coverage. |
Optimized for inbound traffic to the Chinese mainland. Significantly reduces cross-border network latency. |
|
Limitations |
|
|
|
Cost |
Low |
Medium |
Security protection
You can select Anti-DDoS (Enhanced) only when you create an EIP. You cannot change this setting later.
|
Security protection type |
Default |
Anti-DDoS (Enhanced) |
|
Use cases |
No special DDoS protection requirements. Each EIP includes basic DDoS protection of up to 5 Gbps by default. |
Services that require terabit-level DDoS protection beyond the default 5 Gbps. |
|
Configuration |
Enabled by default for all EIPs. |
Must be selected when creating the EIP. |
|
Limitations |
Supported for EIPs in all regions. |
|
|
Billing changes |
Free of charge. |
Incurs additional fees charged by Anti-DDoS. Anti-DDoS Origin 2.0 (Post-paid). |
Quick start
-
Go to the Elastic IP Addresses console and click Create EIP to create a new EIP.
-
On the Elastic IP Addresses page, find the EIP, and in the Actions column, click Associate with Resource to associate the EIP with a cloud resource.