Ubuntu – Install Realtek 8152 or 8153 drivers on Ubuntu 16.10

delldriversnetworkingrealtekusb

I've got a Dell XPS 13 9360 Developer Edition (Ubuntu 16.10). I'd like to use an ethernet adapter. I've bought a Dell Dock WD15 and a DA200 but I can't get the ethernet connection to work.

When I connect the USB-C cable, these devices show up in the lsusb list:

DA200:

Bus 004 Device 004: ID 0bda:8152 Realtek Semiconductor Corp.

WD 15:

Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp.

How can I get this ethernet adapter working? Do I need to install extra drivers?

I've tested both devices with a Dell Latitude 7275 and Windows 10 and they're working fine.

Update: results from dmesg | grep -i r815:

[   12.656121] usbcore: registered new interface driver r8152
[   13.438331] r8152 4-1.2:1.0 (unnamed net_device) (uninitialized): Using pass-thru MAC addr d4:81:d7:22:ec:02
[   13.494047] r8152 4-1.2:1.0 eth0: v1.08.6
[   13.666848] r8152 4-1.2:1.0 enxd481d722ec02: renamed from eth0
[  540.891031] r8152 4-1.2:1.0 (unnamed net_device) (uninitialized): Using pass-thru MAC addr d4:81:d7:22:ec:02
[  540.944670] r8152 4-1.2:1.0 eth0: v1.08.6
[  542.486406] r8152 4-1.2:1.0 enxd481d722ec02: renamed from eth0
[ 1223.991503] usbcore: deregistering interface driver r8152
[ 1224.656988] r8152: loading out-of-tree module taints kernel.
[ 1224.657054] r8152: module verification failed: signature and/or required key missing - tainting kernel
[ 1224.824563] r8152 4-1.2:1.0 eth0: v2.08.0 (2016/12/09)
[ 1224.824568] r8152 4-1.2:1.0 eth0: This product is covered by one or more of the following patents:
[ 1224.825680] usbcore: registered new interface driver r8152
[ 1224.826492] r8152 4-1.2:1.0 enx847beb33f1dd: renamed from eth0
[ 1415.312339] r8152 4-1.4:1.0 eth0: v2.08.0 (2016/12/09)
[ 1415.312345] r8152 4-1.4:1.0 eth0: This product is covered by one or more of the following patents:
[ 1427.261311] r8152 4-1.4:1.0 eth0: v2.08.0 (2016/12/09)
[ 1427.261316] r8152 4-1.4:1.0 eth0: This product is covered by one or more of the following patents:
[ 1429.002364] r8152 4-1.4:1.0 enx00249b2352c9: renamed from eth0
[ 1564.756280] r8152 4-1.4:1.0 (unnamed net_device) (uninitialized): Unknown version 0x7cf0
[ 1564.756286] r8152 4-1.4:1.0 (unnamed net_device) (uninitialized): Unknown Device
[ 1629.207955] r8152 4-1.2:1.0 eth0: v2.08.0 (2016/12/09)
[ 1629.207960] r8152 4-1.2:1.0 eth0: This product is covered by one or more of the following patents:
[ 1631.014946] r8152 4-1.2:1.0 enx847beb33f1dd: renamed from eth0
[ 6101.594643] r8152 4-1.4:1.0 eth0: v2.08.0 (2016/12/09)
[ 6101.594649] r8152 4-1.4:1.0 eth0: This product is covered by one or more of the following patents:
[ 6103.232845] r8152 4-1.4:1.0 enx00249b2352c9: renamed from eth0

Output from dmesg | grep enx:

[   13.259620] r8152 4-1.2:1.0 enx847beb33f1dd: renamed from eth0
[  177.044463] r8152 4-1.4:1.0 enx00249b2352c9: renamed from eth0

Best Answer

Here's what I did to get the driver working on Debian Stretch:

1) Download official driver from realtek: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software

2) untar it: # tar xvf ./r8152.53.56-2.12.0.tar

3) make sure you have current kernel headers installed sudo apt install linux-headers-$(uname -r)

4) compile the driver cd r8152_2.12.0 && make

5) install the compiled driver sudo make install

Related Question