ROS6.46.5版本调试通过,6.43的不行
用于解决游戏登录需要不同的MAC不同AP的情况
下面的脚本,要先手动启用无线wlan1,创建无线属性文件p1,并把WPS Mode=disable(如果你的P1属性文件不设置密码的话)
多SSID脚本
:for i from=1 to=10 do={ :global mac1 [/certificate scep-server otp generate minutes-valid=1 as-value] ; :global mac2 ($mac1->"password"); :global mac [:pick $mac2 0 12]; :global ssid ("A". [:pick $mac2 13 18]); :global wlname ("A". [:pick $mac2 13 18]); :log warning $ssid; /interface wireless add master-interface=wlan1 ssid=$ssid mac-address=$mac name=$wlname security-profile="p1" default-forwarding=no disabled=no wps-mode=disabled ; /interface bridge add name=("B_".$wlname); /interface bridge port add bridge=("B_".$wlname) interface=$wlname; /ip address add address=("192.168." . $i . ".254/24" ) interface=("B_".$wlname); /ip pool add ranges=("192.168." .$i .".100-192.168.". $i.".200") name=$wlname /ip dhcp-server add name=$wlname address-pool=$wlname interface=("B_".$wlname) disa=no; /ip dhcp-server network add address=("192.168.". $i .".0/24") dns-server=114.114.114.114 gateway=("192.168." .$i. ".254") netmask=24 }