跟大家分享 (分流路策略+自动切换)
大家好, 谢谢软件路由论坛用户分享RouterOS交流本人(设置)
固定IP
Lan:192.168.0.100
WAN1 : xxx.xxx.xxx.1
WAN2 : xxx.xxx.xxx.2
/ ip route
add dst-address=0.0.0.0/0 gateway=xxx.xxx.xxx.2 check-gateway=ping scope=255 \
target-scope=10 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=xxx.xxx.xxx.1,xxx.xxx.xxx.2 \ 《--(这里自动切换)
check-gateway=ping scope=255 target-scope=10 routing-mark=WAN1 comment="" \
/ ip firewall nat
add chain=srcnat action=masquerade comment="" disabled=no
/ ip firewall mangle
add chain=prerouting in-interface=lan protocol=tcp dst-port=80 \
action=mark-routing new-routing-mark=WAN1 passthrough=yes comment="forward \
check" disabled=no
add chain=prerouting protocol=udp dst-port=80 action=mark-routing \
new-routing-mark=WAN1 passthrough=yes comment="" disabled=no
add chain=prerouting action=accept comment="Accept" disabled=no
add chain=forward protocol=tcp tcp-flags=syn action=change-mss \
new-mss=clamp-to-pmtu comment="" disabled=no
如果写的不好抱歉!!!!!!!!!!! (在努力学习 ) 没人 ding~~~~~~~~~~~ 我看看,谢谢~~~~~~~ 请问有什么不足之处大家分享
谢谢
:D 有些看不懂呢
页:
[1]