问题
将第三方SFP 模块插入Cisco 交换机后,SFP 模块不能正常使用,LED 指示灯也没有提示。接入交换机的console 后,再插拔SFP 模块,可以看到类似的错误提示:
%GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR: GBIC in port [dec] has bad crc.
Cisco 交换机会对接入的SFP 模块进行检测,大概是只允许使用自家的设备,具体情况我也没有查证,总之就是现在的SFP 模块不能用了。
解决方案
本文通过cli 方式配置,请自行根据文档链接到交换机的console,具体操作可以参考Cisco 官方文档,不再赘述。
-
链接交换机console,windows 下可以使用telnet 登陆。
-
插入SFP 模块,可以看到类似的报错:
%GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR
-
进入特权模式,输入
enable
-
进入全局配置模式,输入
configure terminal
-
禁用GBIC检测,输入
no errdisable detect cause gbic-invalid
service unsupported-transceiver
回车之行后,会提示:
Warning: When Cisco determines that a fault or defect can be traced to the use of third-party transceivers installed by a customer or reseller, then, at Cisco’s discretion, Cisco may withhold support under warranty or a Cisco support program. In the course of providing support for a Cisco networking product Cisco may require that the end user install Cisco transceivers if Cisco determines that removing third-party parts will assist Cisco in diagnosing the cause of a support issue.
-
重新插拔SFP 模块,此时应该可以正常使用了。
根据这篇文章的描述:
2960G, 3560G, 3750G, 4507R and 4507R-E Catalyst switches and all accepted the commands without a problem.
但是至少我是不行的,希望你操作之后能行。
-
将配置保存进NVRAM,输入
end
退出配置模式,然后输入copy running-config startup-config
进行保存。 -
执行
show errdisable detect
,可以查看此时的交换机检测配置,会显示gbic-invalid Disabled
参考:
踩坑经历
买了两个二手Cisco 交换机,终于能把软路由和光猫分开放了。类似于单臂路由的配置,基于VLAN 实现的单线复用,其实也可以说是汇聚,VLAN trunk。
看到交换机带了个SFP 接口,本着不要浪费的精神,刚好可以把原来的光纤收发器换下来,节省一个电源插口。买了一个TP-LINK 的SFP 模块,插上交换机,完全没反应,灯都不带亮的……
用来接console 的线太短,只好把装好的交换机拆下来。最后发现居然是SFP 模块报错了……属实无语。