一、WLAN无线配置步骤:
1、前面配置vlan以及开启DHCP服务,并且在AP上查看自动获取的地址。
<HuaWei> dis system-information
2、进入 AC 配置 AP 上线,进入 wlan。
[AC6005]wlan
[AC6005-wlan-view]ap-group name mpf ----配置AP组
3、创建管理模板并配置AC的国家码;
[AC6005-wlan-view]regulatory-domain-profile name default
[AC6005-wlan-regu]ate-domain-default]country-code CN
退出,重新进入到 AP 组中,将域管理模板与 AP 组做绑定
[AC6005-wlan-view] ap-group name mpf
[AC6005-wlan-ap-group-mpf] regulatory-domain-profile default
Warning: Modifying the country code will clear channel,power and antenionfigurations of the radio and reset the AP.Continue?[Y/N]:y
3、配置AC 源接口
在全局模式下设置capwap 隧道的源端口是 van100的端口
[AC6005]capwap sourceinter Vlanif 100
4、在AC上离线导入AP
接下来进入到 wlan-view 配置 ap 的认证,设置为基于 MAC 地址的认证
[AC6005-wlan-view] ap auth-mode mac-auth
在 ap 上通过 dis system-information 查看 MAC 地址并复制到下面的命令中
[AC6005-wlan-view] ap-id1ap-mac 0e-fce1-5690
此时完成了 AP 的离线绑定,我们还可以设置 AP 的名字,在 AP 中命令提示符中的名字就会变成所设置的相应的名字
[AC6005-wlan-ap-1] ap-name AP1
我们将 AP和AP组再做绑定
Warning: This operation may cause AP reset. If the country code changes
[AC6005-wlan-ap-1] ap-group wbyclear channel, power and antenna gain configurations of the radio, WheInfo: This operation may take a few seconds. Please wait for a moment.ontinue?[Y/N]:y
此时再 AC 上查看所有已经上线的 AP,可以看到我们所配置的 AP 已经上线
[AC6005-wlan-view]dis ap all
5、 在AC上创建名为 “ ICT ” 的安全模板,并配置安全策略。
[AC6005-wlan-view]security-profile name wlan-net
[AC6005-wlan-sec-prof-mpf] security wpa-wpa2 psk pass-phrase a123456789 aes
配置 SSID 模板,并在模板中设置应用该模板的 AP 对外显示的 SSID
6、创建名为 “ ICT ” 的SSID模板,并配置SSID名称为 ”wlan-net“。
[AC6005-wlan-view] ssid-profile name ICT
[AC6005-wlan-ssid-prof-mpf] ssid wlan-net
Info: This operation may take a few seconds, please wait.done
7、我们所配置的安全模板和 SSID模板,都要关联到 VAP 板中。
首先创建名为”MPF“的VAP模板。
[AC6005-wlan-view] vap-profile name MPF
设置转发方式为 tunnel
[AC6005-wlan-vap-prof-MPF]forward-mode tunnel
配置业务VLAN绑定
[AC6005-wlan-vap-prof-MPF]service-vlan vlan-id 101
Info: This operation may take a few seconds, please wait.done
绑定安全模板和 SSID 模板
[AC6005-wlan-vap-prof-MPF]security-profile ICT
Info: This operation may take a few seconds, please wait.done
[AC6005-wlan-vap-prof-MPF]ssid-profile ICT
Info: This operation may take a few seconds, please wait.done
8、配置AP组引用VAP模板,AP上射频0和射频1都使用VAP模板”MPF“的配置。
[AC6005-wlan-view]ap-group name mpf
绑定VAP 模板,wlanid 这里暂定1射频0
[AC6005-wlan-ap-group-mpf] vap-profile MPF wlan 1 radio 0
Info: This operation may take a few seconds, please wait...done.
绑定VAP模板,wlanid 这里暂定1射频 1。
[AC6005-wlan-ap-group-mpf] vap-profile MPF wlan 1 radio1
Info: This operation may take a few seconds, lease wait...done
此时在STA上可以搜索到无线列表。
后续后出一份基于WLAN无线的实验,可以让大家更好的理解WLAN!