ping
Focus
Focus
Prisma SD-WAN

ping

Table of Contents

ping

Use the ping command and for IPv6 use the ping6command 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.
To use ping, you need:
  • Target address: Know the IP address or hostname of what you want to ping. Hostnames require DNS to work (the interface must be up and have an IP address).
  • ICMP enabled: ICMP traffic should be allowed.

Command

ping interface host (args =" ")

Options

interfaceEnter the interface from which to send packets.
hostEnter the destination IP address or hostname.
args= "-c CNT number"Enter the number of CNT pings to be displayed.
args= "-s SIZE"Enter the packet size. The default size is 56.
args="-W SEC"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="-w SEC"Enter the number of seconds to wait to receive the first response before the -c packets are sent. The default value is infinite seconds.
args=”-i SECSEnter the number of seconds of interval between the packets.
args=”-I”Enter the source IP interface or IP address.
*uppercase I (Ice)
args=”=t TTLEnter the TTL to set the TTL on the packets.
args="-q"Quiet mode displays only the summary lines at the start and finish.
args="-p HEXBYTEEnter the hex byte number to display the payload pattern.

Command Notes

RoleSuper, Read Only
Related Commands
Introduced inRelease 4.4.1

Example

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
ping 3 8.8.8.8 args=“-s 1000” PING 8.8.8.8 (8.8.8.8): 1000 data bytes --- 8.8.8.8 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss exit status 1
ping 3 8.8.8.8 args=“-w 10" PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: seq=0 ttl=114 time=35.232 ms 64 bytes from 8.8.8.8: seq=1 ttl=114 time=35.339 ms 64 bytes from 8.8.8.8: seq=2 ttl=114 time=35.555 ms 64 bytes from 8.8.8.8: seq=3 ttl=114 time=35.036 ms 64 bytes from 8.8.8.8: seq=4 ttl=114 time=35.360 ms --- 8.8.8.8 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 35.036/35.304/35.555 ms ion toolkit# ping 3 8.8.8.8 args=“-w 1” PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: seq=0 ttl=114 time=35.085 ms --- 8.8.8.8 ping statistics --- 2 packets transmitted, 1 packets received, 50% packet loss round-trip min/avg/max = 35.085/35.085/35.085 ms exit status 1