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:
|
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.
Configuring a static route using a network object will throw an error 'Invalid Gateway Address'.
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.
After configuring a different network in port3, there’s no more error message shown when configuring the network address 192.168.2.0.
Change the IP Address (192.168.2.2) on port3 back to its original value.
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 |