R8152 NIC is not detected in Yast2

OpenSUSE Tumbleweed
kernel-default-6.15.3-2.1.x86_64

I have a USB I/O box which has integrated NIC in it using the R8152 module. We have previously used this device with success in older version of Tumbleweed with kernel 5.17. However we were required to update our image which we use for installation on multiple devices as the image became too old.

Upon updating the image and testing the USB I/O box we have discovered a problem with the integrated NIC that is present in that I/O device.

I have tried debugging this as much as possible and it seems like every part of the OS detects the device except Yast2.

enp0s31f6 - Intel e1000e NIC adapter inside the PC itself that works correctly.
enp0s20f0u3u2 - r8152 NIC adapter that is not detected in Yast2

Debugging steps:

ls /sys/class/net/
enp0s20f0u3u2 enp0s31f6 lo

hwinfo --network

28: None 00.0: 10701 Ethernet
[Created at net.126]
Unique ID: k1Ji.ndpeucax6V1
SysFS ID: /class/net/enp0s20f0u3u2
SysFS Device Link: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.2/2-3.2:1.0
Hardware Class: network interface
Model: “Ethernet network interface”
Driver: “r8152”
Driver Modules: “r8152”
Device File: enp0s20f0u3u2
HW Address: f4:b5:20:46:cb:00
Permanent HW Address: f4:b5:20:46:cb:00
Link detected: no
Config Status: cfg=new, avail=yes, need=no, active=unknown

dmesg | grep r8152
[ 4.663893] [ T707] usbcore: registered new device driver r8152-cfgselector
[ 4.748011] [ T707] r8152-cfgselector 2-3.2: reset SuperSpeed USB device number 3 using xhci_hcd
[ 4.816956] [ T707] r8152 2-3.2:1.0 eth0: v1.12.13
[ 4.816984] [ T707] usbcore: registered new interface driver r8152
[ 4.897883] [ T726] r8152 2-3.2:1.0 enp0s20f0u3u2: renamed from eth0
[ 7.408792] [ T59] r8152 2-3.2:1.0 enp0s20f0u3u2: carrier on

When I create the file enp0s20f0u3u2 manually in /etc/sysconfig/network it works. However this solution is undesirable.

I even tried running OpenSUSE Tumbleweed iso installer and even there the R8152 NIC was not detected.

Then I tried running the LEAP 15.6 iso installer and voila the NIC adapter was there. So there is a high probability that yast2 detection is somehow broken?

Forgot to add the fact that when there is not /etc/sysconfig/network/ifcfg-enp0s31f6 file, which represents the correctly detected e1000e NIC, Yast2 is still able to detect it and it shows not configured. That does not happen with the r8152 NIC.

Please post:
zypper lr -d

Open a terminal, execute as root:
journalctl -f

Now put in the r8152 into the USB Port and post all new messages from the journal terminal.

I assume you are (trying to) use Wicked for configuring your network. When using NetworkManager this file (and others in /etc/sysconfig/network) are of no importance.

Oh yes, and please, to make the pieces of computer code in your posts better consumable by technical oriented people:

And post as complete as possible. That is starting with the line with the prompt and the command, then all output, and ending with the new prompt line.
When you really feel you need to change anything in such a copy, then explain that in a comment, else we take all characters literally.

Realtek firmware is installed?


zypper in -f kernel-firmware-realtek

pokladnatumble-efi:/etc/zypp/repos.d # zypper lr -d
# | Alias                            | Name                          | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                         | Service
--+----------------------------------+-------------------------------+---------+-----------+---------+------+----------+--------+-------------------------------------------------------------+--------
1 | download.opensuse.org-non-oss    | Hlavní repozitář (NON-OSS)    | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/non-oss/       |
2 | download.opensuse.org-oss        | Hlavní repozitář (OSS)        | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/tumbleweed/repo/oss/           |
3 | download.opensuse.org-tumbleweed | Hlavní aktualizační repozitář | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/             |
4 | repo-debug                       | openSUSE-Tumbleweed-Debug     | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/tumbleweed/repo/oss/     |
5 | repo-source                      | openSUSE-Tumbleweed-Source    | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/source/tumbleweed/repo/oss/    |
6 | teamviewer                       | TeamViewer - x86_64           | Yes     | (r ) Yes  | No      | -    |   99     | rpm-md | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/ |
pokladnatumble-efi:/etc/zypp/repos.d #



