背景
服务器上插入的光模块经常被忽略,往往这里是定位问题最根本的地方。如何通过命令查看?
命令
ethtool提供了-m参数,m是module-info的意思,他是从光模块的eeprom中读取数据。(应该是用i2c协议读取的)
ethtool -m enp1s0f0

实操
本文实操2种光模块插在同一个设备上(设备是CX5 25G)。
一个是1G的千兆SFP光模块
另一个是25G的SFP28的光模块

SFP和SFP28的区别参考兄弟篇:https://blog.youkuaiyun.com/essencelite/article/details/138551156
25G 光模块信息
[root@localhost ~]# ethtool -m enp1s0f0
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02
Transceiver type : Extended: 100G Base-SR4 or 25GBase-SR
Encoding : 0x03 (NRZ)
BR, Nominal : 25750MBd
Rate identifier : 0x00 (unspecified)
Length (SMF,km) : 0km
Length (SMF) : 0m
Length (50um) : 0m
Length (62.5um) : 0m
Length (Copper) : 10m
Length (OM3) : 70m
Laser wavelength : 850nm
Vendor name : DTZ
Vendor OUI : 44:7c:7f
Vendor PN : SFP28-25G-SR
Vendor rev : 1A
Option values : 0x00 0x1a
Option : RX_LOS implemented
Option

最低0.47元/天 解锁文章
1500

被折叠的 条评论
为什么被折叠?



