Will I lose my static ip on restarting lightsail ubuntu instance

0

There is conflicting information: some docs say your static ip will only be "saved" if you started the instance on EC2 to begin with. some say you will retain the static ip on lightsail even if you reboot it.

  1. will static ip for lightsail -ubuntu be saved for reboot ?

  2. will static ip for lightsail -ubuntu be saved for start and stop ?

how can i reserve the allocated ip through both 1 and 2 above? TIA

已提問 2 年前檢視次數 456 次
1 個回答
0

Hello,

Thank you for your questions,

Applies to Lightsail:

We can answer 1 and 2 by quoting the official Lightsail documentation, "The default dynamic public IP address attached to your Amazon Lightsail instance changes every time you stop and restart the instance. Create a static IP address and attach it to your instance to keep the public IP address from changing"

You can follow steps in docs [1] to create a static IP that does not change.

Applies to EC2:

For EC2 the default public IP will change on stop/start but retained during reboots, to preserve the IP during stop/starts you can attached an Elastic IP to the instance [2]

Hope this helps, let me know if there is anything further.

[1] https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-create-static-ip

[2] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

profile pictureAWS
支援工程師
Lundi
已回答 2 年前

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

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

回答問題指南