Fortinet white logo
Fortinet white logo

CLI Reference

ping-options, ping6-options

ping-options, ping6-options

Set ICMP echo request (ping) options to control the way ping or ping6 tests the network connection between the FortiGate unit and another network device.

Syntax

Adaptive Ping
execute ping-options adaptive-ping  Adaptive ping <enable|disable>.
        {string}   <enable|disable>.

execute ping6-options adaptive-ping  Adaptive ping <enable|disable>.
        {string}   <enable|disable>.

Ping or Ping6 datagram size (default 56 bytes)
execute ping-options data-size  Integer value to specify datagram size in bytes.
        {integer}   Integer value [0,65507].

execute ping6-options data-size  Integer value to specify datagram size in bytes.
        {integer}   Integer value [0,65507].

Set the DF bit in the IP header
execute ping-options df-bit  Set DF bit in IP header <yes | no>.
        {string}   <yes | no>.

The interface through which to ping the destination
execute ping-options interface  Auto | <outgoing interface>.
        {string}   Auto | <outgoing interface>.

execute ping6-options interface  Auto | <outgoing interface>.
        {string}   Auto | <outgoing interface>.

Time interval

Between sending ping packets in seconds.

execute ping-options interval  Integer value to specify seconds between two pings.
        {integer}   Integer value > 0.

execute ping6-options interval  Integer value to specify seconds to wait between two pings.
        {integer}   Integer value > 0.

Pattern (in hex format)

Used to fill in the optional data buffer at the end of the ICMP packet. This allows you to send out packets of different sizes for testing the effect of packet size on the connection.

execute ping-options pattern  Hex format of pattern, e.g. 00ffaabb.
        {string}   Hex format of pattern, e.g. 00ffaabb.

execute ping6-options pattern  Hex format of pattern, e.g. 00ffaabb.
        {string}   Hex format of pattern, e.g. 00ffaabb.

Repeat count

The number of times to repeat the ping, default is 5.

execute ping-options repeat-count  Integer value to specify how many times to repeat PING.
        {integer}   Integer value [1, 2147483647]

execute ping6-options repeat-count  Integer value to specify how many times to repeat PING.
        {string}   Integer value > 0.

Reset

Reset ping or ping6 settings to defaults.

execute ping-options reset  Reset settings.

execute ping6-options reset  Reset settings.

Source interface

The source interface from which to send the ping. Allows you to test connections to different network segments from the specified interface. auto (the default) selects the source address and interface based on the route destination IP address.

execute ping-options source  Auto | <source interface IP>.
        {xxx.xxx.xxx.xxx}   <source interface IP> | Auto

execute ping6-options source  Auto | <source interface IP>.
        {xxx.xxx.xxx.xxx}   <source interface IP> | Auto

Timeout

How long to wait (in seconds) before the ping times out (default is 2)

execute ping-options timeout  Integer value to specify timeout in seconds.
        {integer}   Integer value >= 0.

execute ping6-options timeout  Integer value to specify timeout in seconds.
        {integer}   Integer value >= 0.

ToS (Type of Service)

Set the ToS field in the packet header to provide an indication of the quality of service wanted.

execute ping-options tos  IP type-of-service option.
        {string}   
default			IP TOS defaults to 0
lowcost			IP TOS minimize cost
lowdelay		IP TOS minimize delay
reliability		IP TOS maximize reliability
throughput		IP TOS maximize throughput

execute ping6-options tos  IP type-of-service option.
        {string}   
default			IP TOS defaults to 0
lowcost			IP TOS minimize cost
lowdelay		IP TOS minimize delay
reliability		IP TOS maximize reliability
throughput		IP TOS maximize throughput

Time to live

Time to live is the number of hops the ping or ping6 packet should be allowed to make before being discarded or returned (default 64).

execute ping-options ttl  Integer value to specify time-to-live.
        {integer}   Integer value [1,255].

execute ping6-options ttl  Integer value to specify time-to-live.
        {integer}   Integer value [1,255]

Validate reply

Optionally validate reply data by setting validate-reply to yes (no by default).

execute ping-options validate-reply  Validate reply data <yes | no>.
        {string}   <yes | no>.

execute ping6-options validate-reply  Validate reply data <yes | no>.
        {string}   <yes | no>.

View settings

View current ping or ping6 settings.

execute ping-options view-settings  View the current settings for PING option.

execute ping6-options view-settings  View the current settings for PING option.

execute ping-options data-size <bytes>

execute ping-options df-bit {yes | no}

execute ping-options pattern <2-byte_hex>

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

Example

Use the following command to increase the number of pings sent.

execute ping-options repeat-count 10

Use the following command to send all pings from the FortiGate interface with IP address 192.168.10.23.

