• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

06-WLAN接入

目录

09-H3C无线控制器定时开关无线接入服务功能典型配置举例

本章节下载 09-H3C无线控制器定时开关无线接入服务功能典型配置举例  (257.41 KB)

09-H3C无线控制器定时开关无线接入服务功能典型配置举例

H3C无线控制器定时开关无线接入服务功能典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2023 新华三技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。



1  简介

本文档介绍定时开启、关闭无线接入服务功能的配置举例。

2  配置前提

本文档适用于使用Comware软件版本的无线控制器和接入点产品,不严格与具体软硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解DHCP、WLAN接入以及设备管理相关特性。

3  定时开关无线接入服务功能配置举例

3.1  组网需求

图1所示,集中式转发架构下,AC旁挂在L2 switch上,L3 switch作为DHCP server为AP、和Client分配IP地址。需要实现AP在指定的时间段为用户提供无线接入服务,其余时间段不提供无线接入服务,具体要求如下:

·     无线客户端Client通过VLAN 200接入无线网络。

·     AC和AP之间通过二层网络建立连接,二者在VLAN 100中交互报文。

·     L2 switch通过PoE方式给AP供电。

·     AP仅在每天早八点至当日晚八点提供无线接入服务。

图1 定时开关无线接入服务功能配置举例组网图

 

3.2  配置思路

·     在L3 switch上开启DHCP server功能,AP和无线客户端Client通过DHCP server自动获取IP地址。

·     在L2 switch上开启PoE功能,为AP设备供电。

·     配置两个计划任务,在每天指定的时间分别执行开启无线服务和关闭无线服务。

3.3  配置注意事项

配置AP的序列号时请确保该序列号与AP唯一对应。

3.4  配置步骤

3.4.1  配置L3 switch

1. 配置L3 switch的接口

# 创建VLAN 100,并配置IP地址,用于与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 200,并为该接口配置IP地址。Client使用该VLAN接入无线网络。

[L3 switch] vlan 200

[L3 switch-vlan200] quit

[L3 switch] interface vlan-interface 200

[L3 switch-Vlan-interface200] ip address 192.168.20.1 255.255.255.0

[L3 switch-Vlan-interface200] quit

# 配置L3 switch和L2 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100和VLAN 200通过。

