变量:new-connection-mark both-addresses:2/0 connection-mark gateway=pppoe-out1 routing-mark
代码:
/ip firewall mangle
add action=mark-connection chain=prerouting disabled=no new-connection-mark=1 passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=192.168.1.0/24
add action=mark-connection chain=prerouting disabled=no new-connection-mark=2 passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=192.168.1.0/24
add action=mark-routing chain=prerouting connection-mark=1 disabled=no new-routing-mark=1 passthrough=yes src-address=192.168.1.0/24
add action=mark-routing chain=prerouting connection-mark=2 disabled=no new-routing-mark=2 passthrough=yes src-address=192.168.1.0/24
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=1
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=2