Created on
05-06-2009
01:13 AM
Edited on
05-04-2025
09:51 PM
By
Anthony_E
Description
This article describes the FortiGate ping options in IPv4 and IPv6 that can be used for various troubleshooting purposes. Two particularly useful options are repeat-count and source.
Scope
FortiGate.
Solution
From the CLI, type the following command to see all IPv4 ping options:
execute ping-options ?
execute ping-options adaptive-ping <enable|disable>
execute ping-options data-size <bytes>
execute ping-options df-bit {yes | no}
execute ping-options pattern <2-byte_hex>
execute ping-options interface <auto | interface_name>
execute ping-options interval <seconds>
execute ping-options repeat-count <repeats>
execute ping-options source {auto | <source-intf_ip>}
execute ping-options timeout <seconds>
execute ping-options tos <service_type>
execute ping-options ttl <hops>
execute ping-options validate-reply {yes | no}
execute ping-options view-settings
execute ping-options use-sdwan <yes | no>
execute ping-options reset
CLI example:
Keyword Description Default:
Note:
Ping can also be used to verify FortiGate's ability to resolve domain names. To test name resolution, ping with the domain name as the destination. If PING output shows an IP address, name resolution was successful:
execute ping google.com
PING google.com (142.250.179.78): 56 data bytes
When IPv6 is enabled in FortiGate feature visibility settings and an IPv6 address is assigned to an interface, IPv6 ping can be performed through the command below:
execute ping6 y:y:y:y:y:y:y:y
From CLI, the ping options available for IPv6 are similar to IPv4 and are the following:
execute ping6-options ?
execute ping6-options adaptive-ping <enable|disable>
execute ping6-options data-size <bytes>
execute ping6-options interface <auto | <outgoing_interface>
execute ping6-options interval <seconds>
execute ping6-options pattern <2-byte_hex>
execute ping6-options repeat-count <repeats>
execute ping6-options reset
execute ping6-options source6 <auto | IPv6_source_interface>
execute ping6-options timeout <seconds>
execute ping6-options tos <IPv6_type-of-service_value>
execute ping6-options ttl <time-to-live>
execute ping6-options use-sdwan <yes | no>
execute ping6-options validate-reply <yes | no>
execute ping6-options view-settings
The use and meaning of each IPv6 option are similar to its IPv4 counterpart. Note that in IPv6, option source is called source6, and option df-bit is not available.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.