After the public IP address of a VPC-type instance is converted to an Elastic IP address (EIP), you can unbind the EIP from the instance and bind it to another instance at any time. Address conversion does not affect the access from the public network to your ECS instance or cause transient traffic interruptions.

Prerequisites

Before converting a public IP address of a VPC-type instance to an EIP, make sure the following requirements are met:
  • The instance has been assigned a public IP address.
  • If the instance is a pay-as-you-go instance, your account has no overdue payments.
  • If the instance is a subscription instance, the instance must not be within 24 hours of expiry.
  • If the instance is a subscription instance, the billing method of the Internet bandwidth is Pay-By-Traffic. You can change the Pay-By-Bandwidth billing method of the Internet bandwidth by upgrading or downgrading the instance. For more information, see Overview of instance upgrade and downgrade.
  • If the type of the instance has been changed, wait until the change takes effect before proceeding.
  • The instance is in the Running or Stopped state.

Background information

After the public IP address of a VPC-type instance is converted to an EIP,
  • The billing method of the Internet bandwidth remains unchanged.
  • The EIP is billed separately. For more information about EIP billing, see EIP pricing. You can go to the Billing Management page, select Usage Records, and select Elastic IP to export EIP usage records.

This section describes how to convert the public IP address of a VPC-type ECS instance to an EIP by using the ECS console. You can also convert the IP address by calling the ConvertNatPublicIpToEip operation. To call this operation, use SDK 4.3.0 or later. For more information, see SDK reference.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. Find the instance with the VPC network type, and then choose More > Network and Security Group > Convert to EIP from the Actions column.
  5. In the dialog box that appears, confirm the information, and click OK.
  6. Refresh the instance list.

Result

After the public IP address is converted to an EIP, the public IP address is followed by (EIP).

You can click the EIP to go to the EIP console to manage the EIP.

What to do next

After the public IP address is converted to an EIP, you can: