lnsky1 发表于 2008-10-30 12:02:25

请帮忙看下这个脚本什么地方不对?

: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

lhn1324 发表于 2008-10-30 14:14:57

COMMENT值不要带横杠
页: [1]
查看完整版本: 请帮忙看下这个脚本什么地方不对?