说明:
Load Balance是对同一AC上的AP之间进行负载均衡,有两种方式,一种是基于用户数量,另一种是基于AP的流量。当某台AC达到了负载均衡的条件,再有Client试图连接它时,就会拒绝请求,Client就会去连接另一台AP。当同一台AC上有多个AP为用户提供同样的服务时,为了避免某一个AP负载过重,就可以进行负载均衡。
基于流量的负载均衡的配置
http://www.elvhome.com/html/2013-10-21/2013102111474688626.html基于用户的负载均衡
如下图所示,Client 1、Client 2、Client 3和Client 4已经和AP1连接,Client 5试图和AP1连接。
配置AC
1. 配置信息
[AC]display current-configuration
#
version 5.20, Ess 2106P01
#
sysname AC
#
tcp window 3
#
domain default enable system
#
ipv6
#
telnet server enable
#
vlan 1
#
vlan 10
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 25
network 25.0.0.0 mask 255.0.0.0
#
dhcp server ip-pool 28
network 28.0.0.0 mask 255.0.0.0
#
wlan rrm
11a mandatory-rate 6 12 24
11a supported-rate 9 18 36 48 54
11b mandatory-rate 1 2
11b supported-rate 5.5 11
11g mandatory-rate 1 2 5.5 11
11g supported-rate 6 9 12 18 24 36 48 54
load-balance session 5
#
wlan service-template 1 clear
ssid h3c-clear
bind WLAN-ESS 1
authentication-method open-system
service-template enable
#
interface NULL0
#
interface Vlan-interface1
ip address 25.1.1.1 255.0.0.0
#
interface Vlan-interface10
ip address 28.1.1.1 255.0.0.0
#
interface M-GigabitEthernet2/0/1
#
interface Ten-GigabitEthernet2/0/1
port link-type hybrid
port hybrid vlan 1 to 10 tagged
#
interface WLAN-ESS1
port access vlan 10
#
wlan ap ap1 model WA2100
serial-id 210235A22W0079000238
radio 1 type 11g
channel 6
service-template 1
radio enable
#
wlan ap ap2 model WA2100
serial-id 210235A22W0079000239
radio 1 type 11g
channel 6
service-template 1
radio enable
#
dhcp enable
#
user-interface con 0
user-interface vty 0 4
#
return
2. 主要配置步骤
system-view
[AC]wlan rrm
[AC-wlan-rrm]load-balance session 5
3.4 验证结果
可通过以下方式验证上述配置:
》AP1上有4个用户,(基于用户的负载均衡,首先AP1的用户数须达到门限值(此处配置为5,现有4个,Client 5试图连接上,就达到门限值5),然后比AP2多4个(系统默认的差值),就会触发负载均衡。可以通过“display wlan client”命令查看。
》AP2上没有用户
》Client 5试图关联到AP1,测试AP1上的用户数已达到门限5,并比AP2多了4个,所以AP1拒绝Client 5的接入,Client 5最终关联到了AP2上。





