找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: zooyo

[脚本] 多ADSL负载--掉线后自动修改pcc/nth参数 保证网络畅通[修正版]

  [复制链接]
 楼主| 发表于 2011-3-20 23:06:38 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2011-3-20 23:42:13 | 显示全部楼层
zooyo 发表于 2011-3-20 23:06
贴一下你的mangle截图。

未命名.PNG


刚代码错了,不过还是一样。

不知道哪里设置错了呢?
routeros
回复

使用道具 举报

 楼主| 发表于 2011-3-21 01:08:15 | 显示全部楼层
回复 kyer2012 的帖子

这样看没问题,不知道你哪里设置错了。
routeros
回复

使用道具 举报

发表于 2011-3-21 01:23:11 | 显示全部楼层
  恩  看的懂一点点  都是代码就看不懂了  
routeros
回复

使用道具 举报

发表于 2011-3-21 09:15:18 | 显示全部楼层
    不错...希望各位版主能搞个版块..介绍和入门的..做几期例程...全民高手!!-_- 上脚本例子和说明
routeros
回复

使用道具 举报

发表于 2011-3-21 10:45:22 | 显示全部楼层
本帖最后由 kyer2012 于 2011-3-21 11:00 编辑
zooyo 发表于 2011-3-21 01:08
回复 kyer2012 的帖子

这样看没问题,不知道你哪里设置错了。


已经解决了!

一个参数错了!

  细节问题!

但我有一个疑问

{
:local status
:local i "4"

我四条线, I 设置为超过5条也是正常使用, 低于 4 就有点小问题! 似乎不需要4条线i 就设置 4,只要不低于4就好了!
routeros
回复

使用道具 举报

发表于 2011-3-21 11:29:17 | 显示全部楼层
好东西啊!!!
routeros
回复

使用道具 举报

发表于 2011-3-24 18:17:19 | 显示全部楼层
LZ想请教一下我有6条线```用你的剧本每条AD拨号1.2.3.4.5.6.这样标记```不是剧本这样改对不对???
:local status
:local i "6"
:local x "0"
:local y "0"
:local z "0"
:set x [:len [/interface pppoe-client find running=yes]]
:if ($x<$i) do={
:for ii from=1 to=$i do={
:set status [/interface get [find name=("pppoe-out".$ii)] running]
:if ($status=true) do={
/ip fir man set [find new-connection-mark=$ii] per-connection-classifier=("both-addresses:".$x."/".$y) disable=no;:set y ($y+1)} else={
/ip fir man set [find new-connection-mark=$ii] disable=yes}}}
:if ($x=$i) do={
:set z [:len [/ip fir man find action="mark-connection" disabled=yes chain=prerouting]]
:if ($z>0) do={
:for ii from=1 to=$i do={
/ip fi man set [find new-connection-mark=$ii] per-connection-classifier=("both-addresses:".$x."/".$y) disable=no;:set y ($y+1)}}}}

routeros
回复

使用道具 举报

 楼主| 发表于 2011-3-24 18:27:16 | 显示全部楼层
回复 tancunf4 的帖子

恩名字是1 2 3 4 5 6 连接标记名字也要是 1 2 3 4 5 6
routeros
回复

使用道具 举报

发表于 2011-3-24 22:34:05 | 显示全部楼层
大家的脚本都几好
routeros
回复

使用道具 举报

发表于 2011-3-24 23:21:21 | 显示全部楼层
太经典了,收起来了感谢版主了!
routeros
回复

使用道具 举报

发表于 2011-3-25 13:19:59 | 显示全部楼层
真是多啊。。。。
routeros
回复

使用道具 举报

发表于 2011-4-1 15:26:50 | 显示全部楼层
测试OK,非常好用,谢谢
只是感觉adsl掉线后,ppp那边状态更新太慢了,不知道有没有什么解决的办法
routeros
回复

使用道具 举报

发表于 2011-4-4 11:15:23 | 显示全部楼层
正想试一下PCC
routeros
回复

使用道具 举报

发表于 2011-4-4 22:41:47 | 显示全部楼层
这过是我一直想要的哟!!
routeros
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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