添加弹性IP

我需要我的AWS EC2实例的帮助。 我有一个公共知识产权,它运作良好。 但是现在我需要第二个公共IP,为此我激活了弹性IP,并通过AWS仪表板将其分配给实例。 我的服务器是Ubuntu 16.04。 但是我没有在命令行上看到我的实例中有新的IP。 我需要做什么?

谢谢!

请查看此AWS文档以pipe理多个IP。

相关部分是,你需要分配一个第二私有IP到你的istance,然后你可以添加第二个弹性ip。

将第二个私有IPv4地址分配给networking接口

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/. In the navigation pane, choose Network Interfaces, and then select the network interface attached to the instance. Choose Actions, Manage IP Addresses. Under IPv4 Addresses, choose Assign new IP. Enter a specific IPv4 address that's within the subnet range for the instance, or leave the field blank to let Amazon select an IP 

地址给你。

 (Optional) Choose Allow reassignment to allow the secondary private IP address to be reassigned if it is already assigned to 

另一个networking接口。

 Choose Yes, Update. 

然后

将弹性IP地址与EC2-VPC中的辅助私有IPv4地址相关联

 Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/. In the navigation pane, choose Elastic IPs. Choose Actions, and then select Associate address. For Network interface, select the network interface, and then select the secondary IP address from the Private IP list. Choose Associate. 

我试图避免在单个服务器上需要更多的公共IP,看起来像AWS认为一般不需要“弹性ip”,因为除非您要求更多,否则默认情况下只有5个。