Our VM instances keep crashing unexpectedly. When they restart, they're getting new IP addresses instead of the static ones we reserved. This messes up our system, making it hard for services to communicate properly. We've tried setting static IPs in the Google Cloud Console, but it's not working consistently.
Hello @rashila,
Welcome to Google Cloud Community!
You might want to:
Check your configuration in the Google Cloud Console. Make sure you've assigned the static IP to the network interface card (NIC) of your VM instance, not just reserved the IP address.
Ensure you haven't accidentally chosen an ephemeral IP address during VM creation. Ephemeral IPs are temporary and change upon restart.
Check if your VM instances are in the "automatic" network tier, they might be assigned new IPs upon restart. For static IPs, you need the "premium" network tier.
See this document for additional info