首先进入ip address配置IP地址
在ip dns setting中配置好DNS缓锋,DNS为:61.139.2.69
Mangle标记配置
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no
in-interface=lan new-connection-mark=1st_conn passthrough=yes
per-connection-classifier=both-addresses:2/0
add action=mark-routing chain=prerouting comment="" connection-mark=1st_conn
disabled=no in-interface=lan new-routing-mark=1st_route passthrough=yes
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no
in-interface=lan new-connection-mark=2nd_conn passthrough=yes
per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting comment="" connection-mark=2nd_conn
disabled=no in-interface=lan new-routing-mark=2nd_route passthrough=yes
回程路由设置
我们需要将从那个口进入就从相应的口回去,即保证每个外网口的数据能得到正确的路由
/ip firewall mangle
add chain=input in-interface=wan1 action=mark-connection new-connection-mark=1st_conn
add chain=input in-interface=wan2 action=mark-connection new-connection-mark=2nd_conn