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.

demandé il y a un an2869 vues
1 réponse
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
répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an
profile pictureAWS
EXPERT
Toni_S
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions