华三无线三层+二层注册配置+抓包
一 AP通过路由寻找AC三层注册
1.1 组网说明

如上图:
AP和AC跨三层路由,需要在AP所属的DHCP服务器下配置option43属性实现三层注册
1.2 设备配置
1.2.1 核心HX设备配置
sysname HX
#
ip unreachables enable
ip ttl-expires enable
#
lldp global enable
#
vlan 10
description AP&YW
#
dhcp enable
#
dhcp server ip-pool vlan10
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 202.106.0.20 8.8.8.8
option 43 hex 800700000103030302
#
配置解释:
80:选项类型,固定为80,1个字节。
07:选项长度,表示其后内容的长度(十六进制数的个数,这里表示后面有7个十六进制数,0B表示后面有11个十六进制数),一个字节。
0000:Server type,固定配为0000两个字节。
01:后面IP地址的个数,一个字节。
03030302: AC的IP地址3.3.3.2的十六进制表示。
#
interface Vlan-interface10
description AP&YW
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/3
port link-mode route
description TO-AC
combo enable fiber
ip address 3.3.3.1 255.255.255.0
#
interface GigabitEthernet1/0/4
port link-mode route
description TO-R
combo enable fiber
ip address 1.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
description TO-AP
port access vlan 10
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode bridge
description TO-AP
port access vlan 10
combo enable fiber
#
ip route-static 0.0.0.0 0 1.1.1.1
#
1.2.2 无线控制器AC配置
sysname AC
#
ip unreachables enable
ip ttl-expires enable
#
lldp global enable
#
interface GigabitEthernet1/0/0
port link-mode route
combo enable fiber
ip address 3.3.3.2 255.255.255.0
#
ip route-static 0.0.0.0 0 3.3.3.1
#
wlan auto-ap enable
wlan auto-ap persistent all
#
wlan ap-group default-group
vlan 1
#
1.2.3 AP重命名
[AC]wlan rename-ap 90b0-5b55-0300 AP1
[AC]wlan rename-ap 90b0-5ebb-0400 AP2
1.2.4 创建新AP组1F,会自动变成小写,然后将AP添加到该AP组下
wlan ap-group 1f
vlan 1
#
wlan ap-group 1f
vlan 1
ap AP1
ap AP2
#
1.2.5 配置无线服务模板并且在对应的AP类型下绑定
#
wlan service-template 1
ssid test
vlan 10
akm mode psk
preshared-key pass-phrase simple 12345678
cipher-suite ccmp
security-ie rsn
service-template enable
#
wlan ap-group 1f
vlan 1
ap AP1
ap AP2
ap-model WA6320-HCL
radio 1
radio enable
service-template 1
radio 2
radio enable
service-template 1
#
1.3 设备状态查看
1.3.1 AP状态查看
1.可以看到2个AP在线并且dhcp自动获取地址
[AC]dis wl ap all
Total number of APs: 2
Total number of connected APs: 2
Total number of connected manual APs: 2
Total number of connected auto APs: 0
Total number of connected common APs: 2
Total number of connected WTUs: 0
Total number of inside APs: 0
Maximum supported APs: 60000
Remaining APs: 59998
Total AP licenses: 60000
Local AP licenses: 60000
Server AP licenses: 0
Remaining local AP licenses: 59998
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
AP1 1 R/M WA6320-HCL H3C_90-B0-5B-55-03-00
AP2 2 R/M WA6320-HCL H3C_90-B0-5E-BB-04-00
[AC]
[AC]dis wl ap all address
Total number of APs : 2
Total number of connected APs : 2
Total number of connected manual APs : 2
Total number of connected auto APs : 0
Total number of inside APs : 0
AP name IP address MAC address
AP1 192.168.1.2 90b0-5b55-0300
AP2 192.168.1.3 90b0-5ebb-0400
2.查看到AP属于组1f
[AC]
[AC]dis wl ap-group brief
Total number of AP groups: 2
AP group name Group ID Member APs Online APs
default-group 1 0 0
1f 3 2 2
[AC]
1.3.2 核心dhcp地址分配查看与AP地址和MAC一致
<HX>dis dhcp server ip-in-use
IP address Client identifier/ Lease expiration Type
Hardware address
192.168.1.2 0190-b05b-5503-02 May 26 22:21:59 2026 Auto(C)
192.168.1.3 0190-b05e-bb04-02 May 26 22:22:07 2026 Auto(C)
<HX>
1.4 wireshark抓包查看通过udp5246端口实现注册

