Convert the static public IP of an ECS instance to an independently managed EIP for greater flexibility:
-
Failover: If an ECS instance fails, quickly switch the EIP to a standby instance to maintain business continuity.
-
Architecture upgrades: Associate the EIP with a load balancer or NAT gateway to simplify network upgrades.
Impacts of conversion
-
IP address stays the same: The public IP address remains unchanged during conversion. Existing connections are not affected.
-
Billing changes: Your public bandwidth billing method and unit price remain unchanged. The EIP is billed separately and incurs a configuration fee and public network fees.
When the EIP configuration fee is waived.
-
Irreversible operation: This conversion cannot be undone. To use a static public IP again, disassociate the EIP and adjust the ECS instance's public bandwidth to allocate a new static public IP. The IP address will change.
Prerequisites
-
Instance state:
-
The ECS instance is in the Running or Stopped state.
-
If a specification change is in progress, wait for it to complete before converting.
-
-
Billing method:
-
Pay-as-you-go ECS instance: Your account has no overdue payments.
-
Subscription ECS instance:
-
The public bandwidth billing method is pay-by-traffic. If it is pay-by-bandwidth, change it to pay-by-traffic first.
-
The subscription does not expire within 24 hours.
-
-
-
Region: Not supported for static public IPs on the BGP (Multi-ISP) Pro line in China (Hong Kong).
Convert to an EIP
Console
-
Go to the ECS console - Instances page.
-
Click the target ECS instance ID. In the All Actions menu, choose Network and Security Group > Convert to EIP.
-
Review the information and click OK. After conversion, on the Instance Details page, the Public IP Address field is empty and the EIP field displays the converted EIP.
API
Call ConvertNatPublicIpToEip to convert a static public IP to an EIP.