Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

PING COMMAND Gcloud vs SSH

What I have noticed is that if I have to check whether my instances can communicate with each other i usually need to SSH into the instance and run the PING command. But is there a way I cloud do it directly do it using the Gcloud terminal rather than SSHing into the instances?

Solved Solved
1 4 6,084
1 ACCEPTED SOLUTION

I think @adarshraghav 's question is about checking network reachability among a given set of VMs (e.g., whether VM-A can send traffic to VM-B) without actually connecting to any of the VMs.

@adarshraghav - You might find the Network Connectivity Tests feature useful: https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/how-to/running-connecti....

View solution in original post