[AC6605]wlan --- 进入WLAN配置视图
[AC6605-wlan-view]regulatory-domain-profile name aa
[AC6605-wlan-regulate-domain-aa]country-code CN ---- 设置采用的WLAN的频段
[AC6605-wlan-view]ap auth-mode mac-auth --- 设置AP的认证模式
创建AP组
复制代码
[AC6605-wlan-view]ap-group name gourp-1 --- 创建AP组
[AC6605-wlan-ap-group-gourp-1]regulatory-domain-profile aa --- 将域管理模板绑定到该AP组内
Warning: Modifying the country code will clear channel, power and antenna gain c
onfigurations of the radio and reset the AP. Continue?[Y/N]:Y
[AC6605-wlan-view]ap-group name gourp-2 --- 创建AP组
[AC6605-wlan-ap-group-gourp-2]regulatory-domain-profile aa--- 将域管理模板绑定到该AP组内
Warning: Modifying the country code will clear channel, power and antenna gain c
onfigurations of the radio and reset the AP. Continue?[Y/N]:Y
[AC6605-wlan-ap-0]ap-name ap-0--- 设置该AP的名称
[AC6605-wlan-ap-0]ap-group gourp-1--- 将该AP绑定到AP组内
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:Y
[AC6605-wlan-ap-1]ap-name ap-1
[AC6605-wlan-ap-1]ap-group gourp-1
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y
[AC6605-wlan-ap-2]ap-name ap-2
[AC6605-wlan-ap-2]ap-group gourp-2
Warning: This operation may cause AP reset. If the country code changes, it will
clear channel, power and antenna gain configurations of the radio, Whether to c
ontinue? [Y/N]:y
配置安全模板
复制代码
[AC6605-wlan-view]security-profile name openlab-1
[AC6605-wlan-sec-prof-openlab-1]security wpa2 psk pass-phrase openlab-2 aes
[AC6605-wlan-view]security-profile name openlab-2
[AC6605-wlan-sec-prof-openlab-2]security wpa2 psk pass-phrase openlab-1 aes
配置SSID模板 - WIFI名称
复制代码
[AC6605-wlan-view]ssid-profile name openlab-1
[AC6605-wlan-ssid-prof-openlab-1]ssid openlab-1
[AC6605-wlan-view]ssid-profile name openlab-2
[AC6605-wlan-ssid-prof-openlab-2]ssid openlab-2
[AC6605-wlan-view]ap-group name gourp-1
[AC6605-wlan-ap-group-gourp-1]vap-profile openlab-1 wlan 1 radio all
[AC6605-wlan-view]ap-group name gourp-2
[AC6605-wlan-ap-group-gourp-2]vap-profile openlab-2 wlan 2 radio all
配置DHCP--- 地址池配置,为STA分配IP地址
复制代码
[LSW1]interface Vlanif 10
[LSW1-Vlanif10]ip address 192.168.10.254 24
[LSW1-Vlanif10]dhcp select global
[LSW1]ip pool vlan10
[LSW1-ip-pool-vlan10]network 192.168.10.0 mask 24
[LSW1-ip-pool-vlan10]gateway-list 192.168.10.254
[LSW1]int v 20
[LSW1-Vlanif20]ip address 192.168.20.254 24
[LSW1-Vlanif20]dhcp select global
[LSW1]ip pool vlan20
[LSW1-ip-pool-vlan20]network 192.168.20.0 mask 24
[LSW1-ip-pool-vlan20]gateway-list 192.168.20.254