Gostaria de direcionar cada rede para um gateway diferente.
Cenario:
Gateways:
192.168.1.1
192.168.2.1
Redes:
192.168.20.0/24 - sair por 192.168.1.1
192.168.21.0/24 - sair por 192.168.2.1
Fiz através de marcação de pacotes, mas não está funcionando
/ ip firewall mangle
add chain=prerouting src-address=192.168.20.0/24 protocol=tcp routing-mark=link1 action=mark-routing new-routing-mark=link1 \
passthrough=yes comment="" disabled=no
add chain=prerouting src-address=192.168.20.0/24 protocol=udp routing-mark=link1 action=mark-routing new-routing-mark=link1 \
passthrough=yes comment="" disabled=no
add chain=prerouting src-address=192.168.21.0/24 protocol=tcp routing-mark=link2 action=mark-routing new-routing-mark=link2 \
passthrough=yes comment="" disabled=no
add chain=prerouting src-address=192.168.21.0/24 protocol=udp routing-mark=link2 action=mark-routing new-routing-mark=link2 \
passthrough=yes comment="" disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=link1 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 routing-mark=link2 comment="" disabled=no