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 年前檢視次數 3053 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南