Public IP been changed after I reboot my EC2

0

Hi there,
I got a problem,that my public IP changed after I reboot my EC2 while I did nothing to network interface.
I got everything configured before this.Now,I have to do everything again.
Plz help me.
Thanks.

Edited by: bigusual on Sep 5, 2017 11:57 AM

asked 7 years ago2555 views
4 Answers
0

Surely this is the default behaviour of EC2 unless you allocate (and pay for) a fixed public IP address, isn't it? There is lots of documentation around on how to use a DDNS service to overcome this. As I understand it, each running EC2 instance gets a public IP address allocated when it is booted up and this remains allocated until the instance is shut down at which point it may get harvested. If you intend to keep the instance running 24/7, you can get a public IP address permanently allocated to it, but you will pay a small standing charge for that address if the instance that it is allocated to is not running.

Maby
answered 7 years ago
0

Maby is correct. Amazon allocates a public IP address until the instances has been shut down and brought back up.

You can look into getting an Elastic IP and associating it with whatever instance you'd like if maintaining the IP address is an issue. Either that or keeping the machine on.

One thing to note: Elastic IP's are free under the trial as long as the machine is on.

answered 7 years ago
0

Depending on your application, DDNS may be an acceptable solution. I'm running an EC2 instance intermittently during development and testing and didn't want to have to reconfigure each client everytime I start the VM - I registered with one of the free DDNS services and configured the VM to refresh the records each time it start - apart from a lag of a few seconds on each reboot, it works well.
Given that this must be a fairly common requirement, I'm surprised that Amazon have not included DDNS functionality in Route53...

Edited by: Maby on Sep 11, 2017 11:07 PM

Maby
answered 7 years ago
0

Thanks for kindly help.

answered 5 years 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