5

I realized that the external IP of my VM instance changed to an IP that I don't know. Also, next to the external IP it says "(ephemeral)".

What could cause this to change? How do I prevent that in the future?

1
  • 2
    As far as fixing the immediate problem, change the DNS entry? You probably want to set the TTL to something low while you're at it so you can recover easily the next time (until you fix the underlying issue). Nov 29, 2017 at 17:41

2 Answers 2

6

Instances are automatically given an IP address, which is subject to change if the server is restarted, crashes, etc. If you want it to have a fixed IP, you need to provision one.

Chances are you've lost the original IP - it'll be back into the pool of millions of IP addresses for someone else's instance to use. You'll need to change the IP in your DNS records to the new static one.

0
2

In addition to ceejayoz's answer, it should be noted that you can promote an ephemeral IP to a static IP without it changing.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .