Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mopowa

#1
Hardware and Performance / Re: usb ethernet ASIX AX88179A
September 15, 2023, 01:58:46 AM
Quote from: tbiv56 on March 19, 2023, 11:53:51 AM
I am using a Dell Wyse 5060 that has only a single ethernet port with OPNSense 23.1.
I bought two USB ethernet ports.  One is ASIX AX88179A, and the other is a RealTek.
Both behave the same way.  I am only using the AX88179A at the moment, and it is inserted into a USB3.0 port.
They constantly go DOWN, then UP.  (see attached photo)
i am able to have some throughput, but the constant flipping of the port gives poor results.

On OPNSense dashboard, I updated the system with all updates.
I normally use ubuntu linux, so I know nothing about FreeBSD, and I'm at a loss to get this fixed.
Any help would be appreciated.

I had a similar problem with a dual-eth realtek USB3 adapter.
This is how I fixed it. Maybe this can help you.

I created this script at /usr/local/etc/rc.syshook.d/early/50-realtek_usbconfig_workaround

#!/bin/sh
# WORKAROUND for the UP/DOWN cycling of the USB ethernet adapter
# cf. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255251


echo "FreeBSD USB workaround for USB-ethernet adapter"
echo "See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255251"
echo "Looking for the Realtek Adapters to get their USB address"

USB_DEVICES=`usbconfig | grep "Realtek USB" | cut -f 1 -d ":"`
echo $USB_DEVICES

if test "$USB_DEVICES" = ''
then
  echo "No Realtek USB Ethernet adapters found. Are they plugged in?"
  echo "Or is this script running too early?"
else
  echo Found the following adapters: $USB_DEVICES
  for i in $USB_DEVICES
  do
    echo usbconfig -d $i set_config 1
    usbconfig -d $i set_config 1
  done
fi