Created on
02-14-2024
07:30 AM
Edited on
08-20-2024
01:52 AM
By
Jean-Philippe_P
| Description | This article describes the effects of route priority on PING operations from the FortiGate CLI. |
| Scope | FortiGate. |
| Solution |
Network:
IP=10.47.1.80->10.47.1.80/255.255.240.0 index=3 devname=port1
S* 0.0.0.0/0 [1/0] via 10.47.15.254, port1, [1/0]
Behavior: A ping from FortiGate CLI sourcing from the respective IP addresses of Port1 and Port2 will work in both cases.
execute ping-options source 10.47.1.80
Packet sniffer output: 2024-02-14 08:18:26.314816 root out 10.47.1.80 -> 1.1.1.1: icmp: echo request
execute ping-options source 10.47.17.80 execute ping 1.1.1.1
Packet sniffer output: 2024-02-14 08:19:46.946265 root out 10.47.17.80 -> 1.1.1.1: icmp: echo request
In this example, Port1 has lower priority (1) compared to Port2 (10). Lower priority means that the route is preferred.
S* 0.0.0.0/0 [1/0] via 10.47.15.254, port1, [1/0]
Behavior:
execute ping 1.1.1.1
Packet sniffer output: 2024-02-14 08:21:19.478462 root out 10.47.1.80 -> 1.1.1.1: icmp: echo request
Ping with source IP of Port2 will fail since traffic will egress on Port1 (preferred) instead of Port2.
execute ping 1.1.1.1 --- 1.1.1.1 ping statistics ---
execute ping-options source 10.47.17.80 execute ping-options interface port2 execute ping 1.1.1.1 |
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 2026 Fortinet, Inc. All Rights Reserved.