All Products
Search
Document Center

Elastic Compute Service:Change the billing method for network usage of an ECS instance that uses a static public IP address

Last Updated:May 08, 2025

You can change the billing method for network usage of an Elastic Compute Service (ECS) instance that uses a static public IP address from pay-by-bandwidth to pay-by-traffic or from pay-by-traffic to pay-by-bandwidth. The static public IP address of the ECS instance is the public IP address assigned by the system.

Note

For information about how to change the billing method of an elastic IP address (EIP), see Switch metering methods.

Billing methods for network usage of an ECS instance that uses a static public IP address

  • Pay-by-bandwidth: You are charged fees based on the bandwidth that you specify. The actual outbound bandwidth of the instance does not exceed the specified bandwidth. This billing method is suitable for scenarios in which bandwidth usage is predictable.

  • Pay-by-traffic: You are charged fees based on the actual traffic volume. If you use this billing method, the bandwidth that you specify is the maximum bandwidth for outbound traffic. The bandwidth limit prevents out-of-control fees caused by traffic bursts. This billing method is suitable for scenarios in which bandwidth usage may significantly fluctuate.

    Important
    • If you use the pay-by-traffic billing method for network usage, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios in which demand exceeds available resources, the maximum bandwidths may not be reached. If you want guaranteed bandwidths for your ECS instance, use the pay-by-bandwidth billing method for network usage.

    • BGP (Multi-ISP) Pro lines in the China (Hong Kong) region do not support the pay-by-traffic billing method for network usage.

Change from pay-by-bandwidth to pay-by-traffic

The following section describes how to change the billing method for network usage of an instance from pay-by-bandwidth to pay-by-trafficin the ECS console. You can also call the ModifyInstanceNetworkSpec operation to change the billing method for network usage.

  1. Go to ECS console - Instance.

  2. In the top navigation bar, select the region and resource group of the resource that you want to manage. 地域

  1. Change the billing method for network usage of an ECS instance based on its billing method.

    Pay-as-you-go instance

    1. Find the pay-as-you-go instance that you want to manage and click its ID to go to the instance details page. In the upper-right corner of the page, choose All Actions > Upgrade/Downgrade > Change Pay-as-you-go Instance Bandwidth.

    2. In the Public Bandwidth section, select Pay-By-Traffic and specify a maximum bandwidth value.

      更改流量-guoji

    3. Read and select ECS Terms of Service, and then click Confirm. Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.

    Subscription instance

    1. Find the subscription instance that you want to manage and click its ID to go to the instance details page. In the upper-right corner of the page, choose All Actions > Upgrade/Downgrade > Change Subscription Instance Bandwidth.

    2. In the dialog box that appears, select Downgrade Bandwidth and click Continue.

    3. On the Downgrade Bandwidth page, select Pay-By-Traffic and specify a maximum bandwidth value.

      image

    4. Read and select ECS Terms of Service, and then click Downgrade. Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.

Note

Alibaba Cloud allows you to perform batch operations on the Instance page. You can select multiple ECS instances on the Instance page and batch change their billing methods for network usage.

Change from pay-by-traffic to pay-by-bandwidth

The following section describes how to change the billing method for network usage of an instance from pay-by-traffic to pay-by-bandwidthin the ECS console. You can also call the ModifyInstanceNetworkSpec operation to change the billing method for network usage.

  1. Go to ECS console - Instance.

  2. In the top navigation bar, select the region and resource group of the resource that you want to manage. 地域

  1. Change the billing method for network usage of an ECS instance based on its billing method.

Pay-as-you-go instance

  1. Find the pay-as-you-go instance that you want to manage and click its ID to go to the instance details page. In the upper-right corner of the page, choose All Actions > Upgrade/Downgrade > Change Pay-as-you-go Instance Bandwidth.

  2. In the Public Bandwidth section, select Pay-By-Bandwidth and specify a bandwidth value.

    更改带宽-固定带宽-guojizhan

  3. Read and select ECS Terms of Service, and then click Confirm. Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.

Subscription instance

  1. Find the subscription instance that you want to manage and click its ID to go to the instance details page. In the upper-right corner of the page, choose All Actions > Upgrade/Downgrade > Change Subscription Instance Bandwidth.

  2. In the dialog box that appears, select Modify Maximum Bandwidth Value and click Continue.

  3. In the Public Bandwidth section, select Pay-By-Bandwidth and specify a bandwidth value.

    更改带宽-固定带宽-guojizhan

  4. Read and select ECS Terms of Service, and then click Confirm. Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.

Note

Alibaba Cloud allows you to perform batch operations on the Instance page. You can select multiple ECS instances on the Instance page and batch change their billing methods for network usage.

References