现网核心为华为交换机(地址池配置option 13 ip address xxxxx)
现在,AP可以正常拿到AC地址和AP管理地址,但是AP无法注册到AC(授权等都是足够的),如何排查?
(0)
| 现象 | 可能原因 |
|---|---|
| AP能获取IP地址 | DHCP服务器工作正常 |
| AP能获取AC地址 | option 13/43配置正确 |
| AP无法注册 | ① CAPWAP隧道建立失败 ② 通信端口被阻断 ③ 认证/版本不兼容 |
开始
↓
① 检查AP获取的地址信息
↓
② 检查AC与AP连通性
↓
③ 检查CAPWAP端口状态
↓
④ 检查AC配置
↓
⑤ 检查网络中间设备
↓
结束# 在核心交换机(华为)查看AP的DHCP租约
display dhcp server ip-in-use all
# 或
display ip pool name <pool-name> used192.168.x.x
192.168.x.1
<AC-IP>
# 在AC上执行
ping -a <AC管理地址> <AP获取的IP>
# 例如
ping -a 10.1.1.1 192.168.10.100# 登录AP(通常通过串口)
system-view
ping <AC管理地址>
display dhcp client verbose
display capwap configuration| 端口 | 协议 | 方向 | 用途 |
|---|---|---|---|
| 5246 | UDP | AP→AC | CAPWAP控制通道 |
| 5247 | UDP | AC→AP | CAPWAP控制通道 |
| 5248 | UDP | AP→AC | CAPWAP数据通道 |
| 5249 | UDP | AC→AP | CAPWAP数据通道 |
| 80/443 | TCP | AP→AC | 部分型号用于初始发现 |
# 查看ACL规则
display acl all
display packet-filter all
# 检查接口ACL应用
display current-configuration interface <interface># 在F1000防火墙上检查
display security-policy rule
display session table source-ip <AP-IP> destination-ip <AC-IP>
# 创建临时放行策略测试
security-policy ip
rule name permit_capwap
source-zone trust
destination-zone dmz
source-address <AP网段> mask <掩码>
destination-address <AC-IP> mask 255.255.255.255
service capwap
action pass# 进入WLAN视图
wlan
# 查看AC全局配置
display current-configuration | include wlan
display wlan ap all
# 查看CAPWAP源接口配置
display capwap configuration# 1. 确认CAPWAP源接口(必须与AP路由可达)
capwap source interface Vlanifxxx
# 或
capwap source ip-address <AC-IP>
# 2. 查看AP配置模板
display wlan ap-system-profile all
display wlan ap-region-profile all# 查看AP认证模式
display wlan ap all
display wlan ap name <AP名称>
# 常见认证模式
# 序列号认证(默认)
# 不认证
# MAC地址认证wlan
ap-auth mode no-auth
commit# 查看DHCP服务器配置
display current-configuration | include dhcp
display current-configuration | include option
# 典型配置示例
ip pool vlan10
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
option 13 ip-address 10.1.1.1 # AC地址
dns-list 8.8.8.8# 华为交换机配置
option 13 ip-address 10.1.1.1
option 43 hex 0104c0a80101 # 0104 + AC IP的十六进制
# 其中0104表示子选项01+长度04,c0a80101=192.168.1.1AC IP: 10.1.1.1
转换为十六进制: 0a010101
完整格式: 0104 0a010101
最终值: 01040a010101option 43 hex 01040a010101# 查看AC版本
display version
# 查看已注册AP版本
display wlan ap all
# 查看AP型号支持列表
display wlan ap model all# 抓取CAPWAP相关报文
display capture-packet interface <interface> destination file capwap.pcap
# 或
tcpdump -i any -w capwap.pcap port 5246 or port 5247# 华为交换机配置端口镜像
observe-port 1 interface GigabitEthernet0/0/24
interface GigabitEthernet0/0/1 # AP接入端口
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound# 启用CAPWAP调试
terminal monitor
terminal debugging
debugging wlan capwap all
debugging wlan ap all
# 查看实时日志
display debugging# 查看AP注册失败原因
display wlan ap offline-record
display wlan ap reject-record
display logbuffer# 在华为交换机上创建ACL放行CAPWAP
acl 3000
rule 5 permit udp source 192.168.10.0 0.0.0.255 destination 10.1.1.1 0 destination-port eq 5246
rule 10 permit udp source 192.168.10.0 0.0.0.255 destination 10.1.1.1 0 destination-port eq 5247
rule 15 permit udp source 192.168.10.0 0.0.0.255 destination 10.1.1.1 0 destination-port eq 5248
rule 20 permit udp source 192.168.10.0 0.0.0.255 destination 10.1.1.1 0 destination-port eq 5249# 华为DHCP配置
ip pool vlan10
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
option 13 ip-address 10.1.1.1
option 43 hex 01040a010101# AC上配置
system-view
capwap source ip-address 10.1.1.1
# 或
capwap source interface Vlanif10# 在核心交换机添加路由
ip route-static 192.168.10.0 24 下一跳地址
# 在AC网关设备添加回程路由
ip route-static 10.1.1.0 24 下一跳地址# 保存配置信息
display current-configuration > config.txt
display wlan ap all > ap_status.txt
display wlan ap offline-record > offline.txt
display capwap configuration > capwap.txt
display interface brief > interface.txt
display ip routing-table > route.txt
display acl all > acl.txt
display logbuffer > log.txt
# 测试连通性
ping -c 10 <AP-IP>
tracert <AP-IP>display wlan ap all
display wlan ap online-recorddisplay wlan ap name <AP-名称>
display wlan ap serial-id <AP序列号>display version
display diagnostic-information
display wlan ap all
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论