Choose a method to enable Internet access for an ECS instance based on your requirements.
Enable IPv4 public bandwidth
|
Method |
Applicable scenario |
Benefit |
References |
|
Assign a static public IP address to the ECS instance |
The ECS instance needs a static public IP address (auto-assigned) for long-term Internet access, such as continuous services. |
|
|
|
Associate an Elastic IP Address (EIP) with the ECS instance |
Internet access or network configuration changes are temporary or dynamic. Examples:
|
|
|
|
Associate an Anycast EIP with the ECS instance |
Enhances service availability over the Internet outside the Chinese mainland.
|
|
|
|
Use a NAT gateway to translate network addresses |
Multiple ECS instances need shared Internet access or public bandwidth, or have special access requirements. Examples:
|
|
|
|
Distribute Internet traffic with Server Load Balancer (SLB) |
Large-scale, high-concurrency Internet applications, such as Double 11 promotions and IoT applications.
|
Associate multiple backend servers with an SLB instance across zones to distribute IPv4 and IPv6 traffic, eliminate single points of failure, and improve availability. SLB product family |
Enable IPv6 public bandwidth
|
Method |
Applicable scenario |
Benefit |
References |
|
Assign an IPv6 address for which public bandwidth is enabled to the ECS instance |
Applications or services that support IPv6.
|
IPv6 provides a larger address space and supports direct access to the IPv6 Internet. |
|
|
Distribute Internet traffic with SLB |
Large-scale, high-concurrency Internet applications, such as Double 11 promotions and IoT applications.
|
Associate multiple backend servers with an SLB instance across zones to distribute IPv4 and IPv6 traffic, eliminate single points of failure, and improve availability. SLB product family |
References
-
To modify bandwidth configurations or change billing methods for static public IP addresses and EIPs, see Modify bandwidth configurations.
-
Billing details: Public bandwidth billing, Billing overview of EIPs, Billing rules of Anycast EIPs, Billing overview of NAT Gateway, Billing rules of IPv6 gateways, and Server Load Balancer billing.
-
To host multiple applications with independent public IP addresses on one instance, associate multiple EIPs through secondary elastic network interfaces (ENIs). See Bind Multiple EIPs to ECS via ENIs.