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

질문됨 7년 전2770회 조회
4개 답변
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
답변함 7년 전
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.

답변함 7년 전
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
답변함 7년 전
0

Thanks for kindly help.

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