Open DevCEDTeam opened 1 year ago
From the case description, I understand that “You want to maintain the static IP even if the instance is stopped and started again.” Please correct me if I misunderstood.
Upon inspecting your environment I can see that you are using a VM instance named “cpanel-on-almalinux-1-vm” in the “Mautic Project”.
And the IP address(10.168.0.2) in this VM instance is mentioned as Ephemeral Type.Which means once you restart the resource then the ephemeral external IP address will be changed.
So, to maintain the static IP even if the instance is stopped and started again. I suggest the below procedure.
Please be noted that if you are changing the machine-type in the VM as per the google recommendations, then generally the instance will stop and restart after the machine-type change is completed, So if your Instance external IP is ephemeral then the ephemeral IP address doesn't persist beyond the life of the resource.
Also in general, the ephemeral IP address is released if you stop or delete the resources, and once you restart the resource then the ephemeral external IP address will be changed.
Also I can inform you that the external IP’s can be static or ephemeral If a VM requires a fixed external IP address that does not change, you can obtain a static external IP address. You can reserve new external IP addresses or promote existing ephemeral external IP addresses.
To reserve a new static external IP address follow the below documentation [1]
To Promote the ephemeral external IP address to a static external IP address. Please follow the below document [2].
For more information regarding reserving the Static external IP address, please refer to below documentation [3].
Q) Under the "Network IP forwarding" option, unable to enable IP forwarding?
Ans:
In the Google Cloud console, go to the VM instances page. Go to VM instances. Click Create instance. In the Advanced options section, expand Networking, disks, security, management, sole-tenancy. Expand the Networking section. In the IP forwarding section, select the Enable checkbox.
I hope the information provided was helpful. If you have any other queries, feel free to reach out to me, I will be happy to assist you
Please let me know if you have any further questions or concerns. We can also have a GVC (Google Meet)session if required. I will be happy to assist you.
Looking forward to your response.
Thanks & Regards,
Penumetsa raju,
Google Cloud Platform Support, India.
[Timings: 1:00 pm - 10:00pm IST].
[3] https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address
GC Case 46472687: Preventing a change in the IP address of a Google Cloud VM instance during a restart involves using a combination of static IP addresses and