Best method for two LANs to use two WANs separately

I have two LANs set up, with a WAN1 and one 3g Modem WAN2.

This is what I would like:

VLAN1 to use solely WAN1
VLAN2 to use solely WAN2

So my vlans are like eth0.1 eth0.2.

What would be the best way to go with this

WAN2 has a dynamic IP
I was trying to set up a Static Route but with WAN2 being dynamic, I couldn't set a Static Route as I wouldn't know the gateway to specify.

Is there any tagging method to link the LAN2 and WAN2?
Or is my only option to use mwan3?

You need to do Policy Based Routing and you have 2 options:

  1. mwan3 package
  2. pbr package
1 Like

Possible to get an example of such config with mwan3 ?