[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 200

[L3 switch-GigabitEthernet1/0/1] quit

2. 配置DHCP server

(1)     开启DHCP server功能。

# 开启DHCP server功能。

[L3 switch] dhcp enable

(2)     配置DHCP地址池,为AP、无线客户端Client自动分配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分配地址范围为192.168.20.0/24,为Client分配的DNS服务器地址为网关地址(实际使用过程中请根据实际网络规划配置无线客户端的DNS服务器地址),网关地址为192.168.20.1。

[L3 switch] dhcp server ip-pool 2

[L3 switch-dhcp-pool-2] network 192.168.20.0 mask 255.255.255.0

[L3 switch-dhcp-pool-2] gateway-list 192.168.20.1

[L3 switch-dhcp-pool-2] dns-list 192.168.20.1

[L3 switch-dhcp-pool-2] quit

3.4.2  配置AC

(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 200,Client使用该VLAN接入无线网络。

[AC] vlan 200

[AC-vlan200] quit

# 配置AC和L2 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100和VLAN 200通过。

[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 200

[AC-GigabitEthernet1/0/1] quit

(2)     配置无线服务

# 创建无线服务模板1,并进入无线服务模板视图。

[AC] wlan service-template 1

# 配置SSID为service1。

[AC-wlan-st-1] ssid service1

# 配置身份认证与密钥管理模式为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

(3)     配置AP

说明

在大规模组网时,推荐在AP组内进行配置。

 

# 创建手工AP,名称为officeap,型号名称为WA6320。

[AC] wlan ap officeap model WA6320

# 设置AP的序列号为209801A28N819CE0002T。

[AC-wlan-ap-officeap] serial-id 209801A28N819CE0002T

[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 200。

[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 200

# 开启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

[AC-wlan-ap-group-group1-ap-model-WA6320] quit

[AC-wlan-ap-group-group1] quit

(4)     配置定时开启无线服务的计划任务

# 创建Job。

[AC] scheduler job officeap_service_enable

# 为Schedule分配Job。

[AC-job-officeap_service_enable] command 1 system-view

[AC-job-officeap_service_enable] command 2 wlan service-template 1

[AC-job-officeap_service_enable] command 3 service-template enable

[AC-job-officeap_service_enable] command 4 quit

[AC-job-officeap_service_enable] quit

# 创建Schedule。

[AC] scheduler schedule officeap_service_enable

[AC-schedule-officeap_service_enable] job officeap_service_enable

[AC-schedule-officeap_service_enable] time repeating at 08:00

[AC-schedule-officeap_service_enable] quit

(5)     配置定时关闭无线服务的计划任务

# 创建Job。

[AC] scheduler job officeap_service_disable

# 为Schedule分配Job。

[AC-job-officeap_service_disable] command 1 system-view

[AC-job-officeap_service_disable] command 2 wlan service-template 1

[AC-job-officeap_service_disable] command 3 undo service-template enable

[AC-job-officeap_service_disable] command 4 quit

[AC-job-officeap_service_disable] quit

# 创建Schedule。

[AC] scheduler schedule officeap_service_disable

[AC-schedule-officeap_service_disable] job officeap_service_disable

[AC-schedule-officeap_service_disable] time repeating at 20:00

[AC-schedule-officeap_service_disable] quit

[AC] quit

3.4.3  配置L2 switch

# 创建VLAN 100和VLAN 200,其中VLAN 100用于转发AC与其它设备之间的流量,VLAN 200为Client接入的VLAN。

<L2 switch> system-view

[L2 switch] vlan 100

[L2 switch-vlan100] quit

[L2 switch] vlan 200

[L2 switch-vlan200] quit

# 配置L2 switch和AC相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100和VLAN 200通过。

[L2 switch] interface gigabitEthernet 1/0/1

[L2 switch-GigabitEthernet1/0/1] port link-type trunk

[L2 switch-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[L2 switch-GigabitEthernet1/0/1] port trunk permit vlan 100 200

[L2 switch-GigabitEthernet1/0/1] quit

# 配置L2 switch和AP相连的接口GigabitEthernet1/0/2为Access类型,允许VLAN 100通过,并开启PoE远程供电功能。

[L2 switch] interfac gigabitEthernet 1/0/2

[L2 switch-GigabitEthernet1/0/2] port link-type access

[L2 switch-GigabitEthernet1/0/2] port access vlan 100

[L2 switch-GigabitEthernet1/0/2] poe enable

[L2 switch-GigabitEthernet1/0/2] quit

# 配置L2 switch与L3 switch相连的接口GigabitEthernet1/0/3为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100和VLAN 200通过。

[L2 switch] interface gigabitEthernet 1/0/3

[L2 switch-GigabitEthernet1/0/3] port link-type trunk

[L2 switch-GigabitEthernet1/0/3] undo port trunk permit vlan 1

[L2 switch-GigabitEthernet1/0/3] port trunk permit vlan 100 200

[L2 switch-GigabitEthernet1/0/3] quit

3.5  验证配置

(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            209801A28N819CE0002T

(2)     在AC上查看无线服务模板状态以及在线终端的信息

# 为终端提供无线服务的时间段内,管理员在AC上使用命令display wlan service-template查看无线服务模板当前的状态,可以看到无线服务模板处于开启状态。

<AC> display wlan service-template 1

Service template name           SSID                                    Status

1                                   service1                               Enabled

# 为终端提供无线服务的时间段内,管理员在AC上使用命令display wlan client查看在线终端,可以看到终端已经连接到AP的Radio 1。

<AC> display wlan client

Total number of clients: 1

 

MAC address    User name            AP name               R IP address      VLAN

109a-dd9d-fc68 N/A                  officeap              1 192.168.20.2    200

 

# 不为终端提供无线服务的时间段内,管理员在AC上使用命令display wlan service-template查看无线服务模板当前的状态,可以看到无线服务模板处于关闭状态。

<AC> display wlan service-template 1

Service template name           SSID                                    Status

1                                   service1                               Disabled

# 不为终端提供无线服务的时间段内,管理员在AC上使用命令display wlan client查看在线终端,可以看到没有任何终端在线,因为无线服务模板1已经处于关闭状态,终端无法接入无线网络。

<AC> display wlan client

<AC>

3.6  配置文件

·     L3 switch

#

 dhcp enable

#

vlan 1

#

vlan 100

#

vlan 200

#

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.20.1

 network 192.168.20.0 mask 255.255.255.0

 dns-list 192.168.20.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 GigabitEthernet1/0/1

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 100 200

#

·     AC

#

vlan 100

#

vlan 200

#

wlan service-template 1

 ssid service1

 client forwarding-location ac

akm mode psk                                                                  

 preshared-key pass-phrase cipher $c$3$oLf6pOZ6bxrf25nodjOJKYEfnZ6g6ErccHyQ    

 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 200

#

scheduler job officeap_service_disable

 command 1 system-view

 command 2 wlan service-template 1

 command 3 undo service-template enable

 command 4 quit

#

scheduler job officeap_service_enable

 command 1 system-view

 command 2 wlan service-template 1

 command 3 service-template enable

 command 4 quit

#

scheduler schedule officeap_service_disable

 user-role network-operator

 user-role network-admin

 job officeap_service_disable

 time repeating at 20:00

#

scheduler schedule officeap_service_enable

 user-role network-operator

 user-role network-admin

 job officeap_service_enable

 time repeating at 08:00

#                                                                               

wlan ap-group group1                                                           

 ap officeap                                                                        

 ap-model WA6320                                                                

  radio 1                                                                      

   radio enable                                                                

   service-template 1 vlan 200                                           

  radio 2                                                                      

#

wlan ap officeap model WA6320

 serial-id 209801A28N819CE0002T

#

·     L2 switch

#

vlan 100

#

vlan 200

#

interface GigabitEthernet1/0/1

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 100 200

#

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 200

#

4  相关资料

·     《H3C无线控制器产品 配置指导》中的“WLAN接入配置指导”。

·     《H3C无线控制器产品 命令参考》中的“WLAN接入命令参考”。

·     《H3C无线控制器产品 配置指导》中的“AP管理配置指导”。

·     《H3C无线控制器产品 命令参考》中的“AP管理命令参考”。

·     《H3C无线控制器产品 配置指导》中的“网络互通配置指导”。

·     《H3C无线控制器产品 命令参考》中的“网络互通命令参考”。

 

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们