Sends Internet Control Message Protocol (ICMP) echo request packets to a specified hostname or IP address to verify that the destination is reachable over the network.
Syntax
ping [-aAbBdDfhLnOqrRUvV] [-c <count>] [-i <interval>] [-I <interface>] [-m <mark>] [-M <pmtudisc_option>] [-l <preload>] [-p <pattern>] [-Q <tos>] [-s <packetsize>] [-S <sndbuf>] [-t <ttl>] [-T <timestamp_option>] [-w <deadline>] [-W <timeout>] [hop1 ...] <destination>
Parameters
-a
Issues an audible ping.
-A
Adjusts the packet interval so only one unanswered probe is sent (adaptive ping).
-b
Allows pinging of a broadcast address.
-c count
Number of pings to send. By default, pings are sent continuously until you press Ctrl+C.
-d
Sets the socket debug option.
-f
Sets the interval between pings to zero (flood option) if the -i option is not used. Displays a period for each echo request, and a backspace for each reply, to indicate how many packets are being dropped.
-i interval
Number of seconds between pings (default is 1, or 0 if the -f option is used).
-I interface
IP address or interface name used as the source address of the packets. Required to ping IPv6 link-local address.
-L
Suppresses the loopback of multicast packets. Applies only if the ping destination is a multicast address.
-Mhint
Specifies the path MTU discovery option:
do—Sets the do-not-fragment (DF) flag.
want—Sets the DF flag, but allows local fragmenting of large packets.
dont—Disables the DF flag (default).
-n
Numeric address output only (no lookup for hostnames).
-p pattern
Specifies the data used to fill each ping packet (up to 16 bytes). For example, -p ff fills the packet with 1s. Used to diagnose data-related network problems.
-q
Displays only a summary line at startup and completion (quiet mode).
-Q tos
Type of Service value of the ping packets (0 to 255), such as an IP precedence value (0 to 7) or DSCP value (0 to 63). Default is 0.
-r
Pings a local host connected directly to the specified interface (-I option required).
-R
Records and displays up to nine hops in the packet route (IPv4 only). Many hosts ignore this option.
-s packetsize
Number of data bytes per packet (default is 5).
-S sndbuf
Number of packets allowed in the send buffer (default is 1).
-t ttl
Number of routers the packets can traverse before being discarded.
-T option
Specifies the time stamp option used to calculate roundtrip times:
tsonly—Sets just the time stamp (default).
tsandaddr—Sets the time stamp and addresses.
tsprespec host1 [host2] [host3] [host4]—Sets the time stamp and specific router addresses.
-U
Displays user-to-user latency, rather than network roundtrip time.
-v
Verbose output.
-V
Displays ping version and exits.
-w deadline
Maximum number of seconds before ping exits.
hop1 hop2...
IP address of each router in the path used to route the pings, specified in sequence (multiple addresses must be separated by spaces).
destination
Destination IP address or hostname.
Example
The following example sends three echo requests to the specified address.
hostname > ping -c 3 10.3.6.17 PING 10.3.6.17 (10.3.6.17) 56(84) bytes of data. 64 bytes from 10.3.6.17: icmp_seq=1 ttl=123 time=1.87 ms 64 bytes from 10.3.6.17: icmp_seq=2 ttl=123 time=1.78 ms 64 bytes from 10.3.6.17: icmp_seq=3 ttl=123 time=1.79 ms --- 10.3.6.17 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.782/1.815/1.871/0.039 ms
Supported appliances
This command is supported on the following appliances running the specified releases or later:
Malware Analysis: Before release 6.4.
Central Management System: Before release 6.4
File Protect: Before release 6.4
File Protect: Before release 6.4.
Network Security: Before release 6.4.
Endpoint Security (HX): Release 2.5
Intelligent Virtual Execution - Server: Before release 6.4