When you manually release an ECS instance in a classic network, you can convert the public IP address of the instance to an Elastic IP address (EIP). An EIP can be bound to an ECS instance in a VPC for various scenarios such as network migration, elastic binding, and flexible bandwidth adjustment.

Prerequisites

Before converting a public IP address to an EIP, make sure the following requirements are met:
  • The ECS instance has been assigned a public IP address.
  • The availability zone to which ECS instance belongs cannot be China Hangzhou zone C.
  • If the ECS instance is a subscription instance, it is in the Expired or Recycling Due to Expiration state.
  • If the ECS instance is a pay-as-you-go instance, your account must not have any overdue payments.
  • The public bandwidth billing method of the ECS instance is not pay-by-bandwidth. For more information about how to change the billing method of public bandwidth, see Overview of configuration changes.
  • If the ECS instance specifications are changed, wait until the change takes effect.
  • You have created snapshots for the instance to prevent data loss caused by incorrect operations. For more information, see Create a snapshot.
  • The ECS instance has been stopped. For more information, see Start or stop an instance.

Background information

After the public IP address is converted to an EIP:

  • The public bandwidth of the EIP is the same as that of the original ECS instance. If the public bandwidth of an ECS instance in a classic network is 0 Mbit/s before the conversion, the public bandwidth of the converted EIP is 1 Mbit/s by default.
  • The default billing method of the public bandwidth of EIPs is pay-by-traffic. For more information, see Elastic IP address Billing method.
  • You can increase the public bandwidth of the EIP in the VPC console.
  • The EIP cannot be bound to an ECS instance in a classic network.
  • An ECS instance in a classic network has a public network interface controller (NIC). If the public IP address of the ECS instance is converted to an EIP, the public NIC and MAC address of the instance will not be retained.

This topic describes how to convert the public IP address of an ECS instance in a classic network to an EIP when you manually release the instance. When an instance is released automatically, you cannot convert its public IP address.

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 target ECS instance in a classic network and select a release method.
    • To release a subscription instance, click Release in the Actions column corresponding to the instance.
    • To release a pay-as-you-go instance, choose More > Instance Status > Release in the Actions column corresponding to the instance.
  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 click Next.
  6. Click OK.

Result

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

  1. Log on to the VPC console.
  2. In the left-side navigation pane, click Elastic IP Addresses.
  3. View the converted EIP in the EIP list.

What to do next

You can bind this EIP to an ECS instance. For more information, see Associate an EIP with an ECS instance.