在AWS中重新分配专用IP地址? [英] Re-assign private IP address in AWS?

查看:676
本文介绍了在AWS中重新分配专用IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在弹性IP后面运行的AWS实例。该实例在我的VPC中也有一个专用IP地址。我将重新分配弹性IP到另一个实例,并尝试重新分配私有IP。请注意,该实例只有一个私有IP(没有辅助IP)。

I have an AWS instance running behind an elastic IP. The instance also has a private IP address in my VPC. I will be re-assigning the elastic IP to another instance and am trying to re-assign the private IP as well. Note that the instance only has one private IP (no secondary).

这可能吗?

推荐答案

除非这是辅助私有IP地址(您说不是),那么不可以。 t:

Unless this is a 'secondary private ip address' (and you said it was not), then no, you can't:


您可以将其他私有IP地址(称为辅助
私有IP地址)分配给在VPC。
主要私有IP地址不同,您可以将辅助私有IP
地址从一个网络接口重新分配给另一个
。有关主要和次要IP地址的更多信息
,请参阅Amazon EC2 Linux实例用户指南
中的多个IP地址。

You can assign additional private IP addresses, known as secondary private IP addresses, to instances that are running in a VPC. Unlike a primary private IP address, you can reassign a secondary private IP address from one network interface to another. For more information about primary and secondary IP addresses, see Multiple IP Addresses in the Amazon EC2 User Guide for Linux Instances.

http://docs.aws.amazon.com/AmazonVPC /latest/UserGuide/vpc-ip-addressing.html

这篇关于在AWS中重新分配专用IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