How to reset / renew / edit GCP ephemeral external IP?

Solution 1:

After some tinkering I found that if you change your external IP to "standard" tier from "premium" you get different IP.

None of the Edd's methods worked with premium tier

Solution 2:

The first and easy way to do it is stop and restart your VM.

"Ephemeral external IP addresses remain attached to a VM instance only until the VM is stopped and restarted or the instance is terminated. If an instance is stopped, any ephemeral external IP addresses that were assigned to the instance are released back into the general Compute Engine pool and become available for use by other projects. When a stopped instance is started again, a new ephemeral external IP address is assigned to the instance."

The second way is deleting the current IP assigned and assign a new one into the VM configuration by doing this:

  1. Select your VM instance.
  2. Click 'Edit'.
  3. In VM instance details, go to Network interfaces and click 'Edit'.
  4. In External IP select 'None'.
  5. Click 'Done'.
  6. Save your changes.
  7. Once the changes are saved, 'Edit' your VM settings again.
  8. Now in Network interfaces select 'Ephemeral'
  9. Click 'Done'.
  10. Save your changes.

You can now validate the new External IP assigned in the VM instances Dashboard.

Third option, depending on your needs, you can reserve a static external IP address, which assigns the address to your project indefinitely until you explicitly release it.