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

H3C无线控制器典型配置案例集(V5)-6W114

目录

17-H3C无线控制器IPv6三层注册典型配置举例(V5)

本章节下载 17-H3C无线控制器IPv6三层注册典型配置举例(V5)  (220.07 KB)

17-H3C无线控制器IPv6三层注册典型配置举例(V5)

H3C 无线控制器IPv6三层注册典型配置举例(V5)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

资料版本:6W114-20210416

 

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

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

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

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



1  简介

本文档介绍AP与AC间通过三层网络完成注册的配置举例。

2  配置前提

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

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

本文档假设您已了解IPv6基础与WLAN接入相关特性。

3  IPv6三层网络注册配置举例

3.1  组网需求

图1所示,集中式转发架构下,无线客户端Client、有线客户端Host通过L3 switch与AC相连,L3 switch做DHCPv6 server为AP、Client和Host分配IPv6地址。需要实现无线客户端Client通过AP连接到AC上,并能与有线客户端Host互相访问,具体要求如下:

·     无线客户端Client通过VLAN 200接入网络,有线客户端Host通过VLAN 300接入网络;

·     AC属于VLAN 100,AP属于VLAN 400,AC和AP之间跨三层网络建立连接。

图1 Fit AP通过三层网络注册到AC配置举例组网图

 

3.2  配置思路

·     在L3 switch上配置DHCPv6 server服务,使AP、无线客户端Client和有线客户端Host都能通过DHCPv6 server自动获取IPv6地址。

·     在L3 switch和AC上配置到达对端网段的静态路由。

·     在AC上配置无线服务,确保Client可以通过配置的无线服务接入网络,并访问Host。

3.3  配置注意事项

·     配置AP的序列号时请确保该序列号与AP唯一对应,AP的序列号可以通过AP设备背面的标签获取。

·     配置L3 switch和AP相连的接口禁止VLAN 1报文通过,以防止VLAN 1内报文过多。

3.4  配置步骤

3.4.1  配置AC

(1)     配置AC的接口

# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IPv6地址。AC将使用该接口的IPv6地址与AP建立LWAPP隧道。

<AC> system-view

[AC] vlan 100

[AC-vlan100] quit

[AC] interface vlan-interface100

[AC-Vlan-interface100] ipv6 address 1::1:0:0:1/96

[AC-Vlan-interface100] quit

# 创建VLAN 101作为WLAN-ESS接口的缺省VLAN。

[AC] vlan 101

[AC-vlan101] quit

# 创建VLAN 200,AC需要使用该VLAN转发无线客户端数据报文。

[AC] vlan 200

[AC-vlan200] quit

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

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

[AC-GigabitEthernet1/0/1] quit

(2)     配置三层路由

# 配置AC到1::2:0:0:0网段的静态路由,指定下一跳的IP地址为1::1:0:0:2。

[AC] ipv6 route-static 1::4:0:0:0 96 1::1:0:0:2

(3)     配置WLAN-ESS接口

# 创建WLAN-ESS1接口。

[AC] interface wlan-ess 1

# 配置WLAN-ESS1接口类型为Hybrid类型。

[AC-WLAN-ESS1] port link-type hybrid

# 配置当前Hybrid端口的PVID为VLAN 101,禁止VLAN 1通过并且允许VLAN 100、VLAN 200和VLAN 400不带tag通过。

[AC-WLAN-ESS1] undo port hybrid vlan 1

[AC-WLAN-ESS1] port hybrid vlan 100 200 400 untagged

[AC-WLAN-ESS1] port hybrid pvid vlan 101

# 使能MAC VLAN功能。

[AC-WLAN-ESS1] mac-vlan enable

[AC-WLAN-ESS1] quit

(4)     配置无线服务

# 创建clear类型的服务模板1,并进入服务模板视图。

[AC] wlan service-template 1 clear

# 配置SSID为service。

[AC-wlan-st-1] ssid service

# 将WLAN-ESS1接口绑定到服务模板1。

