When you release an Elastic Compute Service (ECS) instance, you can convert the static public IP address of the ECS instance to an elastic IP address (EIP). After the conversion, the public IP address becomes the IP address of the EIP. You can associate EIPs with or disassociate EIPs from ECS instances in virtual private clouds (VPCs) anytime. EIPs meet the requirements of various scenarios such as network migration and flexible bandwidth adjustment.

Prerequisites

Before you convert the static public IP address of an ECS instance in a classic network to an EIP, make sure that the ECS instance meets the following requirements:
  • The ECS instance is assigned a static public IP address.
  • The ECS instance is not deployed in Hangzhou Zone C.
  • If the ECS instance is billed on a pay-as-you-go basis, the ECS instance must be in the Stopped state. The Alibaba Cloud account of the ECS instance cannot have overdue payments.
  • If the ECS instance is billed on a subscription basis:
    • The ECS instance must be in the Expired state.
      Note If a subscription ECS instance is in the Expired state, you can directly release the instance. When you release the instance, you can choose to convert the static public IP address of the ECS instance to an EIP. If you want to release a subscription ECS instance that has not expired, you must change the billing method of the ECS instance to pay-as-you-go, and then release the ECS instance. For more information, see Change the billing method of an instance from subscription to pay-as-you-go.
    • The public bandwidth of the ECS instance must be billed on a pay-by-data-transfer basis. You can change the billing method of the public bandwidth from pay-by-bandwidth to pay-by-data-transfer when you upgrade or downgrade the ECS instance. For more information, see Overview of instance configuration changes.
  • If the instance type of the ECS instance is being changed, wait until the change is complete.
  • Snapshots are created to back up data and prevent data loss caused by user errors. For more information, see Create a snapshot.

Background information

After you convert the static public IP address of an ECS instance in a classic network to an EIP, take note of the following information:

  • The EIP is billed on a pay-by-data-transfer basis.
  • The public bandwidth value of the EIP is the same as the public bandwidth value of the ECS instance. You can increase the public bandwidth value of the EIP in the EIP console.
    Note If the public bandwidth value of an ECS instance in a classic network is 0 Mbit/s before the conversion, the public bandwidth value of the EIP is 1 Mbit/s by default.
  • The EIP cannot be associated with an ECS instance in a classic network.
  • An ECS instance in a classic network has a public network interface controller (NIC). After you convert the static public IP address of the ECS instance to an EIP, the NIC and the media access control (MAC) address of the NIC are not retained.

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 ECS instance that you want to manage and perform one of the following operations to release the instance:
    • To release a subscription instance, click Release in the Actions column.
    • To release a pay-as-you-go ECS instance, choose More > Instance Status > Release in the Actions column.
  5. Select Release Now, select Convert the public IP address of the ECS instance in a classic network to an EIP address. (The EIP addresses that are not bound to ECS instances will be billed.), and then click Next.
    Convert the public IP address of the ECS instance in a classic network to an EIP address. (The EIP addresses that are not bound to ECS instances will be billed.)
  6. Click OK.

Result

After the public IP address of the ECS instance is converted to an EIP, the ECS instance is released. You can view the EIP in the EIP console. View the EIP

What to do next

You can associate the EIP with another ECS instance. For more information, see Associate an EIP with a cloud resource.