ros3.30双ADSL PCC负载求助
本帖最后由 qinfei 于 2010-12-13 19:35 编辑如图:我用单线程下载
第二条线都没有什么流量,下面是脚本:
(V3.24以上版本的PCC功能)
设置lan接口IP与DNS
/ip address add address=172.16.1.1/255.255.255.0 interface=lan comment=lan
/ip dns set primary-dns=202.96.134.133 secondary-dns=202.96.128.68 allow-remote-requests=yes
双线均衡脚本
/ip firewall mangle
add action=change-mss chain=forward comment="" disabled=no new-mss=1400 protocol=tcp tcp-flags=syn
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2_conn passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=172.16.1.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=pppoe-out2_conn passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=172.16.1.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes src-address=172.16.1.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes src-address=172.16.1.0/24
/ip route
add comment=adsl1 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1
add comment=adsl2 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2
add check-gateway=ping comment=adsl1 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out1
add check-gateway=ping comment=adsl2 disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out2
/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out2
贴规则太抽象了,发截图吧,再仔细看看PCC教程,别邯郸学步,自己试着理解一下原理。 add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2_conn passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes
以上应该不需要吧??你有读ROS封包的处理规则吗?这几条是要处理ros本机的!
pppoe gate-way会变动你没有加如 script 去处理呢!
建议先看懂原理在做! 我就是正在理解,我感觉我没理解错,可能是哪个方面(如设置路由或者PPPOE接口)出错了。多谢指教,我想知道ADSL与固定IP的PCC也没多大区别吧?官方只有固定IP的PCC。其实我这个AD脚本是网上下来的。呵呵,这个ADSL双线设置我与官方的固定IP的PCC对比过。没什么特别大的区别。就是PPPOE前面的步骤不太理解。
pppoe gate-way会变动,现在不是说新的做法不用script去处理了吗?
那个官方固定IP的PCC我改造过来成ADSL的,老是登不上路由,能上网一段时间就断线了,想不明白,还望赐教。
哎,真菜我:L 建議看看我的做法!
http://bbs.routerclub.com/forum.php?mod=viewthread&tid=45309&extra=page%3D2 :hug: 谢谢各位,我现在搞好了。不用刷新网关的脚本的,呵呵。之前可能是我导太多DSCP和L7的东西进去了,现在不用DSCP了,我宽带足,呵呵 回复 qinfei 的帖子
分享出来给大家借鉴一下. 自己去看吧,我发了
ROS3.30双ADSL PCC负载
http://bbs.routerclub.com/forum.php?mod=viewthread&tid=45707&fromuid=129073
页:
[1]