Hello Lemmy,
Im trying to troubleshoot a connection issue to my laptop which is connect using the buildin ethernet port. The connection drops sometimes for a few minutes and then im able to connect again.
This is the port being used:
k3s-alpine-lap-6:~# lspci -nn | grep -i ethernet
0000:01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 16)
Some information about the drivers being used:
k3s-alpine-lap-6:~# ethtool -i eth0
driver: r8169
version: 6.12.76-0-lts
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version:
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
Some information i found using dmesg:
[ 10.535868] Bridge firewalling registered
[ 29.478495] usb 3-1: USB disconnect, device number 2
[ 30.635978] atkbd serio0: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
[ 30.635990] atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
[ 30.645244] atkbd serio0: Unknown key released (translated set 2, code 0xd8 on isa0060/serio0).
[ 30.645256] atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
[ 55.836493] EXT4-fs (sda): mounted filesystem f9742482-7e09-4460-a10d-81c5f5abaf23 r/w with ordered data mode. Quota mode: none.
[ 347.743005] Initializing XFRM netlink socket
[ 354.759146] eth0: renamed from tmp5fca0
[ 354.898482] eth0: renamed from tmp375a5
[ 354.930148] eth0: renamed from tmpaf7f3
[ 354.970131] eth0: renamed from tmpc035d
[ 356.883835] eth0: renamed from tmp68492
[ 518.679868] Key type trusted registered
[ 518.745372] Key type encrypted registered
[ 518.750554] device-mapper: uevent: version 1.0.3
[ 518.750614] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[ 599.682490] hrtimer: interrupt took 24965 ns
[ 832.545952] r8169 0000:01:00.0 eth0: Link is Down
[ 845.527825] r8169 0000:01:00.0 eth0: Link is Up - 100Mbps/Full - flow control off
[ 846.467804] r8169 0000:01:00.0 eth0: Link is Down
[ 848.089514] r8169 0000:01:00.0 eth0: Link is Up - 100Mbps/Full - flow control off
[ 2407.857541] r8169 0000:01:00.0 eth0: Link is Down
[ 2420.398450] r8169 0000:01:00.0 eth0: Link is Up - 100Mbps/Full - flow control off
Im not knowledgeable about this types of issues so im not even sure the driver is the issue.
Does someone have a simular experience or knows what could cause this issue i would love to hear it! Have a great day!
(Im sorry my post isn’t very specific about the issue but im not sure how i could better start troubleshooting this)


This isn’t uncommon. There’s a few things you can try:
https://www.baeldung.com/linux/realtek-ethernet-persistent-connection-issue
The other thing that is unusual is that you said when you connected a known good device it connected at 1Gbps but in your dmesg output it is only connecting at 100Mbps. Is it being plugged directly into your router/could you power cycle that device to see if maybe it is responsible for the link drop (also the cable could have some insulation damage and is picking up intermittent EMI).