Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing or releasing a static IP on Google Compute Engine

I am trying to remove/delete a static IP address that I do not use any more and do not see a way to do this. The closest I could get from documentation is this page which says:

When an instance is stopped, you can still perform actions that can affect the stopped instance, such as:

  • [...]
  • Removing or setting a new static IP

P.S. Thanks for pointing me in the right direction. If anyone would like to take a quick glimpse on how to do this here is a short video on how and why it's a good practice to release the IP if not in use. Hope that helps.

like image 461
Naresh MG Avatar asked Jan 03 '16 16:01

Naresh MG


People also ask

How do I release a static IP address?

Go to "Start > Run" and type " cmd " (no quotes), then select "OK" Type " ipconfig /release " (no quotes) and press "Enter" Once the prompt returns, type " ipconfig /renew " (no quotes), then hit "Enter," Finally, type " exit " (without quotes) then press "Enter" to close the window.

Can you remove a static IP address?

On Windows 11, it's possible to remove a static IP address and switch to a dynamic network configuration in multiple ways, including using the Settings app, Control Panel, Command Prompt, and PowerShell.


2 Answers

Per the Google Cloud networking docs:

Release a static external IP address

gcloud compute addresses delete ADDRESS --project PROJECT --region REGION
like image 194
Misha Brukman Avatar answered Sep 18 '22 17:09

Misha Brukman


You can also do it via the Web interface. In left menu, go to "Networking", then "External IP Addresses".

You can manage your current projects IP's from there.

Link to Google group thread I found this info on

like image 44
mauricio777 Avatar answered Sep 20 '22 17:09

mauricio777