首页 > 解决方案 > AWS EC2 add more Public IP

问题描述

My EC2 has 1 Elastic IP but I need to add second elastic IP.

I try to create a new Network interface then add second elastic IP to it, after reboot I receive a new interface with private IP but I can't SSH to the server by new Public IP.

标签: amazon-ec2ip

解决方案


您可能需要将第二个私有 IP 分配给新的网络接口。

试试这个并用它的新私有 IP 更改 secondary_private_ip。

sudo ip addr secondary_private_ip/20 dev eth0

推荐阅读