The USB-to-Ethernet adapter promising plug-and-play fails to connect on Linux
Buying a USB 3.0 to Gigabit Ethernet adapter for a laptop without an RJ45 port should be the simplest task imaginable: plug it in, wait a few seconds, and browse. With certain Linux kernels, the "plug-and-play" promise remains just that—a promise. The device appears, the system enumerates it, the driver seems loaded, yet the network link never comes up. The trouble erupts when the user needs exactly this: a wired connection where Wi-Fi performs poorly.
Why doesn't a USB Ethernet adapter connect on Linux?
The fault rarely lies with the hardware, but rather with the software chain required to recognize it. The machine runs Linux Mint with kernel 5.4.0-42-generic, and the adapter is a TP-Link UE300/UE330 based on the Realtek chipset handled by the r8152 module. Before compiling anything, it is reasonable to check three things: whether the device appears in "lsusb", if the module is loaded—via "lsmod"—and if an associated network interface exists, using "ip link" or "ifconfig".
What stands out in this case is that the manufacturer advertises Linux compatibility and plug-and-play functionality. The reality is a device that may require manually compiling a driver when the version integrated into the kernel causes issues. The hardware is more than sufficient; the support is barely adequate.
The driver maze: from version 2.08.0 to 2.14.0
The attempted fix involves a driver repository for the Realtek chipset, with instructions that must be trinc precisely: enter the correct folder and execute "make && make install" trinc by "depmod -a". The detail that throws users off is the path: compiling from r8152-2.08.0 is not the same as from r8152-2.14.0, and doing so from the wrong directory leaves the module uninstalled without raising an obvious error.
From there, recipes multiply. Some suggest installing kernel headers, running "make clean", and manually copying the module to the network folder, chaining "depmod -a", "modprobe", and "insmod". Others recall that this very device has been supported since much older kernels—citing 4.14—and that the problem might not lie with the driver, but with the network configuration. Some even suggest booting into a 4.15.0-43 kernel.
lsusb, ip link, and ping: the diagnosis that never arrives
In a wired connection, the router decides address allocation: if the adapter gets an IP via DHCP, the typical gateway points to 192.168.1.1, and it is advisable to set a known DNS, such as Google's 8.8.8.8. Serious diagnosis requires disconnecting Wi-Fi—otherwise two interfaces mix and tests yield nothing—and launching three pings: to the router, to a public IP, and to a domain.
The confusing symptom is that, in the data the kernel provides about the device, it appears recognized, but no link establishment is visible, as if no cable were connected. Reviewing the interfaces configuration file is of little use if the interface does not even come up. And in /var/log, there is no trace of a message log where the error could be read.
Is it worth fighting with the driver or changing the adapter?
Opinions are split here. One school insists on organizing the diagnosis before touching ten things at once: checking "lsusb", "lsmod", and interface configuration, and only then compiling. Another advocates booting a different live distribution—or even a rescue Windows—to rule out that the failure stems from the module version included in the distro.
And there is the pragmatic exit: sell the device and buy one that works out of the box. Its argument is common sense: when the adapter costs little and hours accumulate, a compatible piece is cheaper than the fight. Counterarguments weigh that the manufacturer sells it as factory-compatible and that, according to that logic, it should work without drama. In between, home remedies appear, such as testing the device on a USB 2.0 port instead of a 3.0 one.
What remains unresolved
With what is on the table, the most likely resolution is reinstalling the driver from the correct folder or trying a different kernel. But until outputs from "lsusb", "ip link", and ping results appear, any diagnosis is a gamble. And so it continues: an adapter sold as a universal solution and an operating system that cannot quite shake its hand.
Summary of a discussion on Burbuja.info - Foro de economía, actualidad y política., translated from Spanish and reviewed before publication.
Read the full discussion (119 replies).
A desktop with Windows Vista and no Wi-Fi is revived with a €5 USB WiFi adapter and lightweight Linux. Windows 10 failed and the disk showed damaged sectors.