找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2830|回复: 2

[策略设置] 各位老大,帮我看看下面的代码做的双线有什么缺点不?

[复制链接]
发表于 2010-8-28 11:15:38 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 cow_boys 于 2010-8-28 13:53 编辑

/ip firewall mangle
add action=mark-connection chain=prerouting comment=nth_1 connection-state=\
    new disabled=no new-connection-mark=nth_1 nth=2,1 passthrough=yes \
    src-address=192.168.1.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_1 \
    disabled=no new-routing-mark=routing_1 passthrough=no src-address=\
    192.168.1.0/24
add action=mark-connection chain=prerouting comment=nth_2 connection-state=\
    new disabled=no new-connection-mark=nth_2 passthrough=yes src-address=\
    192.168.1.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_2 \
    disabled=no new-routing-mark=routing_2 passthrough=no src-address=\
    192.168.1.0/24

/ip firewall nat
add action=masquerade chain=srcnat comment=1 connection-mark=nth_1 disabled=\
    no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment=2 connection-mark=nth_2 disabled=\
    no out-interface=pppoe-out2

/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out1 routing-mark=routing_1
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out2 routing-mark=routing_2

请教各位老大,这样做的双线:
1。QQ、MSN会每隔一段时间掉线不?
2。万一掉了一线,会断线不?
3。为什么标记nth_2那段不需要设nth值??

我原来是直接在默认路由的Gateway Interface设定pppoe-out1,pppoe-out2,实现的双线,ros自动分配出口给客户机,但发现QQ,MSN每隔一段时间掉线,上网查过,这方法处理UDP数据包,一会走网关1,一会走网关2,所以掉线。所以想换上面的方法。
routeros
发表于 2010-8-30 01:34:59 | 显示全部楼层
做pcc
routeros
回复

使用道具 举报

发表于 2010-8-30 20:14:45 | 显示全部楼层
做pcc
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-20 10:27 , Processed in 0.045423 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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