Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

ping

Send an ICMP echo request (ping) to test the network connection between the FortiGate unit and another network device.

Syntax

execute ping  PING command.
        {ip}   IP address.

You can enter an IP address, or a domain name. The FortiGate must be able to resolve the domain name.

Example

This example shows how to ping a host with the IP address 172.20.120.16.

#execute ping 172.20.120.16

 

PING 172.20.120.16 (172.20.120.16): 56 data bytes

64 bytes from 172.20.120.16: icmp_seq=0 ttl=128 time=0.5 ms

64 bytes from 172.20.120.16: icmp_seq=1 ttl=128 time=0.2 ms

64 bytes from 172.20.120.16: icmp_seq=2 ttl=128 time=0.2 ms

64 bytes from 172.20.120.16: icmp_seq=3 ttl=128 time=0.2 ms

64 bytes from 172.20.120.16: icmp_seq=4 ttl=128 time=0.2 ms

--- 172.20.120.16 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 0.2/0.2/0.5 ms

ping

Send an ICMP echo request (ping) to test the network connection between the FortiGate unit and another network device.

Syntax

execute ping  PING command.
        {ip}   IP address.

You can enter an IP address, or a domain name. The FortiGate must be able to resolve the domain name.

Example

This example shows how to ping a host with the IP address 172.20.120.16.

#execute ping 172.20.120.16

 

PING 172.20.120.16 (172.20.120.16): 56 data bytes

64 bytes from 172.20.120.16: icmp_seq=0 ttl=128 time=0.5 ms

64 bytes from 172.20.120.16: icmp_seq=1 ttl=128 time=0.2 ms

64 bytes from 172.20.120.16: icmp_seq=2 ttl=128 time=0.2 ms

64 bytes from 172.20.120.16: icmp_seq=3 ttl=128 time=0.2 ms

64 bytes from 172.20.120.16: icmp_seq=4 ttl=128 time=0.2 ms

--- 172.20.120.16 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 0.2/0.2/0.5 ms