[英]Can't associate an Elastic IP on Amazon EC2 Instance
I just create a new EC2 instance on Amazon, with default options, and there is no way to associate an Elastic IP with this instance. 我只是在Amazon上使用默认选项创建一个新的EC2实例,并且无法将弹性IP与此实例相关联。 The options are not available, and I haven't reach my limit.
选项不可用,我没有达到我的极限。
AWS added automatically an public ip, but I am afraid that this is not flexible as an Elastic IP (I will install Nginx on this instance). AWS自动添加了一个公共IP,但我担心这不像弹性IP那样灵活(我会在这个实例上安装Nginx)。
Anyone knows what networking configuration I need to change to AWS allow me set up Elastic IPs? 任何人都知道我需要更改到AWS的网络配置允许我设置弹性IP吗?
From the availability zone it seems your Instance is in a VPC so when you are allocating a new Elastic IP be sure you are allocating the IP address for a VPC as classic Elastic IP cannot be attached to a EC2 instance in a VPC. 从可用区看,您的实例似乎在VPC中,因此当您分配新的弹性IP时,请确保为VPC分配IP地址,因为经典的弹性IP无法附加到VPC中的EC2实例。 Once you allocate Elastic IP you will be able to associate that elastic IP using your method.
分配弹性IP后,您将能够使用您的方法关联弹性IP。
Check this screenshot. 检查此屏幕截图。
Elastic IP addresses are not assigned to EC2 instances on the main EC2 instances list page (as you show in your screenshot). 弹性IP地址未分配给主EC2实例列表页面上的EC2实例(如屏幕截图所示)。
Instead, go to the "Elastic IPs" page (on the left sidebar of the EC2 Management Console, closer to the bottom). 而是转到“弹性IP”页面(位于EC2管理控制台的左侧边栏,靠近底部)。 On that page, you will then:
在那个页面上,您将:
When you are done with the Elastic IP address (meaning, you don't need to use it anymore for your EC2 instance), then "Release" the address so it is no longer used by your AWS account. 当您完成弹性IP地址(意味着您不再需要为EC2实例使用它)时,请“释放”该地址,以便您的AWS账户不再使用该地址。 This way, you avoid being charged for keeping an unused Elastic IP address.
这样,您就可以避免因保留未使用的弹性IP地址而被收费。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.