02-H3C无线控制器IPv6二层注册典型配置举例
本章节下载: 02-H3C无线控制器IPv6二层注册典型配置举例 (248.31 KB)
H3C无线控制器IPv6二层注册典型配置举例
Copyright © 2023 新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文档中的信息可能变动,恕不另行通知。
目 录
本文档介绍AP与AC间通过二层网络完成注册的配置举例。
本文档适用于使用Comware软件版本的无线控制器和接入点产品,不严格与具体硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解IPv6基础与WLAN接入相关特性。
如图1所示,集中式转发架构下,无线客户端Client、有线客户端Host通过L2 switch和AC相连,L2 switch通过PoE方式给AP供电,AC做为DHCPv6 server为AP、Client和Host分配IPv6地址。需要实现无线客户端Client通过AP连接到AC上,并能与有线客户端Host互相访问。
图1 Fit AP通过二层网络注册到AC配置举例组网图
· 在AC上配置DHCPv6服务,使AP、无线客户端Client和有线客户端Host都能通过DHCPv6 server自动获取IPv6地址。
· 在L2 switch上开启PoE功能,为AP设备供电。
· 在AC上配置无线服务,确保Client可以通过配置的无线服务接入网络,并访问Host。
· 配置AP的序列号时请确保该序列号与AP唯一对应。
· 配置L2 switch和AP相连的接口禁止VLAN 1报文通过,以防止VLAN 1内报文过多。
(1) 配置AC接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IPv6地址。AP将通过该VLAN与AC建立CAPWAP隧道。
<AC> system-view
[AC] vlan 100
[AC-vlan100] quit
[AC] interface vlan-interface 100
[AC-Vlan-interface100] ipv6 address 1::1:0:0:1/96
[AC-Vlan-interface100] quit
# 创建VLAN 200及其对应的VLAN接口,并为该接口配置IPv6地址。Client使用该VLAN接入无线网络。
[AC] vlan 200
[AC-vlan200] quit
[AC] interface vlan-interface 200
[AC-Vlan-interface200] ipv6 address 1::2:0:0:1/96
[AC-Vlan-interface200] quit
# 创建VLAN 300及其对应的VLAN接口,并为该接口配置IPv6地址。Host使用该VLAN与AC建立连接。
[AC] vlan 300
[AC-vlan300] quit
[AC] interface vlan-interface 300
[AC-Vlan-interface300] ipv6 address 1::3:0:0:1/96
[AC-Vlan-interface300] quit
# 配置AC和L2 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100、VLAN 200和VLAN 300通过。
[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 300
[AC-GigabitEthernet1/0/1] quit
(2) 配置DHCPv6服务
# 配置接口Vlan-interface100、Vlan-interface200和Vlan-interface300工作在DHCPv6服务器模式,并配置接口引用DHCP地址池。
[AC] interface vlan-interface 100
[AC-Vlan-interface100] ipv6 dhcp select server
[AC-Vlan-interface100] ipv6 dhcp server apply pool 1
[AC-Vlan-interface100] interface vlan-interface 200
[AC-Vlan-interface200] ipv6 dhcp server apply pool 2
[AC-Vlan-interface200] ipv6 dhcp select server
[AC-Vlan-interface200] interface vlan-interface 300
[AC-Vlan-interface300] ipv6 dhcp server apply pool 3
[AC-Vlan-interface300] ipv6 dhcp select server
# 取消设备发布RA消息的抑制功能。配置被管理地址的配置标志位为1,即主机通过DHCPv6服务器获取IPv6地址。配置其他信息配置标志位为1,即主机通过DHCPv6服务器获取除IPv6地址以外的其他信息。
[AC-Vlan-interface300] interface vlan-interface 100
[AC-Vlan-interface100] undo ipv6 nd ra halt
[AC-Vlan-interface100] ipv6 nd autoconfig managed-address-flag
[AC-Vlan-interface100] ipv6 nd autoconfig other-flag
[AC-Vlan-interface100] interface vlan-interface 200
[AC-Vlan-interface200] undo ipv6 nd ra halt
[AC-Vlan-interface200] ipv6 nd autoconfig managed-address-flag
[AC-Vlan-interface200] ipv6 nd autoconfig other-flag
[AC-Vlan-interface200] interface vlan-interface 300
[AC-Vlan-interface300] undo ipv6 nd ra halt
[AC-Vlan-interface300] ipv6 nd autoconfig managed-address-flag
[AC-Vlan-interface300] ipv6 nd autoconfig other-flag
[AC-Vlan-interface300] quit
# 配置DHCPv6地址池1,为1::1:0:0:0/96网的AP分配IPv6地址等参数。
[AC] ipv6 dhcp pool 1
[AC-dhcp6-pool-1] network 1::1:0:0:0/96
[AC-dhcp6-pool-1] quit
# 配置DHCPv6地址池2,为1::2:0:0:0/96网段的Client分配IPv6地址等参数。
[AC] ipv6 dhcp pool 2
[AC-dhcp6-pool-2] network 1::2:0:0:0/96
[AC-dhcp6-pool-2] quit
# 配置DHCPv6地址池3,为1::3:0:0:0/96网段的Host分配IPv6地址等参数。
[AC] ipv6 dhcp pool 3
[AC-dhcp6-pool-3] network 1::3:0:0:0/96
[AC-dhcp6-pool-3] quit
(3) 配置无线服务
# 创建无线服务模板1,并进入无线服务模板视图。
[AC] wlan service-template 1
# 配置SSID为service。
[AC-wlan-st-1] ssid service
# 配置身份认证与密钥管理模式为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
# 使能服务模板。
[AC-wlan-st-1] service-template enable
# 开启通过DHCPv6方式和ND方式学习客户端IPv6地址功能。
[AC-wlan-st-1] client ipv6-snooping dhcpv6-learning enable
[AC-wlan-st-1] client ipv6-snooping nd-learning enable
[AC-wlan-st-1] quit
(4) 配置AP
在大规模组网时,推荐在AP组内进行配置。
# 创建手工AP,名称为officeap,型号名称为WA6320。
[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 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
[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
# 创建VLAN 100、VLAN 200和VLAN 300,其中VLAN 100用于转发AC和AP间CAPWAP隧道内的流量,VLAN 200为无线客户端接入的VLAN,VLAN 300为Host接入的VLAN。
<L2 switch> system-view
[L2 switch] vlan 100
[L2 switch-vlan100] quit
[L2 switch] vlan 200
[L2 switch-vlan200] quit
[L2 switch] vlan 300
[L2 switch-vlan300] quit
# 配置L2 switch和AC相连的接口GigabitEthernet1/0/1为Trunk类型,允许VLAN 100、VLAN 200和VLAN 300通过。
[L2 switch] interface gigabitEthernet 1/0/1
[L2 switch-GigabitEthernet1/0/1] port link-type trunk
[L2 switch-GigabitEthernet1/0/1] port trunk permit vlan 100 200 300
[L2 switch-GigabitEthernet1/0/1] quit
# 配置L2 switch和AP相连的接口GigabitEthernet1/0/2为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100通过,当前Trunk口的PVID为100,并开启PoE远程供电功能。
[L2 switch] interfac gigabitEthernet 1/0/2
[L2 switch-GigabitEthernet1/0/2] port link-type trunk
[L2 switch-GigabitEthernet1/0/2] undo port trunk permit vlan 1
[L2 switch-GigabitEthernet1/0/2] port trunk permit vlan 100
[L2 switch-GigabitEthernet1/0/2] port trunk pvid vlan 100
[L2 switch-GigabitEthernet1/0/2] poe enable
[L2 switch-GigabitEthernet1/0/2] quit
# 配置L2 switch和Host相连的接口GigabitEthernet1/0/3为Access类型,允许VLAN 300通过。
[L2 switch] interface gigabitEthernet 1/0/3
[L2 switch-GigabitEthernet1/0/3] port access vlan 300
[L2 switch-GigabitEthernet1/0/3] 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 ipv6查看在线Client,可以看到Client已经连接到AP的radio1。
<AC> display wlan client ipv6
Total number of clients: 1
MAC address AP name IPv6 address VLAN
784f-43b6-077c officeap 1::2:0:0:3 200
(3) Host与Client可以相互ping通
# Client 通过DHCPv6 server获取到IPv6地址1::2:0:0:3,在Host上ping Client的IPv6地址可以ping通。同理,在Client上ping Host的IPv6地址也能ping通,不再赘述。
C:\Users\system32>ping 1::2:0:0:3 -t
Pinging 1::2:0:0:3 with 32 bytes of data:
Reply from 1::2:0:0:3: bytes=32 time=8ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Reply from 1::2:0:0:3: bytes=32 time<1ms TTL=255
Ping statistics for 1::2:0:0:3:
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>
· AC
#
dhcp enable
#
vlan 1
#
vlan 100
#
vlan 200
#
vlan 300
#
ipv6 dhcp pool 1
network 1::1:0:0:0/96
#
ipv6 dhcp pool 2
network 1::2:0:0:0/96
#
ipv6 dhcp pool 3
network 1::3:0:0:0/96
#
wlan service-template 1
ssid service
client forwarding-location ac
akm mode psk
preshared-key pass-phrase cipher $c$3$9tIUHSkAUVqCH9/EPrL26ldkcEQnngexUEFj
cipher-suite ccmp
security-ie rsn
client ipv6-snooping nd-learning enable
client ipv6-snooping dhcpv6-learning enable
service-template enable
#
interface Vlan-interface1
#
interface Vlan-interface100
ipv6 dhcp select server
ipv6 dhcp server apply pool 1
ipv6 address 1::1:0:0:1/96
ipv6 nd autoconfig managed-address-flag
ipv6 nd autoconfig other-flag
undo ipv6 nd ra halt
#
interface Vlan-interface200
ipv6 dhcp select server
ipv6 dhcp server apply pool 2
ipv6 address 1::2:0:0:1/96
ipv6 nd autoconfig managed-address-flag
ipv6 nd autoconfig other-flag
undo ipv6 nd ra halt
#
interface Vlan-interface300
ipv6 dhcp select server
ipv6 dhcp server apply pool 3
ipv6 address 1::3:0:0:1/96
ipv6 nd autoconfig managed-address-flag
ipv6 nd autoconfig other-flag
undo ipv6 nd ra halt
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 200 300
port trunk pvid vlan 100
#
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 219801A28N819CE0002T
#
· L2 switch
#
vlan 100
#
vlan 200
#
vlan 300
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 1 100 200 300
port trunk pvid vlan 100
#
interface GigabitEthernet1/0/2
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
port trunk pvid vlan 100
poe enable
#
interface GigabitEthernet1/0/3
port access vlan 300
#
· 《H3C无线控制器产品 配置指导》中的“网络互通配置指导”。
· 《H3C无线控制器产品 命令参考》中的“网络互通命令参考”。
· 《H3C无线控制器产品 配置指导》中的“AP管理配置指导”。
· 《H3C无线控制器产品 命令参考》中的“AP管理命令参考”。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!