21-H3C无线控制器AC间二层漫游典型配置举例
本章节下载: 21-H3C无线控制器AC间二层漫游典型配置举例 (363.68 KB)
H3C无线控制器AC间二层漫游典型配置举例
Copyright © 2023 新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文档中的信息可能变动,恕不另行通知。
目 录
本文档介绍无线客户端AC间二层漫游的典型配置案例。
本文档适用于使用Comware软件版本的无线控制器和接入点产品,不严格与具体硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解WLAN接入和WLAN漫游的相关特性。
如图1所示,用户通过无线设备接入网络,满足移动办公需求。在无线覆盖区域内移动时,发生漫游且不影响业务使用。在AC直连二层组网环境下,AC 1作为DHCP服务器为AP和客户端分配IP地址。
图1 WLAN AC间二层漫游配置组网图
设备 |
接口 |
IP地址 |
设备 |
接口 |
IP地址 |
AC1 |
Vlan-int 100 |
192.168.100.1/24 |
AC2 |
Vlan-int 100 |
192.168.100.2/24 |
|
Vlan-int 101 |
192.168.101.1/24 |
|
Vlan-int 101 |
192.168.101.2/24 |
为了实现AC间漫游,需要在两台AC上创建相同名称的漫游组,并相互添加漫游组成员。配置使用RSN+PSK方式对客户端进行认证。
参与漫游的AP上绑定的无线服务模板的SSID、身份认证与密钥管理的模式和加密套件必须相同。
配置AP的序列号时请确保该序列号与AP唯一对应,AP的序列号可以通过AP设备背面的标签获取。
(1) 创建Vlan
# 创建VLAN 100。
<Switch1> system-view
[Switch1] vlan 100
[Switch1-vlan100] quit
(2) 配置Vlan接口
# 配置Switch 1到AP 1接口GigabitEthernet1/0/1的VLAN。
[Switch1] interface gigabitethernet1/0/1
[Switch1-GigabitEthernet1/0/1] port access vlan 100
# 配置Switch 1到AC 1的接口GigabitEthernet1/0/2为Trunk,允许VLAN 100通过。
[Switch1] interface gigabitethernet1/0/2
[Switch1-GigabitEthernet1/0/2] port link-type trunk
[Switch1-GigabitEthernet1/0/2] port trunk permit vlan 100
[Switch1-GigabitEthernet1/0/2] quit
(1) 创建VLAN
# 创建VLAN 100。
<Switch2> system-view
[Switch2] vlan 100
[Switch2-vlan100] quit
(2) 配置VLAN接口
# 配置Switch 2到AP 2接口GigabitEthernet1/0/1的VLAN。
[Switch2] interface gigabitethernet1/0/1
[Switch2-GigabitEthernet1/0/1] port access vlan 100
# 配置Switch 2到AC 2的接口GigabitEthernet1/0/2为Trunk,允许VLAN 100通过。
[Switch2] interface gigabitethernet1/0/2
[Switch2-GigabitEthernet1/0/2] port link-type trunk
[Switch2-GigabitEthernet1/0/2] port trunk permit vlan 100
[Switch2-GigabitEthernet1/0/2] quit
(1) 配置Vlan接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AP将获取该IP地址与AC建立CAPWAP隧道。
[AC1] vlan 100
[AC1-vlan100] quit
[AC1] interface vlan-interface 100
[AC1-Vlan-interface100] ip address 192.168.100.1 24
[AC1-Vlan-interface100] quit
# 创建VLAN 101及其对应的VLAN接口,并为该接口配置IP地址。客户端将获取该IP地址接入网络。
[AC1] vlan 101
[AC1-vlan101] quit
[AC1] interface vlan-interface 101
[AC1-Vlan-interface101] ip address 192.168.101.1 24
[AC1-Vlan-interface101] quit
# 配置AC 1到AC 2接口GigabitEthernet1/0/1为Trunk口,允许VLAN 100和VLAN 101通过。
[AC1] interface gigabitethernet1/0/1
[AC1-GigabitEthernet1/0/1] port link-type trunk
[AC1-GigabitEthernet1/0/1] port trunk permit vlan 100 101
[AC1-GigabitEthernet1/0/1] quit
# 配置AC 1到Switch 1的接口GigabitEthernet1/0/2为Trunk口,允许VLAN 100通过。
[AC1] interface gigabitethernet1/0/2
[AC1-GigabitEthernet1/0/2] port link-type trunk
[AC1-GigabitEthernet1/0/2] port trunk permit vlan 100
[AC1-GigabitEthernet1/0/2] quit
(2) 配置无线服务
# 创建无线服务模板service,配置SSID为1,配置业务VLAN 101,配置身份认证与密钥管理模式为PSK模式,配置PSK密钥为明文字符串12345678,配置加密套件为CCMP,安全信息元素为RSN,并使能服务模板。
[AC1] wlan service-template service
[AC1-wlan-st-service] ssid 1
[AC1-wlan-st-service] vlan 101
[AC1-wlan-st-service] akm mode psk
[AC1-wlan-st-service] preshared-key pass-phrase simple 12345678
[AC1-wlan-st-service] cipher-suite ccmp
[AC1-wlan-st-service] security-ie rsn
[AC1-wlan-st-service] service-template enable
[AC1-wlan-st-service] quit
(3) 配置AP
# 创建手工AP,名称为ap1,选择AP型号并配置序列号。
[AC1] wlan ap ap1 model WA6320
[AC1-wlan-ap-ap1] serial-id 219801A28N819CE0002T
# 创建AP组group1,并配置AP名称入组规则与AP型号入组规则,将无线服务模板绑定到ap1的Radio 1上,并开启Radio 1的射频功能
[AC1] wlan ap-group group1
[AC1-wlan-ap-group-group1] ap ap1
[AC1-wlan-ap-group-group1] ap-model WA6320
[AC1-wlan-ap-group-group1-ap-model-WA6320] radio 1
[AC1-wlan-ap-group-group1-ap-model-WA6320-radio-1] radio enable
[AC1-wlan-ap-group-group1-ap-model-WA6320-radio-1] service-template service
[AC1-wlan-ap-group-group1-ap-model-WA6320-radio-1] quit
[AC1-wlan-ap-group-group1-ap-model-WA6320] quit
[AC1-wlan-ap-group-group1] quit
(4) 配置漫游组
# 创建名称为office的漫游组,配置AC 1到AC 2隧道的源IPv4地址为192.168.100.1,漫游组成员IPv4地址为192.168.100.2,配置漫游组状态为开启。
[AC1] wlan mobility group office
[AC1-wlan-mg-office] source ip 192.168.100.1
[AC1-wlan-mg-office] member ip 192.168.100.2
[AC1-wlan-mg-office] group enable
[AC1-wlan-mg-office] quit
(5) 配置DHCP功能
# 开启DHCP server功能。
[AC1] dhcp enable
# 配置DHCP地址池vlan100为AP分配地址范围为192.168.100.0/24,网关地址为192.168.100.1。
[AC1] dhcp server ip-pool vlan100
[AC1-dhcp-pool-vlan100] network 192.168.100.0 mask 255.255.255.0
[AC1-dhcp-pool-vlan100] gateway-list 192.168.100.2
[AC1-dhcp-pool-vlan100] quit
# 配置DHCP地址池vlan101为客户端分配地址范围为192.168.101.0/24,网关地址为192.168.101.1,DNS服务器地址为8.8.8.8。
[AC1] dhcp server ip-pool vlan101
[AC1-dhcp-pool-vlan200] network 192.168.101.0 mask 255.255.255.0
[AC1-dhcp-pool-vlan200] gateway-list 192.168.101.2
[AC1-dhcp-pool-vlan100] dns list 8.8.8.8
[AC1-dhcp-pool-vlan200] quit
(1) 配置VLAN接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AP将获取该IP地址与AC建立CAPWAP隧道。
[AC2] vlan 100
[AC2-vlan100] quit
[AC2] interface vlan-interface 100
[AC2-Vlan-interface100] ip address 192.168.100.2 24
[AC2-Vlan-interface100] quit
# 创建VLAN 101及其对应的VLAN接口,并为该接口配置IP地址。客户端将获取该IP地址接入网络。
[AC2] vlan 101
[AC2-vlan101] quit
[AC2] interface vlan-interface 101
[AC2-Vlan-interface101] ip address 192.168.101.2 24
[AC2-Vlan-interface101] quit
# 配置AC 2到AC 1接口GigabitEthernet1/0/1为Trunk口,允许VLAN 100和VLAN 101通过。
[AC2] interface gigabitethernet1/0/1
[AC2-GigabitEthernet1/0/1] port link-type trunk
[AC2-GigabitEthernet1/0/1] port trunk permit vlan 100 101
[AC2-GigabitEthernet1/0/1] quit
# 配置AC 2到Switch 2接口GigabitEthernet1/0/2为Trunk口,允许VLAN 100。
[AC2] interface gigabitethernet1/0/2
[AC2-GigabitEthernet1/0/2] port link-type trunk
[AC2-GigabitEthernet1/0/2] port trunk permit vlan 100
[AC2-GigabitEthernet1/0/2] quit
(2) 配置无线服务
# 创建无线服务模板service,配置SSID为1,配置业务VLAN 101,配置身份认证与密钥管理模式为PSK模式,配置PSK密钥为明文字符串12345678,配置加密套件为CCMP,安全信息元素为RSN,并使能服务模板。
<AC2> system-view
[AC2] wlan service-template service
[AC2-wlan-st-service] ssid 1
[AC2-wlan-st-service] vlan 101
[AC2-wlan-st-service] akm mode psk
[AC2-wlan-st-service] preshared-key pass-phrase simple 12345678
[AC2-wlan-st-service] cipher-suite ccmp
[AC2-wlan-st-service] security-ie rsn
[AC2-wlan-st-service] service-template enable
[AC2-wlan-st-service] quit
(3) 配置AP
# 创建手工AP,名称为ap2,选择AP型号并配置序列号。
[AC2] wlan ap ap2 model WA6320
[AC2-wlan-ap-ap2] serial-id 219801A28N819CE0003T
# 创建AP组group2,并配置AP名称入组规则与AP型号入组规则,将无线服务模板绑定到ap2的Radio 1上,并开启Radio 1的射频功能
[AC2] wlan ap-group group2
[AC2-wlan-ap-group-group2] ap ap2
[AC2-wlan-ap-group-group2] ap-model WA6320
[AC2-wlan-ap-group-group2-ap-model-WA6320] radio 1
[AC2-wlan-ap-group-group2-ap-model-WA6320-radio-1] radio enable
[AC2-wlan-ap-group-group2-ap-model-WA6320-radio-1] service-template service
[AC2-wlan-ap-group-group2-ap-model-WA6320-radio-1] quit
[AC2-wlan-ap-group-group2-ap-model-WA6320] quit
[AC2-wlan-ap-group-group2] quit
(4) 配置漫游组
# 创建名称为office的漫游组,配置AC 2到AC 1隧道的源IPv4地址为192.168.100.2,漫游组成员IPv4地址为192.168.100.1,配置漫游组状态为开启。
[AC2] wlan mobility group office
[AC2-wlan-mg-office] source ip 192.168.100.2
[AC2-wlan-mg-office] member ip 192.168.100.1
[AC2-wlan-mg-office] group enable
[AC2-wlan-mg-office] qu
(1) 客户端在AP 1初次上线后,在AC 1上查看客户端的漫游信息。
# 通过display wlan client命令可以查看到客户端关联的AP为AP 1,漫游状态为初始上线。
[AC1] display wlan client verbose
Total number of clients: 1
MAC address : 9cd3-6d9e-6778
IPv4 address : 192.168.101.3
IPv6 address : N/A
Username : N/A
AID : 1
AP ID : 1
AP name : ap1
Radio ID : 1
Channel : 36
SSID : 1
BSSID : 000f-e200-4444
VLAN ID : 101
Sleep count : 242
Wireless mode : 802.11ac
Channel bandwidth : 80MHz
SM power save : Enabled
SM power save mode : Dynamic
Short GI for 20MHz : Supported
Short GI for 40MHz : Supported
Short GI for 80MHz : Supported
Short GI for 160/80+80MHz : Not supported
STBC RX capability : Not supported
STBC TX capability : Not supported
LDPC RX capability : Not supported
SU beamformee capability : Not supported
MU beamformee capability : Not supported
Beamformee STS capability : N/A
Block Ack : TID 0 In
Supported VHT-MCS set : NSS1 0, 1, 2, 3, 4, 5, 6, 7, 8
NSS2 0, 1, 2, 3, 4, 5, 6, 7, 8
Supported HT MCS set : 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20,
21, 22, 23
Supported rates : 6, 9, 12, 18, 24, 36,
48, 54 Mbps
QoS mode : WMM
Listen interval : 10
RSSI : 62
Rx/Tx rate : 130/11
Authentication method : Open system
Security mode : PRE-RSNA
AKM mode : Not configured
Cipher suite : N/A
User authentication mode : Bypass
Authorization ACL ID : N/A
Authorization user profile : N/A
Authorization CAR : N/A
Roam status : N/A
Key derivation : SHA1
PMF status : Enabled
Forward policy name : Not configured
Online time : 0days 0hours 1minutes 13seconds
FT status : Inactive
# 通过display wlan mobility roam-track mac-address可以查看到客户端的漫游跟踪信息。
(2) 客户端漫游到AP 2后,在AC 2上查看客户端的漫游信息。
# 通过display wlan client可以查看到客户端关联的AP变成AP 2,漫游状态为AC间漫游。
[AC2] display wlan client verbose
Total number of clients: 1
MAC address : 9cd3-6d9e-6778
IPv4 address : 192.168.101.4
IPv6 address : N/A
Username : N/A
AID : 1
AP ID : 1
AP name : ap2
Radio ID : 1
Channel : 36
SSID : 1
BSSID : 000f-e203-7777
VLAN ID : 101
Sleep count : 242
Wireless mode : 802.11ac
Channel bandwidth : 80MHz
SM power save : Enabled
SM power save mode : Dynamic
Short GI for 20MHz : Supported
Short GI for 40MHz : Supported
Short GI for 80MHz : Supported
Short GI for 160/80+80MHz : Not supported
STBC RX capability : Not supported
STBC TX capability : Not supported
LDPC RX capability : Not supported
SU beamformee capability : Not supported
MU beamformee capability : Not supported
Beamformee STS capability : N/A
Block Ack : TID 0 In
Supported VHT-MCS set : NSS1 0, 1, 2, 3, 4, 5, 6, 7, 8
NSS2 0, 1, 2, 3, 4, 5, 6, 7, 8
Supported HT MCS set : 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20,
21, 22, 23
Supported rates : 6, 9, 12, 18, 24, 36,
48, 54 Mbps
QoS mode : WMM
Listen interval : 10
RSSI : 62
Rx/Tx rate : 130/11
Authentication method : Open system
Security mode : PRE-RSNA
AKM mode : Not configured
Cipher suite : N/A
User authentication mode : Bypass
Authorization ACL ID : N/A
Authorization user profile : N/A
Authorization CAR : N/A
Roam status : N/A
Key derivation : SHA1
PMF status : Enabled
Forward policy name : Not configured
Online time : 0days 0hours 5minutes 13seconds
FT status : Inactive
# 通过display wlan mobility roam-track mac-address可以查看到漫游跟踪信息增添了客户端漫游到AP 2的漫游轨迹。
· Switch 1
#
vlan 100
#
interface gigabitethernet1/0/1
port access vlan 100
#
interface gigabitethernet1/0/2
port link-type trunk
port trunk permit vlan 100
#
· Switch 2
#
vlan 100
#
interface GigabitEthernet1/0/1
port access vlan 100
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk permit vlan 100
#
· AC1
#
vlan 100
#
interface vlan-interface 100
ip address 192.168.100.1 24
#
vlan 101
interface vlan-interface 101
ip address 192.168.101.1 24
#
interface gigabitethernet1/0/1
port link-type trunk
port trunk permit vlan 100 101
#
interface gigabitethernet1/0/2
port link-type trunk
port trunk permit vlan 100
#
wlan service-template service
ssid 1
vlan 101
akm mode psk
preshared-key pass-phrase simple 12345678
cipher-suite ccmp
security-ie rsn
service-template enable
#
wlan ap ap1 model WA6320
serial-id 219801A28N819CE0002T
#
wlan ap-group group1
ap ap1
ap-model WA6320
radio 1
radio enable
service-template service
#
wlan mobility group office
source ip 192.168.100.1
member ip 192.168.100.2
group enable
#
dhcp enable
#
dhcp server ip-pool vlan100
network 192.168.100.0 mask 255.255.255.0ap-model WA6320
gateway-list 192.168.100.2
#
dhcp server ip-pool vlan101
network 192.168.101.0 mask 255.255.255.0
gateway-list 192.168.101.2
dns list 8.8.8.8
#
· AC2
#
vlan 100
#
interface vlan-interface 100
ip address 192.168.100.2 24
#
vlan 101
interface vlan-interface 101
ip address 192.168.101.2 24
#
interface gigabitethernet1/0/1
port link-type trunk
port trunk permit vlan 100 101
#
interface gigabitethernet1/0/2
port link-type trunk
port trunk permit vlan 100
#
wlan service-template service
ssid 1
vlan 101
akm mode psk
preshared-key pass-phrase simple 12345678
cipher-suite ccmp
security-ie rsn
service-template enable
#
wlan ap ap1 model WA6320
serial-id 219801A28N819CE0003T
#
wlan ap-group group2
ap ap2
ap-model WA6320
radio 1
radio enable
service-template service
#
wlan mobility group office
source ip 192.168.100.2
member ip 192.168.100.1
group enable
#
dhcp enable
#
· 《H3C无线控制器产品 配置指导》中的“WLAN接入配置指导”。
· 《H3C无线控制器产品 命令参考》中的“WLAN接入命令参考”。
· 《H3C无线控制器产品 配置指导》中的“AP管理配置指导”。
· 《H3C无线控制器产品 命令参考》中的“AP管理命令参考”。
· 《H3C 无线控制器产品 配置指导》中的“用户接入与认证配置指导”。
· 《H3C 无线控制器产品 命令参考》中的“用户接入与认证命令参考”。
· 《H3C 无线控制器产品 配置指导》中的“WLAN漫游配置指导”。
· 《H3C 无线控制器产品 命令参考》中的“WLAN漫游命令参考”。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!