| Description | This article describes the configuration behavior when both the source and destination networks are directly connected, and there is a requirement to influence traffic flow using a policy route. |
| Scope | FortiGate. |
| Solution |
The source network 192.168.1.0/24 is directly connected to VLAN10. The destination network 192.168.2.0/24 is directly connected to mgmt1. By default, traffic between these networks follows the directly connected route. However, if there is a requirement to route traffic from a specific source IP 192.168.1.10 (VLAN10) to a specific destination 192.168.2.30 (mgmt1) via port11 policy route
Source:
set vdom "root" next C 192.168.1.0/24 is directly connected, VLAN10
Destination:
edit "mgmt1" set vdom "root" next
A specific static route has been added to reach the destination via port11
S 192.168.2.30/32 [10/0] via 192.168.2.254, port11, [1/0]
config router policy edit 1 set input-device "VLAN10"
The firewall policy allows specific traffic from the source to the destination over port11
edit 122
The directly connected route always takes precedence over a static route. As a result, the policy route will not be applied, and this configuration will not work as intended. |
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.