Fortinet white logo
Fortinet white logo

CLI Reference

execute ping-options

execute ping-options

Use this command to set ICMP echo request (ping) options to control the way ping tests the network connection between the FortiProxy unit and another network device.

Enable or disable adaptive ping

execute ping-options adaptive-ping {enable | disable>

Set the ping datagram size in bytes (default is 56 bytes)

execute ping-options data-size <integer> Integer value [0,65507]

Set the DF bit in the IP header

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

Set the interface through which to ping the destination

execute ping-options interface {Auto | <outgoing interface>}

Set the time interval

Between sending ping packets in seconds.

execute ping-options interval Integer value to specify seconds between two pings.

<integer> Integer value > 0

Set the 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, for example, 00ffaabb

<string> Hex format of pattern, for example, 00ffaabb

Set the repeat count

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

execute ping-options repeat-count <string> Integer value > 0

Reset

Reset ping settings to the defaults.

execute ping-options reset

Set the source interface

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

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

Set the timeout

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

execute ping-options timeout <integer> Integer value >= 0

Set the type of service (ToS)

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

Set the time to live

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

execute ping-options ttl <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 {yes | no}

View settings

View current ping settings.

execute ping-options view-settings

Examples

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 FortiProxy interface with IP address 192.168.10.23:

execute ping-options source 192.168.10.23

execute ping-options

execute ping-options

Use this command to set ICMP echo request (ping) options to control the way ping tests the network connection between the FortiProxy unit and another network device.

Enable or disable adaptive ping

execute ping-options adaptive-ping {enable | disable>

Set the ping datagram size in bytes (default is 56 bytes)

execute ping-options data-size <integer> Integer value [0,65507]

Set the DF bit in the IP header

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

Set the interface through which to ping the destination

execute ping-options interface {Auto | <outgoing interface>}

Set the time interval

Between sending ping packets in seconds.

execute ping-options interval Integer value to specify seconds between two pings.

<integer> Integer value > 0

Set the 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, for example, 00ffaabb

<string> Hex format of pattern, for example, 00ffaabb

Set the repeat count

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

execute ping-options repeat-count <string> Integer value > 0

Reset

Reset ping settings to the defaults.

execute ping-options reset

Set the source interface

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

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

Set the timeout

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

execute ping-options timeout <integer> Integer value >= 0

Set the type of service (ToS)

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

Set the time to live

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

execute ping-options ttl <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 {yes | no}

View settings

View current ping settings.

execute ping-options view-settings

Examples

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 FortiProxy interface with IP address 192.168.10.23:

execute ping-options source 192.168.10.23