光模块兼容性告警
插入非原厂或非认证光模块时,设备通常会在日志里提示模块未认证。处理方式三厂差别很大:思科最严格,某些平台插入非原厂模块会直接把端口置为 err-disabled(原因 gbic-invalid),必须显式关闭该检测或声明支持非标准模块才能用;华为与 H3C 一般只是日志告警,模块仍可正常上线。
基本信息
| 适用平台 | 华为 VRP(transceiver phony-alarm-disable)、思科 IOS(service unsupported-transceiver)、H3C Comware(以日志确认为主) |
|---|---|
| 思科附加动作 | 还需 no errdisable detect cause gbic-invalid,否则端口可能直接被禁用 |
| 华为动作 | transceiver phony-alarm-disable 关闭非认证模块告警(按需) |
| H3C 动作 | 多数版本仅日志告警,是否可屏蔽随版本,用 ? 确认 |
| 风险面 | 第三方模块的兼容性与保修政策需提前评估 |
典型使用场景
- 成本敏感项目:预算限制下使用第三方模块,需要先确认设备的告警与禁用行为
- 紧急备件替换:原厂模块缺货时临时用兼容模块顶上,需知道端口会不会被禁用
- 告警治理:日志里持续刷模块未认证告警,需评估是否可安全屏蔽
- 兼容性验收:新采购的模块上机后逐口确认链路 up、光功率正常
- 故障定位:链路不通时先区分是模块未认证被禁用,还是光功率或线缆问题
华为 VRP
华为 VRP
<Huawei> display transceiver interface GigabitEthernet 0/0/1 # 看模块型号与光功率
! 输出的 Vendor Name 与厂商认证列表不符时会记录日志
[Huawei] transceiver phony-alarm-disable # 关闭非认证模块告警(按需)
<Huawei> display transceiver alarm interface GigabitEthernet 0/0/1 # 查看告警门限
<Huawei> display logbuffer | include transceiver # 从日志确认是否只是告警思科 IOS
思科 IOS
SW-CORE-01(config)# service unsupported-transceiver # 声明允许非标准模块
SW-CORE-01(config)# no errdisable detect cause gbic-invalid # 不因模块非法而禁用端口
! 两条要一起配,只配一条时端口可能仍被 err-disable
SW-CORE-01# show interfaces status err-disabled # 查看被禁用的端口与原因
SW-CORE-01# show interfaces Gi1/0/1 transceiver # 查看模块信息
SW-CORE-01(config-if)# shutdown / no shutdown # 恢复 err-disable 端口需人工恢复H3C Comware
H3C Comware
<H3C> display transceiver interface GigabitEthernet 1/0/1 # 模块型号、光功率
<H3C> display transceiver alarm interface GigabitEthernet 1/0/1
<H3C> display logbuffer | include transceiver # 确认告警性质
! 多数版本非认证模块仅告警不阻断,可用性与机型/模块相关三厂处理方式
| 平台 | 默认行为 | 可配置项 |
|---|---|---|
| 思科 IOS | 可能直接 err-disable(gbic-invalid) | service unsupported-transceiver + 关闭 gbic-invalid 检测 |
| 华为 VRP | 日志告警,链路可正常 up | transceiver phony-alarm-disable 屏蔽告警 |
| H3C Comware | 日志告警 | 以版本支持为准,多数无专用屏蔽开关 |
| 共性 | 数字诊断信息(光功率等)可读 | 第三方模块精度可能偏低,排障时作参考 |
排查顺序:先看端口状态是不是 err-disabled(思科),再看模块是否被识别(display transceiver / show interfaces transceiver),最后才怀疑光纤与尾纤。被 err-disable 的端口不会自动恢复,需要 shutdown / no shutdown 或配置 errdisable recovery。