/ppp secret;
:foreach pppuser in [find caller-id=""] do={
:local user [get $pppuser name];
/ppp active
:foreach pact in [find name=$user] do={
:local mac [get $pact caller-id];
/ppp secret set [/ppp secret find name=$user] caller-id=$mac;
}}
绑定所有正在PPPOE拨号上网的用户的MAC地址
对某个用户的解除,WINBOX进入后,找到相应的用户.
在ppp
secret下面,双击用户,找到旁边的, caller-id,点旁边的小三角形,再点OK就可以了.
当然也可以用命令行操作:
/ppp secret set numbers=user caller-id=""
将user换成你要解除绑定的用户名.
全部解除,批量解除请使用以下脚本:
:foreach i in [/ppp sec find] do={/ppp sec set numbers=$i
caller-id=""}