ahkeong 发表于 2006-5-22 08:38:58

跟大家分享 (分流路策略+自动切换)

大家好, 谢谢软件路由论坛用户分享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   

如果写的不好抱歉!!!!!!!!!!! (在努力学习 )

ahkeong 发表于 2006-5-23 14:09:18

没人 ding~~~~~~~~~~~

javen520 发表于 2006-5-24 15:35:05

我看看,谢谢~~~~~~~

ahkeong 发表于 2006-6-1 14:57:52

请问有什么不足之处大家分享

谢谢

:D

lxhdly 发表于 2006-6-1 15:27:40

有些看不懂呢
页: [1]
查看完整版本: 跟大家分享 (分流路策略+自动切换)