Fortinet 647 FortiWeb 5.0 Patch 6 Administration Guide
2. Enter the following command:
ping <options_str> <destination_ipv4>
where:
<destination_ipv4> is the IP address of the device that you want to verify that the
computer can connect to, such as 192.168.1.1.
<options_str> are zero or more options, such as:
-W y — Wait y seconds for ECHO_RESPONSE.
-c x — Where x is the number of packets to send.
If the command is not found, you can either enter the full path to the executable or add its
path to your shell environment variables. The path to the ping executable varies by
distribution, but may be /bin/ping.
If you do not supply a packet count, output will continue until you terminate the command
with Control-C. For more information on options, enter man ping.
For example, you might enter:
ping -c 5 -W 2 192.168.1.1
If the computer can reach the destination via ICMP, output similar to the following appears:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=253 time=6.85 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=253 time=7.64 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=253 time=8.73 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=253 time=11.0 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=253 time=9.72 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4016ms
rtt min/avg/max/mdev = 6.854/8.804/11.072/1.495 ms
If the computer cannot reach the destination via ICMP, if you specified a wait and packet
count rather than having the command wait for your Control-C, output similar to the
following appears:
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
--- 10.0.0.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 5999ms
“100% packet loss” indicates that the host is not reachable.
Otherwise, if you terminate by pressing Control-C (^C), output similar to the following
appears:
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 172.20.120.2 icmp_seq=31 Destination Host Unreachable
From 172.20.120.2 icmp_seq=30 Destination Host Unreachable
From 172.20.120.2 icmp_seq=29 Destination Host Unreachable
^C
--- 10.0.0.1 ping statistics ---
41 packets transmitted, 0 received, +9 errors, 100% packet loss, time
40108ms
pipe 3
“100% packet loss” and “Destination Host Unreachable” indicates that
the host is not reachable.