[AC-wlan-st-1] bind wlan-ess 1

# 启用服务模板。

[AC-wlan-st-1] service-template enable

[AC-wlan-st-1] quit

(5)     配置射频接口并绑定服务模板

# 创建AP的管理模板,名称为officeap,型号名称为WA2620E-AGN。

[AC] wlan ap officeap model WA2620E-AGN

# 设置officeap的序列号为21023529G007C000020。

[AC-wlan-ap-officeap] serial-id 21023529G007C000020

# 进入AP的Radio 1视图,并将服务模板1与射频Radio 1关联,同时设置绑定到该射频的VLANVLAN 200

[AC-wlan-ap-officeap] radio 1

[AC-wlan-ap-officeap-radio-1] service-template 1 vlan-id 200

# 使能officeap的Radio 1。

[AC-wlan-ap-officeap-radio-1] radio enable

[AC-wlan-ap-officeap-radio-1] return

3.4.2  配置L3 switch

(1)     配置L3 switch的接口

# 创建VLAN 400和VLAN 100,并配置IPv6地址,用于转发AC和AP间的LWAPP隧道内的流量。

<L3 switch> system-view

[L3 switch] vlan 100

[L3 switch-vlan100] quit

[L3 switch] interface vlan-interface 100

[L3 switch-Vlan-interface100] ipv6 address 1::1:0:0:2/96

[L3 switch-Vlan-interface100] quit

[L3 switch] vlan 400

[L3 switch-vlan400] quit

[L3 switch] interface vlan-interface 400

[L3 switch-Vlan-interface400] ipv6 address 1::4:0:0:1/96

[L3 switch-Vlan-interface400] quit

# 创建VLAN 200,并为该接口配置IPv6地址。Client使用该VLAN接入无线网络。

[L3 switch] vlan 200

[L3 switch-vlan200] quit

[L3 switch] interface vlan-interface 200

[L3 switch-Vlan-interface200] ipv6 address 1::2:0:0:1/96

[L3 switch-Vlan-interface200] quit

# 创建VLAN 300,并为该接口配置IPv6地址。Host使用VLAN与AC建立连接。

[L3 switch] vlan 300

[L3 switch-vlan300] quit

[L3 switch] interface vlan-interface 300

[L3 switch-Vlan-interface300] ipv6 address 1::3:0:0:1/96

[L3 switch-Vlan-interface300] quit

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

[L3 switch] interface gigabitEthernet 1/0/1

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

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

[L3 switch-GigabitEthernet1/0/1] port trunk permit vlan 100 101 200 400

[L3 switch-GigabitEthernet1/0/1] quit

# 配置L3 switch和AP相连的接口GigabitEthernet1/0/2为Trunk类型,禁止VLAN 1报文通过,允许VLAN 400和VLAN 200通过,当前Trunk口的PVID为400。

[L3 switch] interface gigabitEthernet 1/0/2

[L3 switch-GigabitEthernet1/0/2] port link-type trunk

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

[L3 switch-GigabitEthernet1/0/2] port trunk permit vlan 200 400

[L3 switch-GigabitEthernet1/0/2] port trunk pvid vlan 400

[L3 switch-GigabitEthernet1/0/2] quit

# 配置L3 switch和Host相连的接口GigabitEthernet1/0/3为Access类型,允许VLAN 300通过。

[L3 switch] interfac gigabitEthernet 1/0/3

[L3 switch-GigabitEthernet1/0/3] port access vlan 300

[L3 switch-GigabitEthernet1/0/3] quit

(2)     配置DHCPv6服务

# 开启IPv6报文转发及DHCPv6服务器功能。

[L3 switch] ipv6

[L3 switch] ipv6 dhcp server enable

# 配置DHCPv6地址池1,为1::2:0:0:0/96网段的客户端分配IPv6地址等参数。

[L3 switch] ipv6 dhcp pool 1

[L3 switch-dhcp6-pool-1] network 1::2:0:0:0/96

