故障排查步骤
1. 确认DHCP配置与接口状态
bash
在AC上查看DHCP地址池配置
display dhcp server pool
查看DHCP服务器是否使能
display dhcp server
查看AC与phone相连的接口状态(VLAN、端口)
display interface brief
display vlan
2. 检查DHCP报文交互
bash
在AC上开启DHCP调试(需在用户视图下)
debugging dhcp server packet
debugging dhcp server event
terminal debugging
terminal monitor
观察phone请求DHCP时是否有DISCOVER/OFFER/REQUEST/ACK报文交互。若只有DISCOVER无OFFER,说明DHCP池或中继问题;若有OFFER无REQUEST,说明phone未收到OFFER(可能广播/中继问题)。
3. 检查VLAN与DHCP中继
若phone与AC不在同一广播域,需配置DHCP中继:
bash
interface vlan-interface
ip address
ip relay address
确认phone所在VLAN的VLAN接口已配置IP,且DHCP服务器路由可达。
4. 检查地址池与租约
bash
display dhcp server free-ip
display dhcp server expired
display dhcp server conflict
若地址池耗尽或存在冲突,需扩大范围或清理冲突。
5. 检查AC与phone的CAPWAP隧道
虽然AC能看到phone,但确认隧道状态正常:
bash
display wlan ap all
display wlan client mac
若client状态为“Run”但IP为0.0.0.0,说明DHCP阶段失败。
6. 常见原因与解决
DHCP池网段与VLAN接口IP不匹配:确保地址池网段包含VLAN接口IP。
AC上DHCP Snooping未开启(若开启):检查信任端口。
phone的DHCP客户端异常:尝试在phone上手动配置静态IP测试连通性。
AC的DHCP服务未使能:在系统视图下执行dhcp enable。
7. 抓包确认
若以上无果,在AC的VLAN接口或上行口抓包:
bash
mirroring-group 1 mirroring-port <接口> both
分析DHCP报文是否被丢弃(如Option 82、安全策略)。
关键点:AC能看到phone说明无线链路正常,问题集中在DHCP服务或VLAN三层转发。优先检查DHCP池、VLAN接口IP、中继配置,并开启调试观察报文流向。
暂无评论