找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2961|回复: 4

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

[复制链接]
发表于 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   

如果写的不好抱歉!!!!!!!!!!! (在努力学习 )
routeros
 楼主| 发表于 2006-5-23 14:09:18 | 显示全部楼层
没人 ding~~~~~~~~~~~
routeros
回复

使用道具 举报

发表于 2006-5-24 15:35:05 | 显示全部楼层
我看看,谢谢~~~~~~~
routeros
回复

使用道具 举报

 楼主| 发表于 2006-6-1 14:57:52 | 显示全部楼层
请问有什么不足之处大家分享

谢谢

routeros
回复

使用道具 举报

发表于 2006-6-1 15:27:40 | 显示全部楼层
有些看不懂呢
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-29 10:39 , Processed in 0.048153 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表