1

Today change the size of my VM, memory and processor. When doing this I did not mark the previous external IP as static. So the IP change and I want to go back to the previous one.

I have tried from the gcloud console but it tells me that the IP I want to assign was not found in the "us-central1" region.

These were the steps I took after what happened in windows:

gcloud compute instances delete-access-config [SERVER_INSTANCE] --access-config-name [CONFIG_NAME]

then

gcloud compute instances add-access-config [SERVER_INSTANCE] --access-config-name [CONFIG_NAME] --address [OLD_IP]

It is very important to recover that IP(OLD_IP)

From already thank you very much for the help

2
  • I have tried with all the regions that are listed, but in all it gives me the same problem Apr 2, 2017 at 14:21
  • if i run gcloud compute addresses list the output is Listed 0 items. Apr 2, 2017 at 14:31

1 Answer 1

3

As explained in the Google groups post, an ephemeral IP is released when you delete the resource that is using it. You can promote or reserve an static IP as explained on this link Static external IP addresses.

Note that you can't recover an ephemeral IP.

2
  • 1
    You can also refer to this other link link to find our how to promote an ephemeral IP.
    – Marilu
    Apr 4, 2017 at 16:24
  • 1
    Thank you very much, this happens when the people does not read the documentation correctly before any changes. Apr 4, 2017 at 20:41

You must log in to answer this question.

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