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.
achu
Staff
Staff
Article Id 377479
Description

This article describes the error message 'Invalid gateway' when configuring the gateway address in static routes using a network address. No issues or errors were known when configuring the network address in version 7.2.3 and below.  

 

Invalid gateway address error message:

 

Image-0.png

Scope FortiOS v7.2.4.
Solution

To solve this issue, configure a different IP Address range/subnet on the interface first before configuring the static route then modify the interface IP Address to the actual or original value.

 

Port3 IP Address configuration.

 

Image-1.png

 

Configuring a static route using a network object will throw an error 'Invalid Gateway Address'.

 

Image-2.png

 

Configure the IP Address of port3 to be in a different subnet or network than the Gateway Address in the static route. 

 

Change the IP Address of port3 from 192.168.2.2 to 192.168.3.2.

 

Image-3.png

 

After configuring a different network in port3, there’s no more error message shown when configuring the network address 192.168.2.0.

 

Image-4.png

 

Image-5.png

 

Change the IP Address (192.168.2.2) on port3 back to its original value.


Image-6.png

 

Verify the configuration in CLI.

 

Iriz-kvm46 # show system interface | grep -f port3

config system interface

    edit "port3" <---

        set vdom "root"

        set ip 192.168.2.2 255.255.255.240

        set type physical

        set snmp-index 3

    next

end

 

Iriz-kvm46 # show router static | grep -f port3

config router static

    edit 2

        set gateway 192.168.2.0

        set device "port3" <---

    next

end

Contributors