How to specify interface as source for ping on a Fortinet

From the CLI Console:

# execute ping-options view

Which will display the current interface.  Per the example below, it has “Auto” as the Source Address.

Ping Options:

        Repeat Count: 5

        Data Size: 56

        Timeout: 2

        Interval: 1

        TTL: 64

        TOS: 0

        DF bit: unset

        Source Address: auto

        Pattern:

        Pattern Size in Bytes: 0

        Validate Reply: no

Sending a ping out of the IP of an interface, where  192.168.76.1 is the interface bound address:

#execute ping-options source  192.168.76.1

exec ping 192.168.107.55

Leave a comment