Use Existing Private IP

0

I want to create a new instance with the AMI created of the old instance and also want to retain the Private IP address of the old instance as well. Is this possible?. If yes, How can this be done?

preguntada hace un año290 visualizaciones
1 Respuesta
1
Respuesta aceptada

Greetings,

I understand that you currently trying to create a new instance from the AMI created of the old instance and also want to use the Private IP of the old instance.

Yes, you can Preserve the Private IP of the old instance and attach it to a new instance by following the steps below.

  1. Create an AMI of the old instance.

  2. In the Networking tab of the old Instance click on the eni-interface assigned to the instance.

  3. Select the ENI and Change the termination behavior of the Elastic Network Interface (ENI).

ENI ---> Actions ---> Change termination behavior ---> Uncheck “Enable” ---> Save

  1. Terminate the old instance

  2. Launch a new Instance from the created AMI.

Note: Select “Advanced Network Configuration” and add the network interface here, please make sure you are using the correct subnet.

  1. The New Instance will have the same Private IP as the old one.

Below are some additional documents for your reference.

References:

[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html

[2] https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/best-practices-for-configuring-network-interfaces.html

AWS
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas