This article describes how to convert the assigned public IP address of an ECS instance in a VPC network, (referenced as VPC instance for short in this article), to an elastic public IP (EIP) address. After conversion, you can retain the public IP address and bind it to another ECS instance.
To convert a public IP address to an EIP address, consider the following limits:
You cannot undo this action. Exercise caution when converting an assigned public IP address to an EIP address.
Only a VPC instance assigned a public IP address is supported.
Only a VPC instance in the Stopped or Running status is supported.
Only a VPC instance that does not have any inactivated specification changes is supported.
Only a VPC instance that is not within the last 24 hours of its life cycle is supported.
The conversion has no effect on the Internet access of the VPC instance. It does not cause transient traffic interruption.
The billing method of the public traffic remains unchanged.
After conversion, the EIP address is charged separately. For more information about billing of EIP addresses, see EIP billing. You can go to the Usage Records page in the Billing Management to download the Elastic Public IP usage record.
To convert a public IP address to an elastic public IP (EIP) address, follow these steps:
- Log on to the ECS console.
- In the left-side navigation pane, click Instances.
- Select the region.
- Find the target VPC instance to convert the public IP address, in the Actions column, select .
- In the Convert to EIP dialog box, read the note and click OK.
- Refresh the instance list.
Click the IP address to go to the EIP console to manage the EIP address.
After the public IP address is converted to an EIP address, you can unbind the EIP address from the instance and bind it to another instance. You can also release the EIP address. For more information, see unbind and release an EIP.
You can use the ConvertNatPublicIpToEip interface to convert a public IP address to an EIP address. Currently, only SDK 4.3.0 or a later version supports this interface.
Download the latest SDK.