AWS EC2 Instance Stop and Start IP Address Changed

0

One of my EC2 Instance Stop and Start but after start instance ip address changed by which all urls of website stopped. My Data loggers using old ip address. Is there any solutions for getting old ip address again or any way to change this ip address to old one.

已提问 1 年前2871 查看次数
1 回答
3

This is expected behavior in EC2. Public IPs are released when an instance is stopped and a new one is assigned when you start it again. The IP is assigned at random from a pool and you can't specify the public IP you want. Because of this, unfortunately it's not possible to reuse the same public IP you had before. If you want to keep the same IP, assign an Elastic IP to your instance.

The private IP of the instance on the other hand will stay the same until you terminate the instance. You can also assign a private secondary IP address to your instance, which you can reuse but limited to within the CIDR block of your VPC.

Chamal
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前
profile pictureAWS
专家
Toni_S
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则