• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

06-WLAN接入

目錄

09-H3C無線控製器定時開關無線接入服務功能典型配置舉例

本章節下載 09-H3C無線控製器定時開關無線接入服務功能典型配置舉例  (257.42 KB)

09-H3C無線控製器定時開關無線接入服務功能典型配置舉例

H3C無線控製器定時開關無線接入服務功能典型配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2023 bobty下载软件 版權所有,保留一切權利。

非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。

除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。

本文檔中的信息可能變動,恕不另行通知。



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保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們