[L3 switch-dhcp6-pool-1] quit

# 配置DHCPv6地址池2,为1::3:0:0:0/96网段的客户端分配IPv6地址等参数。

[L3 switch] ipv6 dhcp pool 2

[L3 switch-dhcp6-pool-2] network 1::3:0:0:0/96

[L3 switch-dhcp6-pool-2] quit

# 配置DHCPv6地址池3,为1::4:0:0:0/96网段的AP分配IPv6地址等参数,并通过自定义选项的方式配置option 52的内容,为AP指定AC的IPv6地址1::1:0:0:1。

[L3 switch] ipv6 dhcp pool 3

[L3 switch-dhcp6-pool-3] network 1::4:0:0:0/96

[L3 switch-dhcp6-pool-3] option 52 hex 00010000000000000000000100000001

[L3 switch-dhcp6-pool-3] quit

# 配置接口Vlan-interface200、Vlan-interface300和Vlan-interface400工作在DHCPv6服务器模式,并分别引用地址池1、2和3。

[L3 switch] interface vlan-interface 200

[L3 switch-Vlan-interface200] ipv6 dhcp server apply pool 1

[L3 switch-Vlan-interface200] ipv6 nd autoconfig managed-address-flag

[L3 switch-Vlan-interface200] ipv6 nd autoconfig other-flag

[L3 switch-Vlan-interface200] quit

[L3 switch] interface vlan-interface 300

[L3 switch-Vlan-interface300] ipv6 dhcp server apply pool 2

[L3 switch-Vlan-interface300] ipv6 nd autoconfig managed-address-flag

[L3 switch-Vlan-interface300] ipv6 nd autoconfig other-flag

[L3 switch-Vlan-interface300] quit

[L3 switch] interface vlan-interface 400

[L3 switch-Vlan-interface400] ipv6 dhcp server apply pool 3

[L3 switch-Vlan-interface400] ipv6 nd autoconfig managed-address-flag

[L3 switch-Vlan-interface400] ipv6 nd autoconfig other-flag

[L3 switch-Vlan-interface400] 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 configured            : 1

 Total Number of configured APs connected : 1

 Total Number of auto APs connected       : 0

                                  AP Profiles

 State : I = Idle,   J = Join, JA = JoinAck,   IL = ImageLoad

         C = Config, R = Run,  KU = KeyUpdate, KC = KeyCfm

         M = Master, B = Backup                                                

--------------------------------------------------------------------------------

 AP Name                          State Model              Serial-ID

--------------------------------------------------------------------------------

 ap1                              R/M   WA2620E-AGN        21023529G007C000020

-------------------------------------------------------------------------------

(2)     在AC上查看Client信息

# 在AC上使用命令display wlan client查看在线Client,可以看到Client已经连接到AP的radio1。

<AC> display wlan client

Total Number of Clients           : 1

                               Client Information

 SSID: service

--------------------------------------------------------------------------------

 MAC Address   User Name            APID/RID IP Address                     VLAN

--------------------------------------------------------------------------------

000f-e265-6400 -NA-                    1/1    1::2:0:0:2                     200

 

(3)     Host与Client可以相互ping通

# Client通过DHCP server获取到IP地址1::2:0:0:2,在Host上ping Client的IPv6地址可以ping通。同理,在Client上ping Host的IPv6地址也能ping通,不再赘述。

C:\Users\system32>ping 1::2:0:0:2 -t

 

Pinging 1::2:0:0:2 with 32 bytes of data:

Reply from 1::2:0:0:2: bytes=32 time=2470ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=2ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=1427ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=2ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=86ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=142ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=561ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=84ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=465ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=114ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=124ms TTL=63

Reply from 1::2:0:0:2: bytes=32 time=446ms TTL=63

 

Ping statistics for 1::2:0:0:2:

    Packets: Sent = 12, Received = 12, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 2ms, Maximum = 2470ms, Average = 495ms

Control-C

^C

C:\Users\system32>

3.6  配置文件

·     AC

