H3C 5500交换机出现网络不稳定问题,交换机日志如下,应该怎么解决?谢谢!
%Jul 5 12:18:51:803 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Created new neighbor, chassis ID: 1c83-4192-00a1, port ID: 1c83-4192-00a1.
%Jul 5 12:37:22:915 2002 GCDL-DKZX-DSW-S5500 OPTMOD/4/PHONY_MODULE:
GigabitEthernet1/0/6: This transceiver is NOT sold by H3C. H3C therefore shall NOT guarantee the normal function of the device or assume the maintenance responsibility thereof!
%Jul 5 12:45:47:87 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Created new neighbor, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
%Jul 5 13:46:27:437 2002 GCDL-DKZX-DSW-S5500 LLDP/2/AGEOUTREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Neighbor aged out, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
%Jul 5 14:22:52:568 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Created new neighbor, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
%Jul 5 14:34:14:617 2002 GCDL-DKZX-DSW-S5500 LLDP/2/DELREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Deleted neighbor, chassis ID: 1c83-4192-00a1, port ID: 1c83-4192-00a1.
%Jul 5 15:23:32:885 2002 GCDL-DKZX-DSW-S5500 LLDP/2/AGEOUTREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Neighbor aged out, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
%Jul 6 05:01:16:167 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Created new neighbor, chassis ID: 1c83-4192-00a1, port ID: 1c83-4192-00a1.
%Jul 6 05:04:08:455 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Created new neighbor, chassis ID: 1c83-4191-f1cf, port ID: 1c83-4191-f1cf.
%Jul 6 05:34:32:259 2002 GCDL-DKZX-DSW-S5500 LLDP/2/DELREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Deleted neighbor, chassis ID: 1c83-4191-f1cf, port ID: 1c83-4191-f1cf.
%Jul 6 05:40:38:708 2002 GCDL-DKZX-DSW-S5500 LLDP/2/DELREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Deleted neighbor, chassis ID: 1c83-4192-00a1, port ID: 1c83-4192-00a1.
%Jul 6 06:32:59:242 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Created new neighbor, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
%Jul 6 07:07:58:720 2002 GCDL-DKZX-DSW-S5500 LLDP/2/DELREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Deleted neighbor, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
%Jul 6 07:33:38:523 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/6 (IfIndex 9437189):Created new neighbor, chassis ID: 1c83-4192-00a1, port ID: 1c83-4192-00a1.
%Jul 6 07:55:06:706 2002 GCDL-DKZX-DSW-S5500 LLDP/2/CREREM:Port GigabitEthernet1/0/30 (IfIndex 9437213):Created new neighbor, chassis ID: 047c-1666-5558, port ID: 047c-1666-5558.
、问题分析
日志关键信息解读
光模块警告(核心问题)
%OPTMOD/4/PHONY_MODULE: GigabitEthernet1/0/6: This transceiver is NOT sold by H3C.
问题:G1/0/6端口使用了非H3C原厂光模块
影响:兼容性问题导致链路不稳定
LLDP链路震荡
G1/0/6和G1/0/30端口频繁出现LLDP邻居创建/删除
表明物理链路在不断up/down
二、立即排查步骤
1. 检查当前端口状态
# 查看问题端口状态
display interface GigabitEthernet 1/0/6
display interface GigabitEthernet 1/0/30
# 查看端口统计信息(关注错误包)
display counters error
2. 检查光模块信息
# 查看光模块详细信息
display transceiver diagnosis interface GigabitEthernet 1/0/6
display transceiver diagnosis interface GigabitEthernet 1/0/30
# 查看光模块厂商信息
display transceiver manuinfo interface GigabitEthernet 1/0/6
3. 查看错误日志详情
# 查看详细的错误日志
display logbuffer reverse
display trapbuffer
三、解决方案
方案一:更换为H3C原厂光模块(根本解决)
# 1. 关闭问题端口
system-view
interface GigabitEthernet 1/0/6
shutdown
interface GigabitEthernet 1/0/30
shutdown
# 2. 更换为H3C原厂光模块后重新开启
interface GigabitEthernet 1/0/6
undo shutdown
interface GigabitEthernet 1/0/30
undo shutdown
方案二:禁用光模块检测(临时应急)
如果暂时无法更换原厂模块:
system-view
# 禁用光模块厂商检查
transceiver phony-check disable
# 或者针对特定端口禁用
interface GigabitEthernet 1/0/6
transceiver phony-check disable
# 保存配置
save
注意:这只是临时解决方案,可能会影响设备保修。
方案三:配置错误禁用恢复
# 配置错误禁用自动恢复
error-down auto-recovery cause phony-module interval 30
error-down auto-recovery cause link-flap interval 60
# 配置链路震荡保护
link-flap protection enable
link-flap protection trigger 10 interval 10
四、完整修复配置脚本
# 进入系统视图
system-view
# 1. 禁用光模块检测(临时解决兼容性问题)
transceiver phony-check disable
# 2. 配置错误禁用自动恢复
error-down auto-recovery cause phony-module interval 30
error-down auto-recovery cause link-flap interval 60
# 3. 配置链路震荡保护
link-flap protection enable
link-flap protection trigger 5 interval 10
# 4. 清除端口统计信息
reset counters interface GigabitEthernet 1/0/6
reset counters interface GigabitEthernet 1/0/30
# 5. 重启问题端口
interface GigabitEthernet 1/0/6
shutdown
undo shutdown
interface GigabitEthernet 1/0/30
shutdown
undo shutdown
# 6. 保存配置
save
五、监控和验证命令
修复后验证步骤
# 1. 检查端口状态
display interface GigabitEthernet 1/0/6 brief
display interface GigabitEthernet 1/0/30 brief
# 2. 监控链路稳定性(持续观察5分钟)
display interface GigabitEthernet 1/0/6 | include "line protocol|Last clearing"
display interface GigabitEthernet 1/0/30 | include "line protocol|Last clearing"
# 3. 检查错误统计
display counters error interface GigabitEthernet 1/0/6
display counters error interface GigabitEthernet 1/0/30
# 4. 查看光模块状态
display transceiver diagnosis interface GigabitEthernet 1/0/6
display transceiver diagnosis interface GigabitEthernet 1/0/30
长期监控配置
# 配置端口监控告警
monitor-link group 1
port GigabitEthernet 1/0/6
port GigabitEthernet 1/0/30
# 配置日志监控
info-center source PHY logbuffer level warning
info-center source LINK logbuffer level warning
六、高级诊断命令
如果问题持续存在,进行深度诊断:
# 查看详细的物理层信息
display interface GigabitEthernet 1/0/6 transceiver
display interface GigabitEthernet 1/0/30 transceiver
# 查看光功率信息(如果是光口)
display transceiver diagnosis interface GigabitEthernet 1/0/6
# 关注:TX Power(发送功率)、RX Power(接收功率)
# 正常范围:-范围内(如-3dBm到-12dBm)
# 查看端口错误详细统计
display interface GigabitEthernet 1/0/6 counters detailed
七、预防措施
1. 配置定期健康检查
# 创建定期检查任务
scheduler job Check-Transceiver
command 1 display transceiver alarm interface GigabitEthernet 1/0/6
command 2 display transceiver alarm interface GigabitEthernet 1/0/30
command 3 display link-flap protection summary
scheduler schedule Daily-Health-Check
job Check-Transceiver
time repeating at 08:00
2. 配置SNMP监控
# 配置光功率监控告警
snmp-agent trap enable phy
snmp-agent target-host trap address udp-domain 192.168.1.100 params securityname public v2c
八、紧急恢复步骤
如果业务影响严重,立即执行:
# 紧急恢复:更换端口或暂时隔离
system-view
# 方案A:更换到备用端口
interface GigabitEthernet 1/0/6
shutdown
interface GigabitEthernet 1/0/10
port link-type trunk
port trunk permit vlan xx # 复制原端口配置
undo shutdown
# 方案B:配置端口聚合分担风险
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan xx
#
interface GigabitEthernet 1/0/6
port link-aggregation group 1
#
interface GigabitEthernet 1/0/30
port link-aggregation group 1
九、根本解决方案时间表
阶段
措施
时间
备注
立即
禁用光模块检测+错误恢复
5分钟
临时恢复业务
短期
配置链路保护+监控
1天内
提高稳定性
中期
采购原厂光模块
1周内
根本解决
长期
建立备件库+监控体系
1月内
预防复发
十、总结
您遇到的问题根本原因是非原厂光模块兼容性问题,解决方案优先级:
立即执行:方案二(禁用检测)+ 方案三(错误恢复)
本周内:采购更换为H3C原厂光模块(方案一)
长期预防:建立端口监控和备件管理制度
按照上述步骤操作,网络不稳定的问题应该能够得到彻底解决。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论