命令行配置AC
/interface bridge add name=APbridge
/interface bridge port add interface=cap1 bridge=APbridge
/ip address add interface=APbridge address=10.10.0.1/24
/ip pool add name=APDHCP ranges=10.10.0.2-10.10.0.254
/ip dhcp-server add name=APDHCP interface=APbridge address-pool=APDHCP lease-time=1d disabled=no
/ip dhcp-server network add address=10.10.0.0/24 gateway=10.10.0.1
/caps-man channel add name=channel1 band=2ghz-b/g/n width=20
/caps-man configuration add name=cfg1 mode=ap ssid=FREE-WIFI max-sta-count=60 channel=channel1
/caps-man provisioning add action=create-enabled master-configuration=cfg1
/caps-man manager set enabled=yes
命令行配置AP(以下拿RB951-2n为例)
/interface bridge add name=bridge protocol-mode=rstp
#接口根据你的设备做删减
/interface bridge port add interface=ether1 bridge=bridge
/interface bridge port add interface=ether2 bridge=bridge
/interface bridge port add interface=ether3 bridge=bridge
/interface bridge port add interface=ether4 bridge=bridge
/interface bridge port add interface=ether5 bridge=bridge
/interface enable wlan1
/interface bridge port add interface=wlan1 bridge=bridge
interface wireless cap set enabled=yes interfaces=wlan1 discovery-interfaces=bridge bridge=bridge
#可选是否分配IP地址
/ip address add address=192.168.1.2/24 interface=bridge
设置时间时区
/system clock set time=00:00:00
/system clock set time-zone-name=Asia/Chongqing
/system ntp client set primary-ntp=time.windows.com secondary-ntp=time.windows.com
/system ntp client set enabled=yes
#设置设备名称便于区分是那台AP
/system identity set name=AP1
#设置定时重启
/system scheduler add name=reboot start-time=00:00:00 interval=30d on-event=”/system reboot”
#设置AP密码
/user set admin password=rosm.cn
CAPsMAN设置教程
发表评论