PVE用AX88179 USB网卡断联问题
运行环境是:PVE+OpenWrt首先确认过USB转千兆网卡没问题,并且两个USB网卡都是AX88179驱动,一个是绿联的,一个是京造,为了确认是不是USB网卡坏掉特意多买一个。
我用USB网卡接软路由,另一头接家里WIFI路由器,年前正常使用了至少2个月没重启过也不会出现断联的情况,最近几乎隔几天就断联了,每次必须重启整个PVE母鸡才行,重启OpenWrt都不管用。
我看驱动也都编译了,OP下的USB3.0的和ASIX驱动都有,会是什么问题啊,有没有大佬帮忙分析一下,网上教程查遍了一无所获。
PVE:
root@pve:~# lsmod | grep usbusbnet 491521 ax88179_178amii 163842 usbnet,ax88179_178a
OpenWrt:
root@OpenWrt:~# lsmod | grep usbmii 163846 ax88179_178a,asix,usbnet,pcnet32,8139too,8139cpsnd 61440 19 snd_usb_audio,snd_hda_intel,snd_hda_codec_via,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_usbmidi_lib,snd_via82xx,snd_intel8x0,snd_mpu401_uart,snd_ac97_codec,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hwdep,snd_compress,snd_pcm,snd_timersnd_hwdep 163842 snd_usb_audio,snd_hda_codecsnd_pcm 77824 10 snd_usb_audio,snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_core,snd_via82xx,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_compresssnd_rawmidi 286722 snd_usbmidi_lib,snd_mpu401_uartsnd_usb_audio 2129920 snd_usbmidi_lib 286721 snd_usb_audioums_usbat 204800 usbnet 286723 ax88179_178a,asix,aqc111
PVE最早用的6.多的版本,后来升级过几次,现在是最新版,OP固件也升级过几次了。 部分厂家的 AX88179 有一定问题 等于说不是PVE和OP问题了?但我之前一段时间有至少2个月没重启过,没断网过,过完年这段时间开始这样。 放日志看看吧,看看掉线时的日志判断 root@pve:~# dmesg| grep ax88179[ 4.455937] ax88179_178a 2-2:1.0 (unnamed net_device) (uninitialized): Failed to read reg index 0x0040: -32[ 4.767474] ax88179_178a 2-2:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-2, ASIX AX88179 USB 3.0 Gigabit Ethernet, f8:e4:3b:66:c5:ff[ 4.805382] usbcore: registered new interface driver ax88179_178a[ 4.806455] ax88179_178a 2-2:1.0 enxf8e43b66c5ff: renamed from eth0[ 10.286909] ax88179_178a 2-2:1.0 enxf8e43b66c5ff: Failed to read reg index 0x0040: -32[ 10.872283] ax88179_178a 2-2:1.0 enxf8e43b66c5ff: ax88179 - Link status is: 1[ 13.816402] ax88179_178a 2-2:1.0 enxf8e43b66c5ff: ax88179 - Link status is: 1
这里看 2-2 是直通端口,但我OP下原来用的半虚拟化接口,今天刚换的E1000模式测试。
Link status is: 1 也不懂1代表什么
root@pve:~# dmesg| grep usb[ 0.279551] usbcore: registered new interface driver usbfs[ 0.279551] usbcore: registered new interface driver hub[ 0.279551] usbcore: registered new device driver usb[ 0.318731] pci 0000:00:14.0: quirk_usb_early_handoff+0x0/0x6f0 took 11347 usecs[ 1.044833] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13[ 1.044837] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 1.044839] usb usb1: Product: xHCI Host Controller[ 1.044841] usb usb1: Manufacturer: Linux 5.13.19-6-pve xhci-hcd[ 1.044843] usb usb1: SerialNumber: 0000:00:14.0[ 1.047798] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13[ 1.047800] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 1.047801] usb usb2: Product: xHCI Host Controller[ 1.047802] usb usb2: Manufacturer: Linux 5.13.19-6-pve xhci-hcd[ 1.047803] usb usb2: SerialNumber: 0000:00:14.0[ 1.393634] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd[ 1.564044] usb 2-2: New USB device found, idVendor=0b95, idProduct=1790, bcdDevice= 2.00[ 1.564048] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 1.564050] usb 2-2: Product: AX88179A[ 1.564051] usb 2-2: Manufacturer: ASIX[ 1.564052] usb 2-2: SerialNumber: 0066C5FF[ 4.767474] ax88179_178a 2-2:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-2, ASIX AX88179 USB 3.0 Gigabit Ethernet, f8:e4:3b:66:c5:ff[ 4.805382] usbcore: registered new interface driver ax88179_178a 用的lede 没问题,官方最新就有问题,后来改半虚拟化。 折腾的代价... 但折腾的过程才是意义所在吧。 固件是用lean大佬的源码编译的,而且我一直用的都是半虚拟化接口,今天刚改成E1000模式测试 看起来这不是掉线时候的日志吧。。。。 嗯 现在还没掉线 只有掉线的时候才能看一下 我之前看过没看到什么好像
页:
[1]