X550-T2网卡接在2.5G交换机上Unraid无法正确上网,而直通给虚拟机又正常,怀疑驱动Bug?


Recommended Posts

1.软硬件环境:

1.1.软件:Unraid6.92,虚拟windows10

1.2.硬件:尝试了了华擎Z490m-itx/ac(10900T)、超微X1SCA-F(2246G)等板U组合,外加X550-T2原装intel万兆网卡、tp-link—sh1008交换机(2.5Gbps)

2.目标:用一根网线连接X550-T2万兆网卡,为unraid提供外网,同时通过sr-iov方式为虚拟机提供外网

3.问题:如果将网线接到2.5G交换机上则获取不到ip(但接到千兆交换机则一切正常,Z490主板自带2.5G网卡一切正常,或者直接插到原生Windows系统中一切正常),查看日志记录发现该网卡间歇性断网,导致无法处于连接状态(且即使偶尔连同时网速也仅是千兆!)

1726948612_2_5G.jpg.823837c1f34967863198721743a67968.jpg

unraid仪表盘显示网卡位置也仅是千兆

1290719814_2_5G.jpg.a3fcf36040c941ea4fca1610563154fe.jpg

通过sr-iov方式直通给虚拟机的网卡也是一会儿断开一会儿连接,而直接物理直通给虚拟机的另一个网口则完全正常,满满的2.5G速率(下图为物理直通的网卡连接状态)

1878910901_.jpg.cb7864909b65ea0091a9238b54b394bf.jpg

4.猜测:unraid的X550-T2网卡的驱动有Bug,导致连接不稳定,请问有没有什么办法解决?谢谢!

Link to comment
  • 3 weeks later...

最后的解决方案:

在go文件中添加如下代码即可轻松搞定(我的另外一个万兆口直通给了虚拟机,所以unraid中就只有一个万兆口,在【设置】→【网络设置】可以看到其是eth1,如果你的是其它编号,修改即可,或者有多个网口,对应添加代码即可):

/usr/sbin/ethtool -s eth1 speed 2500 duplex full
/sbin/ifconfig eth1 down
/sbin/ifconfig eth1 up

 

由衷感谢ZZY提供的解决方案和参考链接!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.