#                                                                                                 

vlan 100                                                                                         

#                                                                                                 

vlan 200                                                                                         

#                                                                                                 

interface Vlan-interface100                                                                  

 ipv6 address 1::1:0:0:1/96                                                                  

#                                                                                                 

interface Vlan-interface101                                                                  

 ipv6 address 1::5:0:0:1/96                                                                 

#                                                                                                 

interface Vlan-interface200                                                                  

 ipv6 nd snooping enable                                                                  

#                                                                                                 

wlan service-template 1 clear                                                               

 ssid service                                                                                   

 service-template enable                                                                      

#                                                                                                 

interface GigabitEthernet1/0/1                                                              

 port link-type trunk                                                                         

 undo port trunk permit vlan 1                                                             

 port trunk permit vlan 100 200                                                             

#                                                                                                 

ipv6 route-static 1::4:0:0:0 96 1::1:0:0:2                                                

#

interface WLAN-ESS1

port link-type hybrid

undo port hybrid vlan 1

 port hybrid vlan 100 200 400 untagged

 port hybrid pvid vlan 201

 mac-vlan enable

#                                                                                                 

wlan ap officeap model WA2620E-AGN                                                         

 serial-id WA2620E-AGN                                                             

 vlan 1                                                                                          

 radio 1                                                                                        

  radio enable                                                                                 

  service-template 1 vlan 200                                                               

 radio 2                                                                                        

#                                                                                                

·     L3 switch

#                                                                                                

vlan 100                                                                                        

#                                                                                                

vlan 101                                                                                        

#                                                                                                

vlan 200                                                                                        

#                                                                                                

vlan 300                                                                                        

#                                                                                                

vlan 400                                                                                        

#                                                                                                

ipv6 dhcp pool 1                                                                              

 network 1::2:0:0:0/96                                                                       

#                                                                                                

ipv6 dhcp pool 2                                                                              

network 1::3:0:0:0/96                                                                        

#                                                                                                

ipv6 dhcp pool 3                                                                              

 network 1::4:0:0:0/96                                                                       

 option 52 hex 00010000000000000001000000000001                                         

#                                                                                                

interface Vlan-interface100                                                                 

 ipv6 address 1::1:0:0:2/96                                                                 

#                                                                                                

interface Vlan-interface200                                                                 

 ipv6 dhcp server apply pool 1                                                                    

 ipv6 address 1::2:0:0:1/96                                                                

 ipv6 nd autoconfig managed-address-flag

 ipv6 nd autoconfig other-flag

#                                                                                               

interface Vlan-interface300                                                                

 ipv6 dhcp server apply pool 2                                                                   

 ipv6 address 1::3:0:0:1/96                                                                

 ipv6 nd autoconfig managed-address-flag

 ipv6 nd autoconfig other-flag

#                                                                                                

interface Vlan-interface400                                                                

 ipv6 dhcp server apply pool 3                                                                  

 ipv6 address 1::4:0:0:1/96                                                               

 ipv6 nd autoconfig managed-address-flag

 ipv6 nd autoconfig other-flag

#                                                                                               

interface GigabitEthernet1/0/1                                                            

 port link-type trunk                                                                       

 undo port trunk permit vlan 1                                                            

 port trunk permit vlan 100 200 400                                                          

#                                                                                               

interface GigabitEthernet1/0/2                                                            

 port link-type trunk                                                                       

 undo port trunk permit vlan 1                                                            

 port trunk permit vlan 200 400                                                           

 port trunk pvid vlan 400                                                                  

#                                                                                               

interface GigabitEthernet1/0/3                                                            

 port access vlan 300                                                                       

#                                                                                               

 ipv6

#                                                                                               

 ipv6 dhcp server enable

#                                                                                               

4  相关资料

·     《H3C无线控制器产品 配置指导》中的“三层技术配置指导”。

·     《H3C无线控制器产品 命令参考》中的“三层技术命令参考”。

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

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

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

新华三官网
联系我们