pokladnatumble-efi:/etc/zypp/repos.d # journalctl -f
Jul 02 10:05:42 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: USB disconnect, device number 18
Jul 02 10:05:42 pokladnatumble-efi kernel: f81534 ttyUSB0: Fintek F81532/F81534 converter now disconnected from ttyUSB0
Jul 02 10:05:42 pokladnatumble-efi kernel: f81534 ttyUSB1: Fintek F81532/F81534 converter now disconnected from ttyUSB1
Jul 02 10:05:42 pokladnatumble-efi kernel: f81534 ttyUSB2: Fintek F81532/F81534 converter now disconnected from ttyUSB2
Jul 02 10:05:42 pokladnatumble-efi kernel: f81534 ttyUSB3: Fintek F81532/F81534 converter now disconnected from ttyUSB3
Jul 02 10:05:42 pokladnatumble-efi kernel: f81534 1-3.1.2.3.4:1.0: device disconnected
Jul 02 10:05:42 pokladnatumble-efi kernel: usb 2-3: USB disconnect, device number 4
Jul 02 10:05:42 pokladnatumble-efi kernel: r8152-cfgselector 2-3.2: USB disconnect, device number 5
Jul 02 10:05:43 pokladnatumble-efi nut-monitor[1526]: UPS [myups@localhost]: connect failed: Connection failure: Cannot assign requested address
Jul 02 10:05:48 pokladnatumble-efi nut-monitor[1526]: UPS [myups@localhost]: connect failed: Connection failure: Cannot assign requested address
Jul 02 10:05:53 pokladnatumble-efi nut-monitor[1526]: UPS [myups@localhost]: connect failed: Connection failure: Cannot assign requested address
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3: new high-speed USB device number 19 using xhci_hcd
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3: New USB device found, idVendor=174c, idProduct=2074, bcdDevice= 0.01
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3: Product: ASM107x
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3: Manufacturer: Asmedia
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3: SerialNumber: 1234567890B8
Jul 02 10:05:55 pokladnatumble-efi kernel: hub 1-3:1.0: USB hub found
Jul 02 10:05:55 pokladnatumble-efi kernel: hub 1-3:1.0: 4 ports detected
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 2-3: new SuperSpeed USB device number 6 using xhci_hcd
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 2-3: New USB device found, idVendor=174c, idProduct=3074, bcdDevice= 0.01
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 2-3: Product: ASM107x
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 2-3: Manufacturer: Asmedia
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 2-3: SerialNumber: 1234567890B8
Jul 02 10:05:55 pokladnatumble-efi kernel: hub 2-3:1.0: USB hub found
Jul 02 10:05:55 pokladnatumble-efi kernel: hub 2-3:1.0: 4 ports detected
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3.1: new high-speed USB device number 20 using xhci_hcd
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3.1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jul 02 10:05:55 pokladnatumble-efi kernel: usb 1-3.1: Product: USB2.0 Hub
Jul 02 10:05:55 pokladnatumble-efi kernel: hub 1-3.1:1.0: USB hub found
Jul 02 10:05:55 pokladnatumble-efi kernel: hub 1-3.1:1.0: 4 ports detected
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 2-3.2: new SuperSpeed USB device number 7 using xhci_hcd
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 2-3.2: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 2-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 2-3.2: Product: USB 10/100/1000 LAN
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 2-3.2: Manufacturer: Realtek
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 2-3.2: SerialNumber: 000001
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 1-3.1.2: new high-speed USB device number 22 using xhci_hcd
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 1-3.1.2: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 1-3.1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jul 02 10:05:56 pokladnatumble-efi kernel: usb 1-3.1.2: Product: USB2.0 Hub
Jul 02 10:05:56 pokladnatumble-efi kernel: hub 1-3.1.2:1.0: USB hub found
Jul 02 10:05:56 pokladnatumble-efi kernel: hub 1-3.1.2:1.0: 4 ports detected
Jul 02 10:05:56 pokladnatumble-efi kernel: r8152-cfgselector 2-3.2: reset SuperSpeed USB device number 7 using xhci_hcd
Jul 02 10:05:56 pokladnatumble-efi kernel: r8152 2-3.2:1.0 eth0: v1.12.13
Jul 02 10:05:56 pokladnatumble-efi mtp-probe[5808]: checking bus 2, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.2"
Jul 02 10:05:56 pokladnatumble-efi mtp-probe[5808]: bus: 2, device: 7 was not an MTP device
Jul 02 10:05:56 pokladnatumble-efi kernel: r8152 2-3.2:1.0 enp0s20f0u3u2: renamed from eth0
Jul 02 10:05:56 pokladnatumble-efi mtp-probe[5831]: checking bus 2, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3.2"
Jul 02 10:05:56 pokladnatumble-efi mtp-probe[5831]: bus: 2, device: 7 was not an MTP device
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.1: new low-speed USB device number 23 using xhci_hcd
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.1: New USB device found, idVendor=413c, idProduct=2003, bcdDevice= 3.06
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.1: Product: Dell USB Keyboard
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.1: Manufacturer: Dell
Jul 02 10:05:57 pokladnatumble-efi kernel: input: Dell Dell USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.1/1-3.1.2.1:1.0/0003:413C:2003.0008/input/input22
Jul 02 10:05:57 pokladnatumble-efi kernel: hid-generic 0003:413C:2003.0008: input,hidraw3: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:14.0-3.1.2.1/input0
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3: new high-speed USB device number 24 using xhci_hcd
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3: Product: USB2.0 Hub
Jul 02 10:05:57 pokladnatumble-efi kernel: hub 1-3.1.2.3:1.0: USB hub found
Jul 02 10:05:57 pokladnatumble-efi kernel: hub 1-3.1.2.3:1.0: 4 ports detected
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5878]: checking bus 1, device 23: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.1"
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5878]: bus: 1, device: 23 was not an MTP device
Jul 02 10:05:57 pokladnatumble-efi systemd-logind[1076]: Watching system buttons on /dev/input/event4 (Dell Dell USB Keyboard)
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5888]: checking bus 1, device 23: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.1"
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5888]: bus: 1, device: 23 was not an MTP device
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.3: new full-speed USB device number 25 using xhci_hcd
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.3: New USB device found, idVendor=2c42, idProduct=5114, bcdDevice= 0.01
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.3: Product: HID Transfer
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.3: Manufacturer: Fintek
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.3: SerialNumber: B02010041304
Jul 02 10:05:57 pokladnatumble-efi kernel: input: Fintek HID Transfer as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.3/1-3.1.2.3.3/1-3.1.2.3.3:1.0/0003:2C42:5114.0009/input/input23
Jul 02 10:05:57 pokladnatumble-efi kernel: hid-generic 0003:2C42:5114.0009: input,hidraw4: USB HID v1.10 Device [Fintek HID Transfer] on usb-0000:00:14.0-3.1.2.3.3/input0
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: new high-speed USB device number 26 using xhci_hcd
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: New USB device found, idVendor=1934, idProduct=1202, bcdDevice= 1.00
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: Product: Fintek U4U F81534 AA66
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: Manufacturer: FINTEK Co Ltd
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: SerialNumber: 20140416-01.12
Jul 02 10:05:57 pokladnatumble-efi kernel: f81534 1-3.1.2.3.4:1.0: Fintek F81532/F81534 converter detected
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: Fintek F81532/F81534 converter now attached to ttyUSB0
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: Fintek F81532/F81534 converter now attached to ttyUSB1
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: Fintek F81532/F81534 converter now attached to ttyUSB2
Jul 02 10:05:57 pokladnatumble-efi kernel: usb 1-3.1.2.3.4: Fintek F81532/F81534 converter now attached to ttyUSB3
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5915]: checking bus 1, device 26: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.3/1-3.1.2.3.4"
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5916]: checking bus 1, device 25: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.3/1-3.1.2.3.3"
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5916]: bus: 1, device: 25 was not an MTP device
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5915]: bus: 1, device: 26 was not an MTP device
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5937]: checking bus 1, device 26: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.3/1-3.1.2.3.4"
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5937]: bus: 1, device: 26 was not an MTP device
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5942]: checking bus 1, device 25: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.2/1-3.1.2.3/1-3.1.2.3.3"
Jul 02 10:05:57 pokladnatumble-efi mtp-probe[5942]: bus: 1, device: 25 was not an MTP device
Jul 02 10:05:58 pokladnatumble-efi nut-monitor[1526]: UPS [myups@localhost]: connect failed: Connection failure: Cannot assign requested address

