请帮忙看下这个脚本什么地方不对?
:local assign-address:local new-address
:local status
:local x
:set x 4
:for i from=1 to=$x do={
:set status running]
:if ($status=true) do={
:set new-address address]
:set new-address [:pick $new-address 0 [:find $new-address "/"]]
:set assign-address address]
:set assign-address [:pick $assign-address 0 [:find $assign-address "/"]]
:if ($assign-address != $new-address) do={
/ip address set address=$new-address network=$new-address broadcast=$new-address
/ip fir nat set to-addresses=$new-address
/ip route set gateway=$new-address
}
}
}
nat那个地方我做了commentadsl1-4但是这个脚本填写不了IP地址。不知道那个地方错了。
/ip fir nat set to-addresses=$new-address COMMENT值不要带横杠
页:
[1]