Hello,
i have an issue with a very simple setup:
there are two ISPs, A and B, and two ether interfaces in the SAME subnet (192.168.0.1/24 and 192.168.0.2/24).
i want that traffic from stations that goes to ether1 uses ISP A, traffic to ether 2 goes to ISP B, nothing more than that…(by simply changing the default gw of a station i pick which isp to use)
ISP A is a pppoe dynamic ip and ISP b static ip ethernet.
so i created a mangle rule:
/ip firewall mangle
add action=mark-routing chain=prerouting disabled=yes in-interface=ether1lan log-prefix="" new-routing-mark=isp1 passthrough=no
add action=mark-routing chain=prerouting disabled=yes in-interface=ether2lan2 log-prefix="" new-routing-mark=isp2 passthrough=no
then i added two routes with the scope values as default, without touching the dynamically generated one, for the pppoe one i used the interface name:
/ip route
add distance=1 gateway=a.b.c.d routing-mark=isp2
add distance=1 gateway="ISP 2 PPPoE" routing-mark=isp2
no route shows unreachable.
the moment i enable the first mangle rule, i lose all connectivity to the routerboard, ping to ether1 is lost(have to connect winbox via MAC) and ping from the utik to the lan is lost as well, i see the traffic coutning up so it’s marking, but something breaks inbetween.
changing passthrough made no difference. disabling the ether2 IP and mangle rule also made no difference.
any ideas?, am i doing something wrong by just using “in-interface”?, do i need to specifically list the lan address range?