Any way to specify the private IP when creating an instance?

0

Is there anyway to have the private IP address fixed?

I understand that Lightsail instances obtain ip addresses via DHCP, but I am wondering if the private ip addresses of Lightsail instances to be created can be pre-specified. I can't delve into much but our set up requires the private ip address to be specified when creating a new instance from another existing instance by the API.

I have gone through the Lightsail documents including the APIs and the CLI commands but I can't locate any information on how to specify the private IP address to be associated with an instance when creating a Lightsail instance (either anew or from a snapshot).

I would be grateful for any pointers. Thanks in advance.

Edited by: swkbkk on Sep 23, 2020 4:29 AM

swkbkk
已提問 4 年前檢視次數 677 次
5 個答案
0

Not currently.

I wouldn't expect that to change any time soon.

It would be nice to have a private DHCP server for your own VCP.

profile picture
David G
已回答 4 年前
0

Thanks for a quick answer.

I guess the attractive pricing of the Lightsail comes with certain restrictions like this.

Unfortunately, inability to fix the private IP addresses of the Lightsail instances makes it unsuited for our use case.

I haven't explored AWS yet, but I am wondering if AWS provides the possibility of pre-specifying the private IP addresses when creating EC2 instances.

Cheers,

swkbkk
已回答 4 年前
0

I’ve been using lightsail for a number of years and have never seen the internal ip on any of my instances change after a reboot.

profile picture
David G
已回答 4 年前
0

Thanks for sharing your valuable experience, David. That would resolve some of our concerns for the Lightsail instances that are kept running with occasional reboots and don't get deleted.

However, we still have a requirement for on-demand creation of Lightsail instances with pre-defined private IP addresses and it seems it's not possible to do so on Lightsail.

Cheers,

swkbkk
已回答 4 年前
0

Yeah, it sounds like Lightsail is a bit too basic for your requirements.

profile picture
David G
已回答 4 年前

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

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

回答問題指南