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.
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.
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.
- 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).
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.
You can query the metric data on the
You can query the bill on the
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.