[SOLVED THE PROBLEM] Problem with 2 USB Network Cards Asix ax88179

duonghien.201089

New Member
Oct 22, 2021
4
0
1
35
Hi All,
I'm a new member using Proxmox for a few weeks. I found Proxmox very light and my experience was good. I'm having a problem with 2 USB NICs Asix, looking forward to help from other members.

Using:
- Proxmox Virtual Environment 7.0-11
- 2 USB NIC Asix AX88179

I have created 2 bridges vmbr1 and vmbr2 for 2 NICs, Everything works great. But I have a problem that when I restart Proxmox, one of these 2 USB NIC cards goes into a non-Active state. To be able to restore 2 NICs I use the command "ifreload -a" and everything works normally again.

659cd01b3d0ff751ae1e.jpg

I want both of these USB NICs to work when restarting Proxmox automatically. There is no need to use the "ifreload -a" command anymore. So what do I need to do? I tried setting crontab -e with the following command "@reboot sleep 30 && ifreload -c" But crontab seems to have no effect. Looking forward to your help. Thanks!


Code:
root@server:~# lsusb
Bus 002 Device 003: ID 2109:0813 VIA Labs, Inc. VL813 Hub
Bus 002 Device 007: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 002 Device 006: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub          
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 003: ID 2109:2813 VIA Labs, Inc. VL813 Hub
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub          
Thiết bị Bus 001 001: ID 1d6b: 0002 Trung tâm gốc Linux Foundation 2.0 [/ CODE]

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto enxf8e43b4f9e57
iface enxf8e43b4f9e57 inet manual

auto enxf8e43b4fb8b3
iface enxf8e43b4fb8b3 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.1.0.10/24
        gateway 10.1.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr1
iface vmbr1 inet static
        address 192.168.1.66/24
        bridge-ports enxf8e43b4f9e57
        bridge-stp off
        bridge-fd 0
        hwaddress f8:e4:3b:4f:9e:57

auto vmbr2
iface vmbr2 inet static
        address 192.168.1.88/24
        bridge-ports enxf8e43b4fb8b3
        bridge-stp off
        bridge-fd 0
        hwaddress f8:e4:3b:4f:b8:b3
 
Last edited:
Please provide the journal since the last boot: journalctl -b > journal.txt and attach the resulting file `journal.txt` here.
 
There are a lot of `errors` and `register`/`unregister` events in the log.
Have you tested the NIC on a different port?
Does it have firmware updates available?

You could also check the latest 5.13 kernel, as well as 5.15 [0].


[0] https://forum.proxmox.com/threads/opt-in-linux-kernel-5-15-for-proxmox-ve-7-x-available.100936/
I also updated to Proxmox Virtual Environment version 7.1-8 with Linux 5.13.19-4. Problem continues with 1 Asix USB NIC not activated. It is required to use ifreload -a to be able to run these 2 USB NICs simultaneously.

So is there a way for me to create 1 Cronjob every 2 minutes after restarting server the ifreload command will automatically run 1 time on Proxmox?

Is my command like this correct? I found crontab not working.


Code:
root@proxmox: crontab -e

#### Run ifreload command -a after 2 minutes each times up the server ###
@reboot sleep 120 && ifreload -a
 
Last edited:
SOLVED THE PROBLEM!

I finally found another way to fix the problem by :)

(1) Create 2 Linux Bridges for 2 USB NICs Asix 88179 named vmbr1, vmbr2 in Proxmox Server
(2) On the VM (OpenWrt) add 2 network bridges with:
Virtio=f8:e4:3b:4f:9e:57,bridge=vmbr1,firewall=1,queues=8
Virtio=f8:e4:3b:4f:b8:b3,bridge=vmbr1,firewall=1,queues=8

After days of testing I'm sure it's mandatory to set queues=8 on Virtio for the problem to go away. Also the problem may disappear if e1000 is selected.
 
Hi All,
I'm a new member using Proxmox for a few weeks. I found Proxmox very light and my experience was good. I'm having a problem with 2 USB NICs Asix, looking forward to help from other members.

Using:
- Proxmox Virtual Environment 7.0-11
- 2 USB NIC Asix AX88179

I have created 2 bridges vmbr1 and vmbr2 for 2 NICs, Everything works great. But I have a problem that when I restart Proxmox, one of these 2 USB NIC cards goes into a non-Active state. To be able to restore 2 NICs I use the command "ifreload -a" and everything works normally again.

View attachment 32550

I want both of these USB NICs to work when restarting Proxmox automatically. There is no need to use the "ifreload -a" command anymore. So what do I need to do? I tried setting crontab -e with the following command "@reboot sleep 30 && ifreload -c" But crontab seems to have no effect. Looking forward to your help. Thanks!


Code:
root@server:~# lsusb
Bus 002 Device 003: ID 2109:0813 VIA Labs, Inc. VL813 Hub
Bus 002 Device 007: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 002 Device 006: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub         
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 003: ID 2109:2813 VIA Labs, Inc. VL813 Hub
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub         
Thiết bị Bus 001 001: ID 1d6b: 0002 Trung tâm gốc Linux Foundation 2.0 [/ CODE]

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto enxf8e43b4f9e57
iface enxf8e43b4f9e57 inet manual

auto enxf8e43b4fb8b3
iface enxf8e43b4fb8b3 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.1.0.10/24
        gateway 10.1.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr1
iface vmbr1 inet static
        address 192.168.1.66/24
        bridge-ports enxf8e43b4f9e57
        bridge-stp off
        bridge-fd 0
        hwaddress f8:e4:3b:4f:9e:57

auto vmbr2
iface vmbr2 inet static
        address 192.168.1.88/24
        bridge-ports enxf8e43b4fb8b3
        bridge-stp off
        bridge-fd 0
        hwaddress f8:e4:3b:4f:b8:b3
I am having the same problem but cannot fix it. https://forum.proxmox.com/threads/ugreen-usb-adapter-is-not-active-asix-ax88179.110612/
 
confiotar. Great tip. I have 3 of those pesky ax88179 devices. After following your advice above, all three now activate as expected
 
An update on this. Yes the interfaces did activate however, networking did not fully work from cold until I added the hardware address into the /etc/network/interfaces file. I'm using VLANs. Just a couple for educational purposes and WITHOUT a VLAN capable switch (Unmanaged) and all good. hope the below helps those struggling with this. Example below is for one host but replicated to 5 others, all chatting between themselves.

Obviously with so many differing host versions and hardwares use at your own risk. Used dmesg to get interface and hardware address

auto lo
iface lo inet loopback

auto enp0s31f6
iface enp0s31f6 inet manual

auto enxf8e43b01c028 -- yours will be different
iface enxf8e43b01c028 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.221/24
gateway 192.168.0.1
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
bridge-ports enxf8e43b01c028 -- yours will be different
hwaddress f8:e4:3b:01:c0:28 -- yours will be different
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr1.20
iface vmbr1.20 inet static
address 10.0.20.21/24

auto vmbr1.30
iface vmbr1.30 inet static
address 10.0.30.21/24
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!