Linux下RTL8152B芯片出现间歇性断流

在使用RTL8152的USB网卡Hub,出现频繁的断流,反应是丢包或者直接连接断开

内核消息反复出现:

[172618.973465] r8152 1-1.4:1.0 enx00e04c30360f: carrier off
[172621.380863] r8152 1-1.4:1.0 enx00e04c30360f: carrier on
[172841.085977] r8152 1-1.4:1.0 enx00e04c30360f: carrier off
[172848.196872] r8152 1-1.4:1.0 enx00e04c30360f: carrier on

比较吊诡的是,有少数路由器自带的网线,就很稳定从不丢包,多数市面上的网线都不行,多贵的都丢

网上查,说关掉自动协商可以解:

https://superuser.com/questions/1272259/debian-stretch-and-realtek-r8152-chipset-carrier-off-on-error

解决方法,关掉自动协商并设置固定速度:

sudo ethtool -s enxxxxxxxx speed 100 duplex full autoneg off

我实测下来,会好一些,但还是有偶发丢包,不行就..换个芯片吧,毕竟千兆是主流

Leave a Reply

Your email address will not be published. Required fields are marked *