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:
- Select your VM instance.
- Click 'Edit'.
- In VM instance details, go to Network interfaces and click 'Edit'.
- In External IP select 'None'.
- Click 'Done'.
- Save your changes.
- Once the changes are saved, 'Edit' your VM settings again.
- Now in Network interfaces select 'Ephemeral'
- Click 'Done'.
- 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.