二 AP通过广播寻找AC二层注册
2.1 组网说明

AP和AC属于相同网段,实现二层注册
2.2 设备配置
2.2.1 核心HX设备配置
sysname HX
#
ip unreachables enable
ip ttl-expires enable
#
lldp global enable
#
vlan 10
description AP&YW
#
dhcp enable
#
dhcp server ip-pool vlan10
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 202.106.0.20 8.8.8.8
#
interface Vlan-interface10
description AP&YW
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/4
port link-mode route
description TO-R
combo enable fiber
ip address 1.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
description TO-AP
port access vlan 10
combo enable fiber
#
interface GigabitEthernet1/0/2
port link-mode bridge
description TO-AP
port access vlan 10
combo enable fiber
#
interface GigabitEthernet1/0/3
port link-mode bridge
description TO-AC
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
combo enable fiber
#
ip route-static 0.0.0.0 0 1.1.1.1
#
2.2.2 无线控制器AC配置
sysname AC
#
ip unreachables enable
ip ttl-expires enable
#
lldp global enable
#
vlan 10
description AP&YW
#
interface Vlan-interface10
description AP&YW
ip address 192.168.1.100 255.255.255.0
#
interface GigabitEthernet1/0/0
port link-mode bridge
description TO-HX
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10
combo enable fiber
#
ip route-static 0.0.0.0 0 192.168.1.254
#
wlan auto-ap enable
wlan auto-ap persistent all
#
wlan ap-group default-group
vlan 1
#
2.2.3 AP重命名
[AC]wlan rename-ap 90b0-5b55-0300 AP1
[AC]wlan rename-ap 90b0-5ebb-0400 AP2
2.2.4 创建新AP组1F,会自动变成小写,然后将AP添加到该AP组下
wlan ap-group 1f
vlan 1
#
wlan ap-group 1f
vlan 1
ap AP1
ap AP2
#
2.2.5 配置无线服务模板并且在对应的AP类型下绑定
#
wlan service-template 1
ssid test
vlan 10
akm mode psk
preshared-key pass-phrase simple 12345678
cipher-suite ccmp
security-ie rsn
service-template enable
#
wlan ap-group 1f
vlan 1
ap AP1
ap AP2
ap-model WA6320-HCL
radio 1
radio enable
service-template 1
radio 2
radio enable
service-template 1
#
2.3 设备状态查看
2.3.1 AP状态查看
1.可以看到2个AP在线并且dhcp自动获取地址
[AC]dis wl ap all
Total number of APs: 2
Total number of connected APs: 2
Total number of connected manual APs: 2
Total number of connected auto APs: 0
Total number of connected common APs: 2
Total number of connected WTUs: 0
Total number of inside APs: 0
Maximum supported APs: 60000
Remaining APs: 59998
Total AP licenses: 60000
Local AP licenses: 60000
Server AP licenses: 0
Remaining local AP licenses: 59998
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
AP1 1 R/M WA6320-HCL H3C_90-B0-5B-55-03-00
AP2 2 R/M WA6320-HCL H3C_90-B0-5E-BB-04-00
[AC]
[AC]dis wl ap all address
Total number of APs : 2
Total number of connected APs : 2
Total number of connected manual APs : 2
Total number of connected auto APs : 0
Total number of inside APs : 0
AP name IP address MAC address
AP1 192.168.1.2 90b0-5b55-0300
AP2 192.168.1.3 90b0-5ebb-0400
2.查看到AP属于组1f
[AC]
[AC]dis wl ap-group brief
Total number of AP groups: 2
AP group name Group ID Member APs Online APs
default-group 1 0 0
1f 3 2 2
[AC]
2.3.2 核心dhcp地址分配查看与AP地址和MAC一致
<HX>dis dhcp server ip-in-use
IP address Client identifier/ Lease expiration Type
Hardware address
192.168.1.2 0190-b05b-5503-02 May 26 22:21:59 2026 Auto(C)
192.168.1.3 0190-b05e-bb04-02 May 26 22:22:07 2026 Auto(C)
<HX>
2.4 wireshark抓包查看通过udp5246端口实现注册

openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构
更多推荐



所有评论(0)