execute ping-options source 192.168.10.23

ping-options, ping6-options

ping-options, ping6-options

Set ICMP echo request (ping) options to control the way ping or ping6 tests the network connection between the FortiGate unit and another network device.

Syntax

Adaptive Ping
execute ping-options adaptive-ping  Adaptive ping <enable|disable>.
        {string}   <enable|disable>.

execute ping6-options adaptive-ping  Adaptive ping <enable|disable>.
        {string}   <enable|disable>.

Ping or Ping6 datagram size (default 56 bytes)
execute ping-options data-size  Integer value to specify datagram size in bytes.
        {integer}   Integer value [0,65507].

execute ping6-options data-size  Integer value to specify datagram size in bytes.
        {integer}   Integer value [0,65507].

Set the DF bit in the IP header
execute ping-options df-bit  Set DF bit in IP header <yes | no>.
        {string}   <yes | no>.

The interface through which to ping the destination
execute ping-options interface  Auto | <outgoing interface>.
        {string}   Auto | <outgoing interface>.

execute ping6-options interface  Auto | <outgoing interface>.
        {string}   Auto | <outgoing interface>.

Time interval

Between sending ping packets in seconds.

execute ping-options interval  Integer value to specify seconds between two pings.
        {integer}   Integer value > 0.

execute ping6-options interval  Integer value to specify seconds to wait between two pings.
        {integer}   Integer value > 0.

Pattern (in hex format)

Used to fill in the optional data buffer at the end of the ICMP packet. This allows you to send out packets of different sizes for testing the effect of packet size on the connection.

execute ping-options pattern  Hex format of pattern, e.g. 00ffaabb.
        {string}   Hex format of pattern, e.g. 00ffaabb.

execute ping6-options pattern  Hex format of pattern, e.g. 00ffaabb.
        {string}   Hex format of pattern, e.g. 00ffaabb.

Repeat count

The number of times to repeat the ping, default is 5.

execute ping-options repeat-count  Integer value to specify how many times to repeat PING.
        {integer}   Integer value [1, 2147483647]

execute ping6-options repeat-count  Integer value to specify how many times to repeat PING.
        {string}   Integer value > 0.

Reset

Reset ping or ping6 settings to defaults.

execute ping-options reset  Reset settings.

execute ping6-options reset  Reset settings.

Source interface

The source interface from which to send the ping. Allows you to test connections to different network segments from the specified interface. auto (the default) selects the source address and interface based on the route destination IP address.

execute ping-options source  Auto | <source interface IP>.
        {xxx.xxx.xxx.xxx}   <source interface IP> | Auto

execute ping6-options source  Auto | <source interface IP>.
        {xxx.xxx.xxx.xxx}   <source interface IP> | Auto

Timeout

How long to wait (in seconds) before the ping times out (default is 2)

execute ping-options timeout  Integer value to specify timeout in seconds.
        {integer}   Integer value >= 0.

execute ping6-options timeout  Integer value to specify timeout in seconds.
        {integer}   Integer value >= 0.

ToS (Type of Service)

Set the ToS field in the packet header to provide an indication of the quality of service wanted.

execute ping-options tos  IP type-of-service option.
        {string}   
default			IP TOS defaults to 0
lowcost			IP TOS minimize cost
lowdelay		IP TOS minimize delay
reliability		IP TOS maximize reliability
throughput		IP TOS maximize throughput

execute ping6-options tos  IP type-of-service option.
        {string}   
default			IP TOS defaults to 0
lowcost			IP TOS minimize cost
lowdelay		IP TOS minimize delay
reliability		IP TOS maximize reliability
throughput		IP TOS maximize throughput

Time to live

Time to live is the number of hops the ping or ping6 packet should be allowed to make before being discarded or returned (default 64).

execute ping-options ttl  Integer value to specify time-to-live.
        {integer}   Integer value [1,255].

execute ping6-options ttl  Integer value to specify time-to-live.
        {integer}   Integer value [1,255]

Validate reply

Optionally validate reply data by setting validate-reply to yes (no by default).

execute ping-options validate-reply  Validate reply data <yes | no>.
        {string}   <yes | no>.

execute ping6-options validate-reply  Validate reply data <yes | no>.
        {string}   <yes | no>.

View settings

View current ping or ping6 settings.

execute ping-options view-settings  View the current settings for PING option.

execute ping6-options view-settings  View the current settings for PING option.

execute ping-options data-size <bytes>

execute ping-options df-bit {yes | no}

execute ping-options pattern <2-byte_hex>

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

Example

Use the following command to increase the number of pings sent.

execute ping-options repeat-count 10

Use the following command to send all pings from the FortiGate interface with IP address 192.168.10.23.

execute ping-options source 192.168.10.23