emuzi Posted September 20, 2021 Share Posted September 20, 2021 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系统中一切正常),查看日志记录发现该网卡间歇性断网,导致无法处于连接状态(且即使偶尔连同时网速也仅是千兆!) unraid仪表盘显示网卡位置也仅是千兆 通过sr-iov方式直通给虚拟机的网卡也是一会儿断开一会儿连接,而直接物理直通给虚拟机的另一个网口则完全正常,满满的2.5G速率(下图为物理直通的网卡连接状态) 4.猜测:unraid的X550-T2网卡的驱动有Bug,导致连接不稳定,请问有没有什么办法解决?谢谢! Quote Link to comment
lyqalex Posted September 20, 2021 Share Posted September 20, 2021 可以升级至rc版测试一下。当然,如果不急,可以等正式版发布再升级。 Quote Link to comment
emuzi Posted September 21, 2021 Author Share Posted September 21, 2021 但是X550网卡都出来这么长时间了,unraid官方不可能没有研究并好好支持吧 Quote Link to comment
emuzi Posted October 11, 2021 Author Share Posted October 11, 2021 最后的解决方案: 在go文件中添加如下代码即可轻松搞定(我的另外一个万兆口直通给了虚拟机,所以unraid中就只有一个万兆口,在【设置】→【网络设置】可以看到其是eth1,如果你的是其它编号,修改即可,或者有多个网口,对应添加代码即可): /usr/sbin/ethtool -s eth1 speed 2500 duplex full /sbin/ifconfig eth1 down /sbin/ifconfig eth1 up 由衷感谢ZZY提供的解决方案和参考链接! Quote Link to comment
emuzi Posted October 13, 2021 Author Share Posted October 13, 2021 第1句:手动设置eth1支持2.5G模式 第2句:手动关闭eth1 第3句:手动开启eth1 Quote Link to comment
Recommended Posts
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.