The difference between elastic IP and public IP in EC2 cloud host

Source: Internet
Author: User
Tags aws documentation

Create a EC2 instance, we can check "automatic distribution of public IP" (the exact words are in English, oh ~), you can not check, and then manually associated elastic IP (EIP), then the two have what difference?

Learn from Amazon Online Technical support:

(1) The EIP belongs to a specific account, can be associated to any instance of the account, but also can be unloaded down to other instances, and after the instance is deleted, the EIP still exists alone. (The allocation of EIP pay attention to the difference between VPC and EC2 EIP, different types of EIP can be associated to their own types of instances, that is, VPC in the EIP can only be used in VPC instances, Classic EC2 can only be associated with the EIP)
(2) While the ordinary public IP is a specific instance, can not unload and reconnect to other instances, when the instance is created, if the check automatically assign public IP, will be created with the instance, the instance is deleted, then deleted, cannot be reused and retained;
(3) There is also a very important feature: the public IP after the instance shutdown and then boot, may change, reboot does not affect (this is the same as the classic EC2 instance of public DNS, may change). And the EIP will never change.
(4) If the instance is created at the beginning, there is Publicip, then the ELASTICIP, both will become ELASTICIP appearance (is covered), when the EIP is released after the association, PUBLICIP will be revealed, but at this time will redistribute Publicip, So Publicip will change.
Therefore, if in the life cycle of the EC2 instance, there is the possibility of downtime and restart, or use EIP to compare insurance


Attention:
1. Today tested in the background to select the instance direct reboot, public IP & Private IP are unchanged.
2. If you stop first, then start, the IP may be changed. For more information on AWS Documentation:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.