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

Ping Ubutnu <-> Windows

I have a few ubuntu hosts and a windows host on the 10.128.0.0 / 20 network. The ubuntu hosts can communitcate with each other but I am unable to ping from windows host to any of the ubuntu hosts. What could be wrong?

Solved Solved
0 7 443
1 ACCEPTED SOLUTION

Both networks are in the same network address so there is no way to create a firewall rule. It appears that there is no solution for this.

View solution in original post

7 REPLIES 7

In order to provide you with a good approach, can you please share with us what GCP product you are using and what is the process you are following ?

I am using Cloud engine. I have ubutnu hosts on "us-central1-c" and a Windows server on "us-central1-a". They both have the same network id 10.128.0.0 but I am unable to ping between them. I have other ubuntu hosts on us-central1-a, us-central1-b, us-west1-c etc. and they all can communicate with each other but none can communicate wih the Windows server.

Reviewing your question, it seems to be an issue with a firewall rule. You can create a firewall rule by running:

$ gcloud compute firewall-rules create allow-ping --dire

$ gcloud compute firewall-rules create allow-ping --direction=INGRESS --network=default --action=ALLOW --rules=icmp --source-ranges=0.0.0.0/0

ction=INGRESS --network=default --action=ALLOW --rules=icmp --source-ranges=0.0.0.0/0

This will allow you to ping all of your instances on the default network. Firewall rules can also be created in the Cloud Console --> Compute Engine --> Networks UI.

You can also create rules which only apply to groups of instances, etc. Details in the documentation for Networks and Firewalls.

Here is also a documentation for troubleshooting that might help you.

Additionally, to have a quick overview of enabling VM Communication, I suggest you review this YouTube video.

Both Ubuntu and Windows machines are on the same network Ubuntu (10.128.0.2) and Windows (10.128.0.3)

Are you still experiencing the same issue?
Searching for more information on the inconvenience you have, here is a link to identify and fix ICMP issues. This documentation provides a tutorial that can help you to test if you can ping from Ubuntu to Windows.

Yes, 

Both networks are in the same network address so there is no way to create a firewall rule. It appears that there is no solution for this.