ros 负载掉线后自动修改pcc参数
1.自动修改PCC参数脚本:
{
:local status
:local i "4"
: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}}}
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载