Skip to main content
achu
Staff
Staff
February 19, 2025

Technical Tip: Unable to configure gateway address using network address after upgrade to v7.2.4

  • February 19, 2025
  • 0 replies
  • 1425 views
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

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!