It wasn’t installed, but after installation there is no change. Also correct I am using Wicked.

Have you restarted the system?
Or put off and put in the device?

You will get a line like this one:

dmesg | grep -i r8152
[ 6.331425] usbcore: registered new device driver r8152-cfgselector
[ 6.472823] r8152-cfgselector 4-4.1.4: reset SuperSpeed USB device number 4 using xhci_hcd
[ 6.510952] r8152 4-4.1.4:1.0: load rtl8153b-2 v2 04/27/23 successfully
[ 6.544780] r8152 4-4.1.4:1.0 eth1: v1.12.13
[ 6.545075] usbcore: registered new interface driver r8152

Yes, restarted the system and then tried unplugging and plugging the I/O box. The lines starting with 859 are after plugging the device in.


pokladnatumble-efi:~ # dmesg | grep -i r8152
[    4.587471] [    T699] usbcore: registered new device driver r8152-cfgselector
[    4.727584] [    T699] r8152-cfgselector 2-3.2: reset SuperSpeed USB device number 3 using xhci_hcd
[    4.803750] [    T699] r8152 2-3.2:1.0 eth0: v1.12.13
[    4.803781] [    T699] usbcore: registered new interface driver r8152
[    4.897706] [    T689] r8152 2-3.2:1.0 enp0s20f0u3u2: renamed from eth0
[  854.271080] [     T78] r8152-cfgselector 2-3.2: USB disconnect, device number 3
[  859.372551] [     T78] r8152-cfgselector 2-3.2: reset SuperSpeed USB device number 5 using xhci_hcd
[  859.431018] [     T78] r8152 2-3.2:1.0 eth0: v1.12.13
[  859.448633] [   T2174] r8152 2-3.2:1.0 enp0s20f0u3u2: renamed from eth0
pokladnatumble-efi:~ #

