USB-ethernet adapter not working on OpenWrt

I tried to unplug the internet key and connect only the ethernet port but I still can't access the router

the device gives these answers only when it has no ethernet cable connected.

root@OpenWrt:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          7fff.dca632a916b3       no              eth0
                                                        eth1
root@OpenWrt:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
    link/ether dc:a6:32:a9:16:b3 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br-lan state DOWN qlen 1000
    link/ether 00:e0:4c:36:56:eb brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether dc:a6:32:a9:16:b4 brd ff:ff:ff:ff:ff:ff
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether dc:a6:32:a9:16:b3 brd ff:ff:ff:ff:ff:ff

If on the contrary I connect the ethernet cable the answer changes...

root@OpenWrt:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          7fff.dca632a916b3       no              eth0
root@OpenWrt:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
    link/ether dc:a6:32:a9:16:b3 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether dc:a6:32:a9:16:b4 brd ff:ff:ff:ff:ff:ff
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether dc:a6:32:a9:16:b3 brd ff:ff:ff:ff:ff:ff

Something bad happened, as eth1 completely disappeared as if the USB was disconnected. This could be the chip needing too much power and crashing when the cable becomes active. There should be messages in the log.

1 Like

I am encountering the same problem on RB750gr3 and rtl8152 usb adapter

How can i see if the usb ethernet need too much power
How to acccess this logs
thanks..

root@OpenWrt:~# lsusb v
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 1d5c:2000
Bus 001 Device 003: ID 0bda:8152
Bus 001 Device 002: ID 05e3:0610
Bus 002 Device 001: ID 1d6b:0003

I have the same problem on RB750gr3 and rtl8152 (TP-Link UE300 and Gembird generic usb adapter). It will not show the link present and zero packets go through. This port has more than enough power to run adapter. I have run RPI3 from this USB port for years on the other setup. Spec of rb750gr3 says 1A. Adapter states 150ma. It shows cable disconnected even thou led on adapter show connected and link up. Messing around in UI , deleting, reconfiguring etc. made it work, but it will break after reboot or usb adapter disconnect. So problem is intermittent with 98% time not working. Ran 22.03.4 and todays snapshot. same problem.