Description | This article gives an overview for how to can priorities static routing over the DHCP. |
Scope | FortiGate. |
Solution |
There are five types of addressing modes for an interface as listed below.
When DHCP is selected as the addressing mode then FortiGate receives an IP from the DHCP server.
It automatically configures a static route is can be viewed at the routing table using the command get router info routing-table all.
This route is installed with a default distance of 5, which is lower than the static route distance of 10.
This default Administrative Distance of 5 caused the routing table to select the DHCP interface as the preferred best path, and all the traffic is being pushed through this interface. To make the static route as preferred the administrative distance can be manually configured to be lower than the DHCP route, and this will make the routing table select the static route as the preferred best path.
This will route the internet traffic through Port1. The route administrative distance can also be altered to the interface that is set for DHCP addressing mode.
config system interface edit <interface name> set distance <value from [1] to [255]> end |
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 2025 Fortinet, Inc. All Rights Reserved.