Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Ping returned 350 packets transmitted

When I pinged my instance via Cloudshell, I got 350 packets transmitted. In the lab video, only 3 were transmitted. What determines how many times it will ping your instance?

1 Answers

Generally, ping command behaves differently between Linux and Windows. On a Windows host, it will only send 4 ICMP packets by default for each execution, unless you specify an amount. On a Linux host however, ping will continuously send ICMP packets until you cancel the command, unless you specify an amount.

If you do a ping from Cloud Shell (it’s a Linux host), add -c follow by the number of packet you want ping to send. For example:

ping -c 10

will send 10 packets to and then stop.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?