USB Ethernet issue

I am swapping out an existing AXIS USB Ethernet adapter with another one based on REALTEK. I start to getting issues of new USB ethernet adapter doesn’t work. It will start functioning for a few minutes once vyos boots up. But soon it shuts down. I have no idea why,
Here are some logs. Nothing really jumps out

Sep 11 04:49:57 EdgeRouterX-2012 agetty[3222]: /dev/ttyS0: not a tty
Sep 11 04:50:07 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Succeeded.
Sep 11 04:50:07 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Service RestartSec=100ms expired, scheduling r$Sep 11 04:50:07 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Scheduled restart job, restart counter is at 2$Sep 11 04:50:07 EdgeRouterX-2012 systemd[1]: Stopped Serial Getty on ttyS0.
Sep 11 04:50:07 EdgeRouterX-2012 systemd[1]: Started Serial Getty on ttyS0.
Sep 11 04:50:08 EdgeRouterX-2012 agetty[3225]: /dev/ttyS0: not a tty
Sep 11 04:50:10 EdgeRouterX-2012 kernel: [  311.740131] usb 2-4: USB disconnect, device number 3
Sep 11 04:50:10 EdgeRouterX-2012 bgpd[1559]: [EC 100663301] INTERFACE_STATE: Cannot find IF eth1 in VRF 0
Sep 11 04:50:10 EdgeRouterX-2012 isisd[1580]: circuit already disconnected
Sep 11 04:50:10 EdgeRouterX-2012 netplugd[1442]: eth1: can't get flags: No such device
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.542005] usb 2-4: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.555183] usb 2-4: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.555197] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.555209] usb 2-4: Product: USB 10/100/1000 LAN
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.555220] usb 2-4: Manufacturer: Realtek
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.555229] usb 2-4: SerialNumber: 000001
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.674354] usb 2-4: reset SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Sep 11 04:50:11 EdgeRouterX-2012 kernel: [  312.718930] r8152 2-4:1.0 eth1: v1.10.11
Sep 11 04:50:10 EdgeRouterX-2012 netplugd[1442]: eth1: can't get flags: No such device
Sep 11 04:50:11 EdgeRouterX-2012 netplugd[1442]: : state DOWN flags 0x860f4d40 RUNNING,PROMISC,MASTER,SLAVE,860f4000 -> 0x00001002 BROADCAST,MULTICAST
Sep 11 04:50:11 EdgeRouterX-2012 systemd-udevd[3232]: Using default interface naming scheme 'v240'.
Sep 11 04:50:11 EdgeRouterX-2012 systemd-udevd[3232]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Sep 11 04:50:18 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Succeeded.
Sep 11 04:50:18 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Service RestartSec=100ms expired, scheduling restart.
Sep 11 04:50:18 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Scheduled restart job, restart counter is at 23.
Sep 11 04:50:18 EdgeRouterX-2012 systemd[1]: Stopped Serial Getty on ttyS0.
Sep 11 04:50:18 EdgeRouterX-2012 systemd[1]: Started Serial Getty on ttyS0.
Sep 11 04:50:18 EdgeRouterX-2012 agetty[3240]: /dev/ttyS0: not a tty
Sep 11 04:50:26 EdgeRouterX-2012 zebra[1548]: if_zebra_speed_update: eth1 old speed: 0 new speed: 100
Sep 11 04:50:28 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Succeeded.
Sep 11 04:50:28 EdgeRouterX-2012 systemd[1]: serial-getty@ttyS0.service: Service RestartSec=100ms expired, scheduling restart.

What version of Vyos?
Have you tried turning off all the offloading for the Ethernet adaptor Interface?

Version 1.3
This is the current offline. I’m back to old USB adapter

vyos@Ed~$ show interfaces ethernet eth1 physical off
load
rx-checksumming               on
tx-checksumming               on
tx-checksum-ipv4              on
tx-checksum-ipv6              on
scatter-gather                off
tcp-segmentation-offload      off
udp-fragmentation-offload     off
generic-segmentation-offload  off  [requested  on]
generic-receive-offload       on
tx-nocache-copy               off

Ok. I delete “GRO” and it seems working. Any reason why?

well, it looks like I celebrated too early. It lasts a little bit longer but eventually same thing happened.

I would try turning off all offloading. Some of these USB Adaptors are pretty average at best, and their drivers sometimes are quite buggy for offload features. Realtek are especially known I’m afraid for locking up and just generally not being very good. Cheap and Cheerful, as they say. What is the exact module that being loaded when you plug the USB Adaptor in (sudo lsmod) - I’d find what that is, and then do some general googling around the adaptor + linux. See if other people who own them and use them under Linux have similar problems and if they have any workarounds etc that help.

Ok. I am using StarTech USB adapter. The UGREEN one I was using before works well on the 1.3. But once I upgrade to 1.3.2, same thing starts to happen.
I am now getting rid of all USB adapter and switch to use VLAN. The Onboard NIC seems working well.

1 Like

I’ve never had great experinces with USB Adaptors. They’re great for using with a Laptop in a pinch but personally I’d never use them to run a router that I need to be reliable. I agree VLANs are a better way to go, even though you have to trombone traffic.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.