Hi everyone,
I’m trying to get following scenario running:
Mikrotik1 = 9.9.9.254
Mikrotik2-eth2 = Modem1 giving me 1.1.1.10 with gateway 1.1.1.1
Mikrotik2-eth3 = Modem2 giving me 1.1.1.20 with gateway 1.1.1.1
EoIP-tun1 connecting from 1.1.1.10 to 9.9.9.254 with Tun ID 1 over modem1
EoIP-tun2 connecting from 1.1.1.20 to 9.9.9.254 with Tun ID 2 over modem2
Bridge tun1 and vlan11
Bridge tun2 and vlan12
Eth1 = Uplink with vlan11 and vlan12
So my wish is to get all the traffic from vlan11 to the over side of tun1 over modem 1 and also all the traffic from vlan12 to the over side of tun2 over modem2.
My problem is, that I don’t know how to tell the Mikrotik2 to establish tun1 over modem1 but tun2 over modem2.
I have set “Local Address” 1.1.1.10 at the tun1 and same on tun2 but with .20. Then tried to make this rules:
/ip firewall mangle add action=mark-routing src-address=1.1.1.10 new-routing-mark=modem1
/ip firewall mangle add action=mark-routing src-address=1.1.1.20 new-routing-mark=modem2
/ip route add gateway=1.1.1.1%eth2-modem1 pref-src=1.1.1.10 routing-mark=modem1 distance=1
/ip route add gateway=1.1.1.1%eth2-modem1 pref-src=1.1.1.20 routing-mark=modem2 distance=1
/ip route add gateway=1.1.1.1 distance=1
Seems like this doesn’t work course the Mikrotik establishes the connection not form one or the other address as source but by his self with ? address… Is there a solution for this? Can I say: “to establishe tun1 use modem1-route” in some way?
Mikro1= 6.11 on CCR1016-12G
Mikro2= 6.12 on 2011LS
Let me know if you need further information…