配置多射频基于用户数的负载均衡示例
适用的AC:AC6605、AC6005
适用的AP:所有形态的AP
适用的版本:V200R005C00
组网需求
如图1所示,AC下接入的AP域10需要同时部署2.4G和5G的WLAN网络,AP1为双频AP,加入到AP域10,且接入AP域10的STA同时支持2.4G和5G频段。
当大量客户端接入到AP的某一个射频(2.4G或者5G)上时,会造成AP负载过重,降低用户上网质量。企业希望通过配置多射频基于用户数的负载均衡,使用户平均的连接到AP的两个射频上,避免某一个射频负载过重。
图1 配置多射频基于用户数的负载均衡组网图
配置思路
采用如下的思路配置基于流量模式的动态负载均衡:
配置WLAN基本业务,保证用户能够通过WLAN网络接入Internet。
配置多射频基于用户数的负载均衡,使得STA均衡接入AP的两个射频,从而减轻AP负担。
操作步骤
1、配置AC,使AP与AC之间能够传输CAPWAP报文
# 配置AC,将接口GE0/0/1加入VLAN100(管理VLAN)。
<AC6605> system-view [AC6605] sysname AC [AC] vlan batch 100 [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上行接口GE0/0/3加入VLAN101。
[AC] vlan batch 101 [AC] interface gigabitethernet 0/0/3 [AC-GigabitEthernet0/0/3] port link-type trunk [AC-GigabitEthernet0/0/3] port trunk allow-pass vlan 101 [AC-GigabitEthernet0/0/3] quit
3、配置AC作为DHCP服务器,为STA和AP分配IP地址
# 配置基于接口地址池的DHCP服务器,其中,VLANIF100接口为AP1和AP2提供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
# 配置AC的源接口。
[AC] wlan[AC-wlan-view] wlan ac source interface vlanif 100
5、在AC上管理AP
# 现场获取AP的MAC地址后,查看AP的设备类型ID。
[AC-wlan-view] display ap-type all All AP types information:
# 根据查询到的AP设备类型ID,离线添加AP。假设AP的类型为AP6010DN-AGN,其MAC地址为60de-4476-e360。
说明:ap-auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap-auth-mode mac-auth。
# 配置AP域并将AP加入到AP域,并配置STA的射频接入模式为normal。
[AC-wlan-view] ap-region id 10 [AC-wlan-ap-region-10] quit [AC-wlan-view] ap id 1 [AC-wlan-ap-1] region-id 10 [AC-wlan-ap-1] access priority normal [AC-wlan-ap-1] quit
# 将AP1上电后,可以查看到AP1的“State”字段为“normal”。
[AC-wlan-view] display ap all All AP
6、配置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] 80211n guard-interval-mode short [AC-wlan-radio-prof-radio] channel-mode fixed [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
# 配置VAP。
[AC-wlan-view] ap 1 radio 0 [AC-wlan-radio-1/0] radio-profile name radio [AC-wlan-radio-1/0] channel 20mhz 1 [AC-wlan-radio-1/0] service-set name test [AC-wlan-radio-1/0] quit [AC-wlan-view] ap 1 radio 1 [AC-wlan-radio-1/1] radio-profile name radio [AC-wlan-radio-1/1] channel 40mhz-plus 157 [AC-wlan-radio-1/1] service-set name test [AC-wlan-radio-1/1] quit
# 提交配置。
[AC-wlan-view] commit ap 1 Warning: Committing configuration may cause service interruption,continue?[Y/N]y
7、配置多射频基于用户数的负载均衡功能并指接入用户数的门限为20。
[AC-wlan-view] ap id 1 [AC-wlan-ap-1] access balance-users gap 20 [AC-wlan-ap-1] quit[AC-wlan-view] commit ap 1 Warning: Committing configuration may cause service interruption,continue?[Y/N] y
8、验证配置结果
完成配置后,用户可以搜索到名称为test的无线网络。
在AC上执行display ap id 1命令,查看多射频基于用户数的负载均衡的配置信息。
<AC> display ap id 1
AP 1 detail information:
------------------------------------------------------------------------------
AP type ID: 30
AP type: AP5010DN-AGN
AP profile ID: 0
AP region ID: 0
Sysname: ap-1
Keep-Service: Disable
AP access balance-users gap: 20
AP access priority mode: Normal Access
State: fault
.......
新用户想连接到AP时,AP将统计各射频上接入用户数,以2.4G为例,如果2.4G射频接入的用户数–5G射频接入的用户数 > 20,则拒绝该户在2.4G射频上线,直到拒绝次数超过associate-threshold配置的最大关联次数。