Re-assign private IP address in AWS?

前端 未结 3 1556
鱼传尺愫
鱼传尺愫 2021-02-12 22:09

I have an AWS instance running behind an elastic IP. The instance also has a private IP address in my VPC. I will be re-assigning the elastic IP to another instance and am tryin

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-12 22:52

    assign the same/old instance private ip to a new instance upon below conditions.

    1. creating a new instance on the same VPC as of Old instance
    2. terminate the old instance after taking AMI backup
    3. and you cannot assign private IP of old instance to new instance primary private IP after launching the instance.

    Follow the below steps to Re-assign an old instance private IP to new instance primary private IP
    1. Open EC2 dashboard.
    2. Click on Launch Instance.
    3. Then choose My AMIs on the left side tab and select your AMI.
    4. Select the desired instance type.
    5. Click on "Next :Configure Instance details".
    6. Then select/provide the VPC ID and choose the subnet in network and subnet field respectively.
    7. Select "disable" option in " Auto-assign Public IP" field of "Configure Instance" (which is third step of launching an instance)
    8. In the same page, scroll down and click on Network Interfaces.
    9. Then paste the required private IP in Primary IP field.
    10. Add storage, configure Security group if required ( if you wish)
    11. Click on Launch.

提交回复
热议问题