I am using the new firmware version (6.0.3) and I got one issue using static route. If you already have any route to a specific GW and you try to add a new one to the same specific GW, the Fortigate shows the follow message.
"Gateway IP and interface conflict with Static Route #"
How to fix it?
Save your route using another GW IP. After that, right-click on the Route you want to change and click ">_Edit in CLI".
Run the command "set gateway 10.1.3.5", then type "end" and close the CLI Console.
Refresh your browser and you will see the result.
@Fortigate team, please provide an update to fix it up.
You issue is well know to our internal Engineering team with an ID 0518131 and summary:(B0200] Not able to add static route with same gateway IP and interface from WebGUI) and will be resolved in v6.0.4
Been awhile since I did this and on new firmware now but should be similar.
#config router static
#edit 1 ***** this would edit whatever static route is in static route 1 for example. You need to change this for the route you want. If creating a new route it might accept skipping this step and create a new entry. However otherwise do show once you are in config router static mode and it will show you all your route numbers, you can this create the next number free if creating a new route.
#set gateway 22.214.171.124
#set distance 10
#set device port2 (or whatever port the traffic is exiting on)
#set dst 0.0.0.0 (the address you are routing too)
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.