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?

asked a year ago277 views
1 Answer
1
Accepted Answer

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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions