edit-icon download-icon

FAQ about VPC-Connected ECS instance support for public IP address (PublicIP)

Last Updated: Mar 06, 2018

In what scenario do I need to buy a PublicIP for my ECS instance?

Select “PublicIP” to buy a temporary public IP address, which is assigned when you buy an VPC-Connected ECS instance and released together with the instance.

Select “Elastic IP (EIP)” to buy a perpetual public IP address, which can be bound to or unbound from the expected ECS instance.

How do I buy an VPC-Connected ECS instance assigned a PublicIP?

Go to the ECS purchase page and select a public bandwidth option other than 0 Mbps. Then a PublicIP is automatically assigned to your ECS instance.

What billing methods are available for the PublicIP of my VPC-Connected ECS instance?

You can buy a PublicIP for an VPC-Connected ECS instance in the billing method of PayByTraffic, which is based on the actual network traffic. Fees are paid after you use it and billed hourly. To prevent high charges incurred by traffic spikes, you can designate the maximum bandwidth allowed.

What is the difference between a PublicIP and an EIP for a VPC-Connected ECS instance?

  • A PublicIP is automatically assigned when an instance is created or when the 0 Mbps bandwidth is upgraded. The assigned PublicIP can be released along with the release of the instance, but cannot be unbound from the instance.
  • An EIP can be applied for separately. You can bind the EIP to an instance without any public IP address (PublicIP or EIP), unbind the EIP from the instance and then bind it to another instance or not.

A VPC-Connected ECS instance can be assigned only one public IP address (PublicIP or EIP).

Can I unbind the PublicIP from my VPC-Connected ECS instance?

No. The PublicIP can only be released when you release the instance.

How can I obtain a public IP address if my VPC-Connected ECS instance was not assigned one upon purchase?

If your ECS instance is in Subscription mode, you can obtain a public IP address by performing bandwidth upgrade or binding an EIP to the instance. If your ECS instance is in Pay-As-You-Go mode, you must bind an EIP to the instance.

How can I query the metric data of the PublicIP of my VPC-Connected ECS instance?

You can query the metric data on the ECS console.

How can I query the bill of the PublicIP of my VPC-Connected ECS instance in PayByTraffic mode?

You can query the bill on the ECS console.

What are the similarities and differences between a PublicIP for an VPC-Connected ECS instance and that for an ECS-Classic instance?

  • Similarities: The PublicIP can be used to access the Internet. They are bought together with instances. They can be released as the release of the instances, but cannot be unbound from the instances.
  • Differences: The PublicIP for a VPC ECS is a NAT IP address, which cannot be queried through command lines in the ECS instance. The PublicIP for a classic network ECS is a Binding IP address, which can be queried through command lines in the ECS instance.
Thank you! We've received your feedback.