前言
Wlan在日常生活中的应用越来越多,同学们实习在即,希望通过这门《Wlan技术与应用》课程的学习,为实习和就业起到一点帮助。
一、实验目的
通过直连二层组网方式,使AP在AC上线。先打通AP的管理,为下一步业务的配置做好准备。
二、使用设备
- eNSP平台;
- AC采用AC6005,1台;
- AP采用AP6050,1台。
三、网络拓扑
组网 :AP直挂在AC下。
DHCP部署 :AC作为DHCP Server为AP分配IP地址。
AP的管理 :VLAN 100,网段为10.100.0.0/24。网关为AC上的VLAN100接口IP。
AC与AP建立管理隧道的源接口:AC上的VLANIF100。
四、设备配置
1.AC上的配置
1)配置管理VLAN和端口数据
<AC6005>
<AC6005>system-view
Enter system view, return user view with Ctrl+Z.
[AC6005]
[AC6005]vlan 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[AC6005-vlan100]q
[AC6005]
[AC6005]int GigabitEthernet 0/0/1
[AC6005-GigabitEthernet0/0/1]description To-AP1
[AC6005-GigabitEthernet0/0/1]port link-type access
[AC6005-GigabitEthernet0/0/1]port default vlan 100
[AC6005-GigabitEthernet0/0/1]display this
#
interface GigabitEthernet0/0/1
description To-AP1
port link-type access
port default vlan 100
#
return
[AC6005-GigabitEthernet0/0/1]
[AC6005-GigabitEthernet0/0/1]q
2)配置DHCP服务器
[AC6005]
[AC6005]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[AC6005]
[AC6005]interface Vlanif 100
[AC6005-Vlanif100]
[AC6005-Vlanif100]ip address 10.100.0.254 24
[AC6005-Vlanif100]dhcp select interface
[AC6005-Vlanif100]display this
#
interface Vlanif100
ip address 10.100.0.254 255.255.255.0
dhcp select interface
#
return
[AC6005-Vlanif100]q
[AC6005]
2.配置WLAN视图中的数据
1)配置域管理模板,模版命名为default。
[AC6005]wlan
[AC6005-wlan-view]
[AC6005-wlan-view]regulatory-domain-profile name default
[AC6005-wlan-regulate-domain-default]country-code cn
Info: The current country code is same with the input country code.
[AC6005-wlan-regulate-domain-default]
[AC6005-wlan-regulate-domain-default]q
2)配置AP组,模板命名为ap-xg。
[AC6005-wlan-view]ap-group na
[AC6005-wlan-view]ap-group name ap-xg
Info: This operation may take a few seconds. Please wait for a moment.done.
[AC6005-wlan-ap-group-ap-xg]regulatory-domain-profile default
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
[AC6005-wlan-ap-group-ap-xg]
[AC6005-wlan-ap-group-ap-xg]q
3)配置AP认证模式,默认为MAC认证。
[AC6005-wlan-view]ap auth-mode mac-auth
4)查看AP1的MAC地址,并离线导入AP。
[AC6005]display mac-address
-------------------------------------------------------------------------------
MAC Address VLAN/VSI Learned-From Type
-------------------------------------------------------------------------------
00e0-fcc5-68f0 100/- GE0/0/1 dynamic
-------------------------------------------------------------------------------
Total items displayed = 1
[AC6005]wlan
[AC6005-wlan-view]ap-id 1 ap-mac 00e0-fcc5-68f0
[AC6005-wlan-ap-1]ap-name AP1
[AC6005-wlan-ap-1]ap-group ap-xg
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
Info: This operation may take a few seconds. Please wait for a moment.. done.
[AC6005-wlan-ap-1]
[AC6005-wlan-ap-1]q
3. 查看AP上线情况。
[AC6005]display ap all
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
nor : normal [1]
---------------------------------------------------------------------------------------
ID MAC Name Group IP Type State STA Uptime
---------------------------------------------------------------------------------------
1 00e0-fcc5-68f0 AP1 ap-xg 10.100.0.206 AP6050DN nor 0 5M:49S
---------------------------------------------------------------------------------------
Total: 1
[AC6005]
AP状态
normal : AP正常状态,指AP在AC上成功上线。
fault : AP上线失败状态。
idle : AP和AC建立连接前的初始状态。
总结
本次实验为AP上线的基础实验,只用到了1台AC和1台AP,组网也较简单。通过本次实验,可以初步学习和掌握AP上线的配置,为以后的学习打好基础。