A configuration for two local networks and two gateways of the same Internet Provider

Hello,

We are unable to properly configure our MikroTik router (RB750GL) for the following configuration.

We have two LANs:

LAN1: 192.168.10.0/24
LAN2: 192.168.20.0/24

We have two WAN ports connected to the same ISP. It provides just one gateway:

10.0.0.1

We are allowed to use two static WAN IPs:

10.0.0.10
10.0.0.20

We need to route LAN1 from IP:10.0.0.10 and LAN2 from IP:10.0.0.20.

Please, advise. Don’t ask us to read manuals because they do not apply to our networking configuration.

/ip firewall mangle 
add chain=prerouting src-address=192.168.10.0/24 action=mark-connection new-connection-mark=conn1
add chain=prerouting connection-mark=conn1 action=mark-routing new-routing-mark=conn1 passthrough=no

Same for network 192.168.20.0/24

/ip route
add dst-address=0.0.0.0/0 routing-mark=conn1 gateway=WAN1

The idea here is to put the interface as gateway instead of IP