08-H3C无线控制器不同SSID无线服务绑定不同频段射频典型配置举例
本章节下载: 08-H3C无线控制器不同SSID无线服务绑定不同频段射频典型配置举例 (274.12 KB)
H3C无线控制器不同SSID无线服务绑定不同频段射频典型配置举例
Copyright © 2023 新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文档中的信息可能变动,恕不另行通知。
目 录
本文档介绍不同SSID的无线服务绑定到不同频段射频的配置举例。
本文档适用于使用Comware软件版本的无线控制器和接入点产品,不严格与具体软硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解DHCP、WLAN接入相关特性。
如图1所示,集中式转发架构下,AC旁挂在L2 switch1上,L3 switch作为DHCP server为AP、Client和Host分配IP地址。需要实现无线客户端Client通过AP连接到AC上,并能与有线客户端Host互相访问,具体要求如下:
· 无线客户端Client 1通过VLAN 201接入SSID为service1的无线网络,无线客户端Client 2通过VLAN 202接入SSID为service2的无线网络,有线客户端Host通过VLAN 300接入网络。
· AC和AP之间通过二层网络建立连接,二者在VLAN 100中交互报文。
· L2 switch 1通过PoE方式给AP供电。
图1 不同SSID的无线服务绑定到不同频段射频配置举例组网图
· 在L3 switch上开启DHCP server功能,AP、无线客户端Client和有线客户端Host都能通过DHCP server自动获取IP地址。
· 在L2 switch 1上开启PoE功能,为AP设备供电。
· 在AC上配置不同SSID的无线服务,确保Client可以通过配置的无线服务接入不同的无线网络,并访问Host。
配置AP的序列号时请确保该序列号与AP唯一对应。
# 创建VLAN 100,并配置IP地址。该VLAN用于与AC交互报文。
<L3 switch> system-view
[L3 switch] vlan 100
[L3 switch-vlan100] quit
[L3 switch] interface vlan-interface 100
[L3 switch-Vlan-interface100] ip address 192.168.10.1 255.255.255.0
[L3 switch-Vlan-interface100] quit
# 创建VLAN 201,并为该接口配置IP地址。Client 1使用该VLAN接入无线网络。
[L3 switch] vlan 201
[L3 switch-vlan201] quit
[L3 switch] interface vlan-interface 201
[L3 switch-Vlan-interface201] ip address 192.168.21.1 255.255.255.0
[L3 switch-Vlan-interface201] quit
# 创建VLAN 202,并为该接口配置IP地址。Client 2使用该VLAN接入无线网络。
[L3 switch] vlan 202
[L3 switch-vlan202] quit
[L3 switch] interface vlan-interface 202
[L3 switch-Vlan-interface202] ip address 192.168.22.1 255.255.255.0
[L3 switch-Vlan-interface202] quit
# 创建VLAN 300,并为该接口配置IP地址。该VLAN为Host接入的VLAN。
[L3 switch] vlan 300
[L3 switch-vlan300] quit
[L3 switch] interface vlan-interface 300
[L3 switch-Vlan-interface300] ip address 192.168.30.1 255.255.255.0
[L3 switch-Vlan-interface300] quit
# 配置L3 switch和L2 switch1相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100、VLAN 201和VLAN 202通过。
[L3 switch] interface gigabitEthernet 1/0/1
[L3 switch-GigabitEthernet1/0/1] port link-type trunk
[L3 switch-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[L3 switch-GigabitEthernet1/0/1] port trunk permit vlan 100 201 202
[L3 switch-GigabitEthernet1/0/1] quit
# 配置L3 switch和L2 switch2相连的接口GigabitEthernet1/0/3为Trunk类型,禁止VLAN 1报文通过,允许VLAN 300通过。
[L3 switch] interfac gigabitEthernet 1/0/3
[L3 switch-GigabitEthernet1/0/3] port link-type trunk
[L3 switch-GigabitEthernet1/0/3] undo port trunk permit vlan 1
[L3 switch-GigabitEthernet1/0/3] port trunk permit vlan 300
[L3 switch-GigabitEthernet1/0/3] quit
(1) 开启DHCP server功能。
# 开启DHCP server功能。
[L3 switch] dhcp enable
(2) 配置DHCP地址池,为AP、无线客户端Client和有线客户端Host自动分配IP地址。
# 配置DHCP地址池1为AP分配地址范围为192.168.10.0/24,网关地址为192.168.10.1。
[L3 switch] dhcp server ip-pool 1
[L3 switch-dhcp-pool-1] network 192.168.10.0 mask 255.255.255.0
[L3 switch-dhcp-pool-1] gateway-list 192.168.10.1
# 配置DHCP地址池1中不参与自动分配的IP地址为AC的VLAN100的IP地址192.168.10.2。
[L3 switch-dhcp-pool-1] forbidden-ip 192.168.10.2
[L3 switch-dhcp-pool-1] quit
# 配置DHCP地址池2为Client 1分配地址范围为192.168.21.0/24,为Client 1分配的DNS服务器地址为网关地址(实际使用过程中请根据实际网络规划配置无线客户端的DNS服务器地址),网关地址为192.168.21.1。
[L3 switch] dhcp server ip-pool 2
[L3 switch-dhcp-pool-2] network 192.168.21.0 mask 255.255.255.0
[L3 switch-dhcp-pool-2] gateway-list 192.168.21.1
[L3 switch-dhcp-pool-2] dns-list 192.168.21.1
[L3 switch-dhcp-pool-2] quit
# 配置DHCP地址池3为Client 2分配地址范围为192.168.22.0/24,为Client 2分配的DNS服务器地址为网关地址(实际使用过程中请根据实际网络规划配置无线客户端的DNS服务器地址),网关地址为192.168.22.1。
[L3 switch] dhcp server ip-pool 3
[L3 switch-dhcp-pool-3] network 192.168.22.0 mask 255.255.255.0
[L3 switch-dhcp-pool-3] gateway-list 192.168.22.1
[L3 switch-dhcp-pool-3] dns-list 192.168.22.1
[L3 switch-dhcp-pool-3] quit
# 配置DHCP地址池4为Host分配地址范围为192.168.30.0/24,为Host分配的DNS服务器地址为网关地址(实际使用过程中请根据实际网络规划配置无线客户端的DNS服务器地址),网关地址为192.168.30.1。
[L3 switch] dhcp server ip-pool 4
[L3 switch-dhcp-pool-4] network 192.168.30.0 mask 255.255.255.0
[L3 switch-dhcp-pool-4] gateway-list 192.168.30.1
[L3 switch-dhcp-pool-4] dns-list 192.168.30.1
[L3 switch-dhcp-pool-4] quit
(1) 配置AC的接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AP将获取该网段的IP地址与AC建立CAPWAP隧道。
<AC> system-view
[AC] vlan 100
[AC-vlan100] quit
[AC] interface vlan-interface 100
[AC-Vlan-interface100] ip address 192.168.10.2 255.255.255.0
[AC-Vlan-interface100] quit
# 创建VLAN 201,Client 1使用该VLAN接入无线网络。
[AC] vlan 201
[AC-vlan201] quit
# 创建VLAN 202,Client 2使用该VLAN接入无线网络。
[AC] vlan 202
[AC-vlan202] quit
# 配置AC和L2 switch 1相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100、VLAN 201和VLAN 202通过。
[AC] interface gigabitethernet 1/0/1
[AC-GigabitEthernet1/0/1] port link-type trunk
[AC-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[AC-GigabitEthernet1/0/1] port trunk permit vlan 100 201 202
[AC-GigabitEthernet1/0/1] quit
(2) 配置无线服务
# 创建无线服务模板1,并进入无线服务模板视图。
[AC] wlan service-template 1
# 配置SSID为service1。
[AC-wlan-st-1] ssid service1
# 配置无线服务模板1的身份认证与密钥管理模式为PSK模式,PSK密钥为明文字符串12345678。
[AC-wlan-st-1] akm mode psk
[AC-wlan-st-1] preshared-key pass-phrase simple 12345678
# 配置加密套件为CCMP,安全信息元素为RSN。
[AC-wlan-st-1] cipher-suite ccmp
[AC-wlan-st-1] security-ie rsn
# 配置客户端数据报文转发位置为AC。(如果客户端数据报文的缺省转发位置与本配置相同,请跳过此步骤)
[AC-wlan-st-1] client forwarding-location ac
# 使能无线服务模板1。
[AC-wlan-st-1] service-template enable
[AC-wlan-st-1] quit
# 创建无线服务模板2,并进入无线服务模板视图。
[AC] wlan service-template 2
# 配置SSID为service2。
[AC-wlan-st-2] ssid service2
# 配置无线服务模板2的身份认证与密钥管理模式为PSK模式,PSK密钥为明文字符串abcdefg。
[AC-wlan-st-2] akm mode psk
[AC-wlan-st-2] preshared-key pass-phrase simple abcdefgh
# 配置加密套件为CCMP,安全信息元素为RSN。
[AC-wlan-st-2] cipher-suite ccmp
[AC-wlan-st-2] security-ie rsn
# 配置客户端数据报文转发位置为AC。(如果客户端数据报文的缺省转发位置与本配置相同,请跳过此步骤)
[AC-wlan-st-2] client forwarding-location ac
# 使能无线服务模板2。
[AC-wlan-st-2] service-template enable
[AC-wlan-st-2] quit
(3) 配置AP
在大规模组网时,推荐在AP组内进行配置。
# 创建手工AP,名称为officeap,型号名称为WA6320(该AP型号的Radio 1为5GHz频段射频,Radio 2为2.4GHz频段射频)。
[AC] wlan ap officeap model WA6320
# 设置AP的序列号为219801A28N819CE0002T。
[AC-wlan-ap-officeap] serial-id 219801A28N819CE0002T
[AC-wlan-ap-officeap] quit
# 创建AP组group1,并配置AP名称入组规则。
[AC] wlan ap-group group1
[AC-wlan-ap-group-group1] ap officeap
# 将无线服务模板1绑定到AP组group1下的Radio 1上,同时指定客户端上线的VLAN为VLAN 201。
[AC-wlan-ap-group-group1] ap-model WA6320
[AC-wlan-ap-group-group1-ap-model-WA6320] radio 1
[AC-wlan-ap-group-group1-ap-model-WA6320-radio-1] service-template 1 vlan 201
# 开启Radio 1的射频功能。
[AC-wlan-ap-group-group1-ap-model-WA6320-radio-1] radio enable
[AC-wlan-ap-group-group1-ap-model-WA6320-radio-1] quit
# 将无线服务模板2绑定到AP组group1下的Radio 2上,同时指定客户端上线的VLAN为VLAN 202。
[AC-wlan-ap-group-group1-ap-model-WA6320] radio 2
[AC-wlan-ap-group-group1-ap-model-WA6320-radio-2] service-template 2 vlan 202
# 开启Radio2的射频功能。
[AC-wlan-ap-group-group1-ap-model-WA6320-radio-2] radio enable
[AC-wlan-ap-group-group1-ap-model-WA6320-radio-2] quit
[AC-wlan-ap-group-group1-ap-model-WA6320] quit
[AC-wlan-ap-group-group1] quit
# 创建VLAN 100、VLAN 201和VLAN 202,其中VLAN 100用于转发AC与其它设备之间的流量,VLAN 201为Client 1接入的VLAN,VLAN 202为Client 2接入的VLAN。
<L2 switch 1> system-view
[L2 switch 1] vlan 100
[L2 switch 1-vlan100] quit
[L2 switch 1] vlan 201
[L2 switch 1-vlan201] quit
[L2 switch 1] vlan 202
[L2 switch 1-vlan202] quit
# 配置L2 switch 1和AC相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100、VLAN 201和VLAN 202通过。
[L2 switch 1] interface gigabitEthernet 1/0/1
[L2 switch 1-GigabitEthernet1/0/1] port link-type trunk
[L2 switch 1-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[L2 switch 1-GigabitEthernet1/0/1] port trunk permit vlan 100 201 202
[L2 switch 1-GigabitEthernet1/0/1] quit
# 配置L2 switch 1和AP相连的接口GigabitEthernet1/0/2为Access类型,允许VLAN 100通过,并开启PoE远程供电功能。
[L2 switch 1] interfac gigabitEthernet 1/0/2
[L2 switch 1-GigabitEthernet1/0/2] port link-type access
[L2 switch 1-GigabitEthernet1/0/2] port access vlan 100
[L2 switch 1-GigabitEthernet1/0/2] poe enable
[L2 switch 1-GigabitEthernet1/0/2] quit
# 配置L2 switch 1与L3 switch相连的接口GigabitEthernet1/0/3为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100、VLAN 201和VLAN 202通过。
[L2 switch 1] interface gigabitEthernet 1/0/3
[L2 switch 1-GigabitEthernet1/0/3] port link-type trunk
[L2 switch 1-GigabitEthernet1/0/3] undo port trunk permit vlan 1
[L2 switch 1-GigabitEthernet1/0/3] port trunk permit vlan 100 201 202
[L2 switch 1-GigabitEthernet1/0/3] quit
# 创建VLAN 300,VLAN 300为Host接入的VLAN。
<L2 switch 2> system-view
[L2 switch 2] vlan 300
[L2 switch 2-vlan300] quit
# 配置L2 switch 2与L3 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 300通过。
[L2 switch 2] interface gigabitEthernet 1/0/1
[L2 switch 2-GigabitEthernet1/0/1] port link-type trunk
[L2 switch 2-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[L2 switch 2-GigabitEthernet1/0/1] port trunk permit vlan 300
[L2 switch 2-GigabitEthernet1/0/1] quit
# 配置L2 switch 2与Host相连的接口GigabitEthernet1/0/2为Access类型,允许VLAN 300通过
[L2 switch 2] interface gigabitEthernet 1/0/2
[L2 switch 2-GigabitEthernet1/0/2] port link-type access
[L2 switch 2-GigabitEthernet1/0/2] port access vlan 300
[L2 switch 2-GigabitEthernet1/0/2] quit
(1) 在AC上查看AP注册信息
# 在AC上使用命令display wlan ap all查看AP,可以看到AP的状态是R/M,表明AP已经成功注册到AC。
<AC> display wlan ap all
Total number of APs: 1
Total number of connected APs: 1
Total number of connected manual APs: 1
Total number of connected auto APs: 0
Total number of connected common APs: 1
Total number of connected WTUs: 0
Total number of inside APs: 0
Maximum supported APs: 3072
Remaining APs: 3071
Total AP licenses: 512
Local AP licenses: 512
Server AP licenses: 0
Remaining local AP licenses: 511
Sync AP licenses: 0
AP information
State : I = Idle, J = Join, JA = JoinAck, IL = ImageLoad
C = Config, DC = DataCheck, R = Run, M = Master, B = Backup
AP name APID State Model Serial ID
officeap 1 R/M WA6320 219801A28N819CE0002T
(2) 在AC上查看Client信息
# 在AC上使用命令display wlan client查看在线Client,可以看到Client 1已经连接到AP的Radio 1,Client 2已经连接到AP的Radio 2。
<AC> display wlan client
Total number of clients: 2
MAC address User name AP name R IP address VLAN
109a-dd9d-fc68 N/A officeap 1 192.168.21.2 201
109a-dd9d-fc69 N/A officeap 2 192.168.22.2 202
(3) Host与Client 1可以相互ping通
# Client 1通过DHCP server获取到IP地址192.168.21.2,在Host上ping Client 1的IP地址可以ping通。同理,在Client 1上ping Host的IP地址也能ping通,不再赘述。
C:\Users\system32>ping 192.168.21.2 -t
Pinging 192.168.21.2 with 32 bytes of data:
Reply from 192.168.21.2: bytes=32 time=8ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Reply from 192.168.21.2: bytes=32 time<1ms TTL=255
Ping statistics for 192.168.21.2:
Packets: Sent = 11, Received = 11, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 8ms, Average = 0ms
Control-C
^C
C:\Users\system32>
· L3 switch
#
dhcp enable
#
vlan 1
#
vlan 100
#
vlan 201
#
vlan 202
#
vlan 300
#
dhcp server ip-pool 1
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
forbidden-ip 192.168.10.2
#
dhcp server ip-pool 2
gateway-list 192.168.21.1
network 192.168.21.0 mask 255.255.255.0
dns-list 192.168.21.1
#
dhcp server ip-pool 3
gateway-list 192.168.22.1
network 192.168.22.0 mask 255.255.255.0
dns-list 192.168.22.1
#
dhcp server ip-pool 4
gateway-list 192.168.30.1
network 192.168.30.0 mask 255.255.255.0
dns-list 192.168.30.1
#
interface Vlan-interface100
ip address 192.168.10.1 255.255.255.0
#
interface Vlan-interface200
ip address 192.168.20.1 255.255.255.0
#
interface Vlan-interface300
ip address 192.168.30.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 201 202
#
interface GigabitEthernet1/0/3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 300
#
· AC
#
vlan 100
#
vlan 201
#
vlan 202
#
wlan service-template 1
ssid service1
client forwarding-location ac
akm mode psk
preshared-key pass-phrase cipher $c$3$EGdeMZ4taNF5ifpRCaOKOoDAjSMh+WKIhH3+
cipher-suite ccmp
security-ie rsn
service-template enable
#
wlan service-template 2
ssid service2
client forwarding-location ac
akm mode psk
preshared-key pass-phrase cipher $c$3$s/vZYild4fsFquikaZVkEJGR5qdDX/50oME5
cipher-suite ccmp
security-ie rsn
service-template enable
#
interface Vlan-interface1
#
interface Vlan-interface100
ip address 192.168.10.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 201 202
#
wlan ap-group group1
vlan 1
ap officeap
ap-model WA6320
radio 1
radio enable
service-template 1 vlan 201
radio 2
radio enable
service-template 2 vlan 202
gigabitethernet 1
#
wlan ap officeap model WA6320
serial-id 219801A28N819CE0002T
#
· L2 switch 1
#
vlan 100
#
vlan 201
#
vlan 202
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 201 202
#
interface GigabitEthernet1/0/2
port link-type access
port access vlan 100
poe enable
#
interface GigabitEthernet1/0/3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 201 202
#
· L2 switch 2
#
vlan 300
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 300
#
interface GigabitEthernet1/0/2
port link-type access
port access vlan 300
poe enable
#
· 《H3C无线控制器产品 配置指导》中的“WLAN接入配置指导”。
· 《H3C无线控制器产品 命令参考》中的“WLAN接入命令参考”。
· 《H3C无线控制器产品 配置指导》中的“AP管理配置指导”。
· 《H3C无线控制器产品 命令参考》中的“AP管理命令参考”。
· 《H3C无线控制器产品 配置指导》中的“网络互通配置指导”。
· 《H3C无线控制器产品 命令参考》中的“网络互通命令参考”。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!