amazon-ec2 - 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.
解决方案
您可能需要将第二个私有 IP 分配给新的网络接口。
试试这个并用它的新私有 IP 更改 secondary_private_ip。
sudo ip addr secondary_private_ip/20 dev eth0
推荐阅读
- jquery - ajax返回404但显示json?
- javascript - 用备用图片替换损坏的 img
- python - Scipy rv_continuous 错误地从分布中生成样本
- php - 有没有办法限制供应商的包版本要求
- python - 为什么 (3.3==np.asarray([3.3])) 等于 [True] 而不是 False?
- amazon-web-services - 如何在 AWS CodeBuild cloudformation 模板中设置分支过滤器选项?
- mysql - mysql / sql:如何删除除每个用户的最后 N 个行之外的所有行?
- python - 遗漏一个不明确的元素
- java - 如何验证 spring-boot Web 服务器是否正在运行
- android - 未经 WRITE_SETTINGS 明确许可设置自定义铃声