ping
Focus
Focus

ping

Table of Contents

ping

Use the ping command to test internet control message protocol (ICMP) reachability of a host and to troubleshoot network connectivity issues. It displays the network connectivity response and the time it takes to receive the response.

Command

ping interface host (args =" ")

Options

interfaceEnter the interface from which to send packets.
hostEnter the destination IP address or hostname.
args= "-c number"Enter the number of pings to be displayed.
args= "-s number"Enter the packet size. The default size is 56.
args="-wnumber"Enter the number of seconds to wait to receive the first response after all the -c packets are sent. The default value is 10 seconds.
args="-q"Quiet mode displays only the summary lines at the start and finish.

Command Notes

RoleSuper, Read Only
Related Commands
Introduced inRelease 4.4.1

Example

Example of ping which controls the count (-c) and the ping packet size (-s) ping controller1 8.8.8.8 args="-c 3 -s 1400" PING 8.8.8.8 (8.8.8.8): 1400 data bytes 1408 bytes from 8.8.8.8: seq=0 ttl=59 time=50.710 ms 1408 bytes from 8.8.8.8: seq=1 ttl=59 time=50.590 ms 1408 bytes from 8.8.8.8: seq=2 ttl=59 time=50.568 ms