简体   繁体   English

无法在Amazon EC2实例上关联弹性IP

[英]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: 在那个页面上,您将:

  1. Click the "Allocate New Address" to allocate a new Elastic IP address into your AWS account. 单击“分配新地址”以将新的弹性IP地址分配到您的AWS账户。
  2. Choose "Associate Address" from the "Actions" menu to assign that Elastic IP address to your EC2 instance. 从“操作”菜单中选择“关联地址”,将该弹性IP地址分配给您的EC2实例。

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地址而被收费。

Visit here and check if are able to attach an IP to this instance. 访问此处并检查是否能够将IP附加到此实例。 U will need to Allocate New Address to obtain new IP and then Assiciate. 您将需要分配新地址以获取新IP然后Assiciate。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为同一Amazon EC2 ubuntu实例同时关联公共IP和弹性IP? - How Can we Associate both public IP and Elastic IP for an same Amazon EC2 ubuntu instance? Amazon EC2实例和弹性IP地址 - Amazon EC2 instance and Elastic IP address 如果弹性ip与另一个正在运行的ec2实例相关联,是否可以在重启后重新关联弹性ip和ec2实例? - Is it possible to re-associate an elastic ip with an ec2 instance after reboot if the elastic ip is associated to another running ec2 instance? 使用弹性IP地址的Amazon Ec2实例访问 - Amazon Ec2 instance access using elastic ip address 将弹性IP地址分配给现有的/正在运行的Amazon EC2实例 - Allocating an Elastic IP address to an existing / running Amazon EC2 instance 如果我将弹性IP关联到运行中的EC2实例,是否会删除其当前的公共IP? - Will my running EC2 instance drop its current public IP if I associate an Elastic IP to it? 将现有的Elastic IP与CloudFormation脚本中的Ec2实例相关联? - Associate an existing Elastic IP with an Ec2 Instance from inside a CloudFormation script? 使用Node.js创建EC2实例时关联弹性IP - Associate Elastic IP while creating an EC2 Instance using Node.js 亚马逊EC2弹性IP重定向不起作用 - amazon ec2 elastic ip redirecting not wroking Amazon AWS Ec2 +弹性IP - Amazon AWS Ec2 + Elastic IP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM