配置小型网络WLAN基本业务示例(IPv4网络)
组网需求
如图1所示,AC直接与AP连接。现某企业分支机构为了保证工作人员可以随时随地的访问公司网络,需要通过部署WLAN基本业务实现移动办公。
具体要求如下:
提供名为“test”的无线网络。
工作人员分配到的IP地址网段为192.168.11.0/24。
配置思路
采用如下的思路配置小型网络的WLAN基本业务:
1、配置AP、AC和上层网络设备之间实现二层互通。
2、在AC上配置基于接口的DHCP服务器为STA和AP分配IP地址。
3、配置AC的系统参数,包括国家码、AC ID、运营商标识和AC与AP之间通信的源接口。
4、配置AP上线的认证方式,并把AP加入AP域中,实现AP正常工作。
5、配置VAP,下发WLAN业务,实现STA访问WLAN网络功能。
a、配置AP对应的WMM模板、射频模板,使用WMM模板和射频模板的默认配置,并在射频模板下绑定WMM模板,实现STA与AP之间的无线通信参数配置。
b、配置WLAN-ESS接口,实现报文到达AC后能够送至WLAN业务处理模块处理。
c、配置AP对应的安全模板、流量模板,使用安全模板和流量模板的缺省配置,配置服务集并在服务集下绑定WLAN-ESS接口、安全模板、流量模板,实现STA接入网络安全策略及QoS控制。
d、 配置VAP并下发,实现STA能够通过WLAN网络访问Internet。
操作步骤
1、配置AC,使AP与AC之间能够传输CAPWAP报文
# 配置AC,将接口GE0/0/1加入VLAN100(管理VLAN)。
说明:
本示例的业务数据转发方式采用隧道转发。如果用户的数据转发方式为直接转发,建议在AC连接AP的接口GE0/0/1上配置端口隔离,如果不配置端口隔离,可能会在VLAN内存在不必要的广播报文,或者导致不同AP间的WLAN用户二层互通的问题。隧道转发模式下,管理VLAN和业务VLAN不能配置为同一VLAN。
<AC6605> system-view [AC6605] sysname AC [AC] vlan batch 100 101 [AC] interface gigabitethernet 0/0/1 [AC-GigabitEthernet0/0/1] port link-type trunk [AC-GigabitEthernet0/0/1] port trunk pvid vlan 100 [AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 [AC-GigabitEthernet0/0/1] quit
2、配置AC与上层网络设备互通
说明:
根据实际组网情况在AC上行口配置业务VLAN透传,和上行网络设备互通。# 配置AC上行接口GE0/0/2加入VLAN101(业务VLAN)。
[AC] interface gigabitethernet 0/0/2 [AC-GigabitEthernet0/0/2] port link-type trunk [AC-GigabitEthernet0/0/2] port trunk allow-pass vlan 101 [AC-GigabitEthernet0/0/2] quit
3、配置AC作为DHCP服务器,为STA和AP分配IP地址
# 配置基于接口地址池的DHCP服务器,其中,VLANIF100接口为AP提供IP地址,VLANIF101为STA提供IP地址。
[AC] dhcp enable [AC] interface vlanif 100 [AC-Vlanif100] ip address 192.168.10.1 24 [AC-Vlanif100] dhcp select interface [AC-Vlanif100] quit [AC] interface vlanif 101 [AC-Vlanif101] ip address 192.168.11.1 24 [AC-Vlanif101] dhcp select interface [AC-Vlanif101] quit
4、配置AC的系统参数
# 配置AC的国家码。 [AC] wlan ac-global country-code cn Warning: Modify the country code may delete configuration on those AP which use the global country code and reset them, continue?[Y/N]:y # 配置AC ID和运营商标识。 [AC] wlan ac-global ac id 1 carrier id other Warning: Modify the carrier ID or AC ID may cause all of the AP offline, continu e?[Y/N]:y # 配置AC的源接口。 [AC] wlan [AC-wlan-view] wlan ac source interface vlanif 100
5、在AC上管理AP
使AP上线,如果在未认证的AP信息列表中可以快速添加AP
ap-config all
6、 配置AP域并将AP加入到AP域。
[AC-wlan-view] ap-region id 10 [AC-wlan-ap-region-10] quit [AC-wlan-view] ap id 0 [AC-wlan-ap-0] region-id 10 [AC-wlan-ap-0] quit
# 将AP上电后,可以查看到AP的“AP State”字段为“normal”。
7、配置WLAN业务参数
# 创建名为“wmm”的WMM模板。
[AC-wlan-view] wmm-profile name wmm id 1 [AC-wlan-wmm-prof-wmm] quit
# 创建名为“radio”的射频模板,绑定WMM模板“wmm”。
[AC-wlan-view] radio-profile name radio id 1 [AC-wlan-radio-prof-radio] wmm-profile name wmm [AC-wlan-radio-prof-radio] quit [AC-wlan-view] quit
# 创建WLAN-ESS接口1。
[AC] interface wlan-ess 1 [AC-Wlan-Ess1] port hybrid pvid vlan 101 [AC-Wlan-Ess1] port hybrid untagged vlan 101 [AC-Wlan-Ess1] quit
# 创建名为“security”的安全模板。
[AC] wlan [AC-wlan-view] security-profile name security id 1 [AC-wlan-sec-prof-security] quit
# 创建名为“traffic”的流量模板。
[AC-wlan-view] traffic-profile name traffic id 1 [AC-wlan-traffic-prof-traffic] quit
# 创建名为“test”的服务集并绑定WLAN-ESS接口、安全模板和流量模板。
[AC-wlan-view] service-set name test id 1 [AC-wlan-service-set-test] ssid test [AC-wlan-service-set-test] wlan-ess 1 [AC-wlan-service-set-test] security-profile name security [AC-wlan-service-set-test] traffic-profile name traffic [AC-wlan-service-set-test] service-vlan 101 [AC-wlan-service-set-test] forward-mode tunnel [AC-wlan-service-set-test] quit
8、验证配置结果
配置完成后,通过display vap ap 0 radio 0命令,可以查看到VAP已创建成功。
[AC-wlan-view] display vap ap 0 radio 0
All VAP Information(Total-1):
SS: Service-set BP: Bridge-profile MP: Mesh-profile
----------------------------------------------------------------------
AP ID Radio ID SS ID BP ID MP ID WLAN ID BSSID Type
0 0 1 - - 1 60DE-4476-E360 service
----------------------------------------------------------------------
Total: 1
STA搜索到名为“test”的无线网络并正常关联后,在AC上执行display station assoc-info命令,可以查看到用户已经接入到无线网络“test”中。
[AC-wlan-view] display station assoc-info ap 0 radio 0
------------------------------------------------------------------------------
STA MAC AP ID RADIO ID SS ID SSID
------------------------------------------------------------------------------
9021-55dc-3e17 0 0 1 test
------------------------------------------------------------------------------
Total stations: 1





