0

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

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

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.