FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
salemneaz
Staff
Staff
Article Id 379349
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.

  • Manual
  • IPAM
  • DHCP
  • PPPoE
  • One-Arm Sniffer

 

When DHCP is selected as the addressing mode then FortiGate receives an IP from the DHCP server.

 

1.jpg

 

It automatically configures a static route is can be viewed at the routing table using the command get router info routing-table all.

 

2.jpg

 

This route is installed with a default distance of 5, which is lower than the static route distance of 10. 

 

3.jpg

 

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.

 

4.jpg

 

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.

 

Picture1.png

 

config system interface

    edit <interface name>

          set distance <value from [1] to [255]>

    end