|
- # 多条ADSL断线后 自动更改PCC脚本!===========
- # X为线路数
- :global assign
- :global new
- :global status
- :global x
- :gl y
- :gl z
- :set x 4
- :set z -1
- :for i from=1 to=$x do={
- :set status [/interface get [/interface find name=("pppoe-out" . $i)] running]
- :if ($status=true) do={
- :set y [:len [/interface pppoe-client find running=yes]]
- :set z ($z+1)
- /ip fir man en [find comment=$i]
- /ip fir man set [find comment=$i] per-connection-classifier=("both-addresses:".$y."/".$z)
- #:put ("OK Running!".$y)
- #:set new [/ip address get [/ip address find dynamic=yes interface=("pppoe-out" . $i)] address]
- #:set new [:pick $new 0 ([:len $new] -3)];\
- # /interface set [find name=("wan" . $i)] comment=("\CD\E2\CD\F8" . $i . "\B2\A6\BA\C5\B3\C9\B9\A6!IP: " . $new)
- } \
- #else={:put ("NO runing plese check! " . $i)}
- else={/ip fir man dis [find comment=$i]}
- }
复制代码 |
3389, 打印机, 诺德尔, 网吧, 网吧版, 网吧系统, ndeer, 极速版, 诺德尔, 极速版, 诺德尔, QQ空间, QQ签名, QQ空间, QQ签名, 绿茶, QQ签名, 服务器, 论坛, 3389, 免费, 3389, 打印机, 主机, QQ空间, QQ签名, 矮哨兵, 网吧, ta
|