Is this a notebook?

It is not. It is a VariPPC 250i with I/O box connected via USB-C.

Connect it to your Router and configure it with yast (add a new device) and it should work.

What do you mean? I can’t see the I/O box Realtek NIC adapter in Yast2. Thus this bug report.

Normal.
Add a new device:
(LANG=C does not work, so its in German, but I think you see what I mean.)

8: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:e0:4c:68:13:c2 brd ff:ff:ff:ff:ff:ff
    altname enp9s0f3u4u1u4
    inet 192.168.0.147/24 brd 192.168.0.255 scope global eth1
       valid_lft forever preferred_lft forever

I will try it tomorrow. However that is not a solution to the problem, merely a workaround. I need to be able to see the RTL8111/8168/8411 in Yast the way you have it on the screenshot.

After adding and saving the network configuration and starting configuration once again:

Note: Interface activation and link detection

During activation of a network interface, wicked checks for a carrier and only applies the IP configuration when a link has been detected. If you need to apply the configuration regardless of the link status (for example, when you want to test a service listening to a certain address), you can skip link detection by adding the variable LINK_REQUIRED=no to the configuration file of the interface in /etc/sysconfig/network/ifcfg.

Additionally, you can use the variable LINK_READY_WAIT=5 to specify the timeout for waiting for a link in seconds.

For more information about the ifcfg-* configuration files, refer to Section 23.5.2.5, “/etc/sysconfig/network/ifcfg-* and man 5 ifcfg.

That still does not solve the issue with detection.

There must be an update in Tumbleweed that broke this detection. LEAP 15.6 installer can detect the NIC correctly, but Tumbleweed installer cannot.