All Products
Search
Document Center

Elastic Compute Service:Convert the system-assigned public IP address of an instance in the classic network into an EIP

Last Updated:Nov 13, 2023

When you manually release an Elastic Compute Service (ECS) instance that is located in the classic network, you can convert the system-assigned public IP address of the instance into an elastic IP address (EIP). EIPs can be associated with ECS instances that are located in virtual private clouds (VPCs) for a variety of scenarios such as network migration and flexible bandwidth adjustment. You can convert the system-assigned public IP address of an ECS instance that is located in the classic network into an EIP only when you manually release the instance.

Prerequisites

Before you convert the system-assigned public IP address of an ECS instance in the classic network into an EIP, make sure that the instance meets the following requirements:

  • The instance is assigned a public IP address.

  • If the instance is a pay-as-you-go instance, it is in the Stopped state and you do not have overdue payments in your account.

  • If the instance is a subscription instance, it is in the Expired state.

    Note

    After you convert the public IP address of the subscription instance that resides in the classic network into an EIP, you can directly release the instance if the instance is in the Expired state. If a subscription instance in the classic network has not expired, you can change the instance billing method to pay-as-you-go and then release the instance. When you release the instance, you can convert its system-assigned public IP address into an EIP. For information about how to change the billing method, see Change the billing method of an instance from subscription to pay-as-you-go.

  • If the instance is a subscription instance, the instance has at least 24 hours remaining in its subscription duration and uses the pay-by-traffic billing method for network usage. If the subscription instance uses the pay-by-bandwidth billing method for network usage, change the billing method for network usage to pay-by-traffic. For more information, see Overview of instance configuration changes.

  • If the configurations of the instance were changed, the new configurations already take effect.

  • Snapshots are created to back up data and prevent data loss caused by accidental operations. For more information, see Create a snapshot for a disk.

Precautions

After you convert the system-assigned public IP address of an ECS instance in a classic network into an EIP, take note of the following items:

  • The EIP is billed on a pay-by-data-transfer basis.

  • The public bandwidth of the EIP is the same as that of the ECS instance. You can increase the public bandwidth of the EIP in the VPC console. However, if the public bandwidth of the ECS instance is 0 Mbit/s, the public bandwidth of the EIP is 1 Mbit/s.

  • The EIP cannot be associated with an ECS instance located in the classic network.

  • Unlike ECS instances in VPCs, ECS instances in the classic network are configured with public network interface controllers (NICs). After the system-assigned public IP address of an ECS instance in the classic network is converted into an EIP, the public NIC is unbound from the instance and the media access control (MAC) address of the NIC is released.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the upper-left corner of the top navigation bar, select a region. 地域

  4. Find the ECS instance in the classic network 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 instance, choose icon1 > Instance Status > Release in the Actions column.

  5. In the Release dialog box, set Release Mode to 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.

    112.png
  6. Click OK.

Result

After the system-assigned public IP address of the instance that resides in the classic network is converted into an EIP, the instance is released. You can view the new EIP in the VPC console.

114.png

What to do next

You can associate the EIP with another ECS instance. For more information, see the "Associate an EIP with an instance" section of the Associate or disassociate an EIP topic.