简体   繁体   English

将弹性IP地址分配给现有的/正在运行的Amazon EC2实例

[英]Allocating an Elastic IP address to an existing / running Amazon EC2 instance

Are we able to allocate an Elastic IP address to an existing / running Amazon EC2 instance? 我们是否能够为现有/正在运行的Amazon EC2实例分配弹性IP地址?

In most cases, we assign the Elastic IP address before configuring the server. 在大多数情况下,我们在配置服务器之前分配弹性IP地址。 However, we are trying to assign the Elastic IP address onto a fully configured server and create an AMI for different instances. 但是,我们尝试将弹性IP地址分配给完全配置的服务器,并为不同的实例创建AMI。

If we associate the new EIP onto an existing instance (created by AMI) will run the same config as the existing one? 如果我们将新的EIP关联到现有实例(由AMI创建),它将运行与现有实例相同的配置?

Elastic IPs can be allocated and associated to an EC2 instance at any time, while launching or after the launch. 弹性IP可以在启动时或启动后随时分配和关联到EC2实例。

An Elastic IP address is not actually the property of your instance, rather it's a property associated with your server's network card (Elastic Network Interface). 弹性IP地址实际上不是您的实例的属性,而是与服务器的网卡(弹性网络接口)关联的属性。

See: Elastic IP Addresses - Amazon Virtual Private Cloud 请参阅: 弹性IP地址-Amazon Virtual Private Cloud

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM