23878| 9
|
[脚本] 求多线ip自动更新到nat脚本 |
悬赏50铜板已解决
最佳答案:local curaddress
:local newaddress
:local status
:local x
:set x 3
:for i from=1 to=$x do={
:set status [/interface get [/interface find name=("pppoe-out" . $i)] running]
:if ($status=true) do={
:set newaddress [/ip address get [/ip address find dynamic=yes interface=("pppoe-out" . $i)] address ]
:set newaddress [:pick $newaddress 0 [:find $newaddress "/"]]
:set curaddress [ ...
| ||
routeros
|
||
发表于 2013-9-29 18:31:26
|
显示全部楼层
| ||
routeros
|
||
发表于 2013-9-30 10:58:51
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
| ||
routeros
|
||
发表于 2013-9-30 23:02:48
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )
GMT+8, 2024-11-23 12:37 , Processed in 0.052075 second(s), 4 queries , Gzip On, Redis On.
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.