Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gcloud instance can't ping another one

I have 2 instances running on Compute engine, although the documentation says that I'm able to ping and establish a communication between these VMs I can't. I've tried the ping with VM name and ipv4 address. I also tried to configure new work-group for both VMs and nothing.

Here's the link: https://cloud.google.com/compute/docs/vm-ip-addresses

If you are communicating between instances in the same network, you can send packets to an instance using the instance name, and the network automatically resolves the name to the internal IP address of the instance.

My VMs configuration:

Both are in the same network instances Ipconfig from web01 Ipconfig from sql01

I even turn off the firewalls

firewall off

But no connection between at all.

web not pinging sql

Anyone passed for the same? someone knows what is going on? How do I solve this issue?

like image 269
Y Melo Avatar asked Sep 13 '25 04:09

Y Melo


1 Answers

This happens to us from time to time - suddenly our 2 instances cannot reach each other through API or even ping. Even though we haven't changed any firewall rules or anything. I guess it's some GCloud glitch.

Nothing we have tried works, except for restarting the instances, then everything works again. So, if anyone has the same, and nothing seems to help the issue, I suggest, as a last resort, to reboot the instances.

like image 120
Vojta Hejda Avatar answered Sep 15 '25 17:09

Vojta Hejda