求解!这段脚本如何配合才能用起来!!
:foreach i in= do={:local pppint
:local adsldyip address]
:local adslloip address]
:if ([:typeof $adsldyip] = nil ) do={
/interface pppoe-client monitor $pppint once do={
:if (!($status = "connected")) do={
:log info ($pppint . ": dialing error!")
}
}
} else={
:if ($adsldyip = $adslloip) do={
:log info ($pppint . ":No change")
} else={
:local adslipm [:pick $adsldyip 0 [:find $adsldyip "/"]]
:log info add=$adsldyip network=$adslipm bro=$adslipm]
:log info gateway=$adslipm]
}
}
} 干嘛用的?
页:
[1]