This topic describes how to convert the assigned public IP address of an ECS instance in a VPC network (hereinafter referred to as VPC instance) 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 state 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, choose .
- Find the target VPC instance to convert the public IP address, and then choose from the Actions column.
- In the Convert to EIP dialog box, read the note and click OK.
- Refresh the instance list.
After the public IP address is converted to an EIP address, the IP address is followed by (Elastic IP Address).
You can click the IP address to go to the EIP console to manage the EIP address.
What to do next
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, or release the EIP address. For more information, see Disassociate an EIP from a cloud instance.
You can call ConvertNatPublicIpToEip to convert a public IP address to an EIP address. Currently, only SDK 4.3.0 or a later version supports this API action.
Download the latest SDK.