Static route as default gateway

I would like to use a static route as the default gateway but I’m getting unreachable.

Scenario

10.0.1.0/24(LAN) ---- Mikrotik .1 ----- .6 FortiGate Router

I created a static route
Dst Address 192.168.1.1
Gateway 10.0.1.6

I would like the 192.168.1.1 to be the Default Gateway (0.0.0.0/0) but I get unreachable.

Hi,

If you want to use 192.168.1.1 as a default gateway, then the wan port on your router should have a ip in the same subnet eg 192.168.1.2/24

Do you mean that you want to create a network 192.168.1.X where devices connected to that network should use the default GW of 192.168.1.1, and that you want the Mikrotik to be 192.168.1.1?

Your network diagram seems invalid, unless you’ve created a bridge between the LAN interface and the Fortigate interface.

Hi,

Sorry for the misunderstanding.

This is the diagram:

Mikrotik — Fortigate — Internet — 192.168.1.6 (Fortigate) remote site

Both are on the same LAN:
Port 1 to Fortigate
Port 2 is LAN
Both are in a bridge.

Mikrotik is 10.0.1.1
Fortigate 10.0.1.6

I have a static route as following:
Dst Address: 192.168.1.0/24 Gateway 10.0.1.6

I can ping 192.168.1.6. What I would like is to have the default gateway (0.0.0.0/0) using 192.168.1.6 as a Gateway. I found out about Recursive Routing but it doesn’t seems to work.

I setup this static routing:
192.168.1.0/24 GW 10.0.1.6 scope: 30 target-scope 10
0.0.0.0/0 GW 192.168.1.6 scope:30 target-scope:30 (192.168.1.6 recursive via 10.0.8.6 bridge, this shows in the routing table)

If i do a traceroute it’ll work as if I had set 10.0.8.6 as the GW for 0.0.0.0/0.