I am having an odd problem with my ethernet port. I assume this came with a dnf update but that was some weeks ago so I can't help figure out what update might have done it. When first discovered I think I found that booting from an older kernel did not fix it. I assume that the physical interface is not the problem since a physical "bounce" always fixes it and it shows no other problems. To explain that...
The trouble is that the ethernet port will not come out of the "no- carrier" state no matter how much I mess with the various commands that are supposed to effect it.
The simple fix is to physically unplug and replug the cable. When it is not working (each reboot) there are not lights on. The physical "bounce" lights up the LEDs and it comes right up.
So, I am asking for something to add to rc.local that does the same thing.
I use a wifi adapter for my main/Internet connection. This port is just used for a wired link to my Raspberry Pi.
The command that seems like it *should* work: sudo mii-tool --reset enp5s0
But that does not fix it.
Info:
The below is taken while it is working...
sudo lspci -v 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02) Subsystem: ASUSTeK Computer Inc. M3A78 Series Motherboard Flags: bus master, fast devsel, latency 0, IRQ 18 I/O ports at e800 [size=256] Memory at faeff000 (64-bit, prefetchable) [size=4K] Memory at faee0000 (64-bit, prefetchable) [size=64K] Expansion ROM at fbef0000 [disabled] [size=64K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/2 Maskable- 64bit+ Capabilities: [70] Express Endpoint, MSI 01 Capabilities: [b0] MSI-X: Enable+ Count=2 Masked- Capabilities: [d0] Vital Product Data Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00- 00 Kernel driver in use: r8169 Kernel modules: r8169
nmcli enp5s0: connected to Ether link to Pi "Realtek RTL8111/8168/8411" ethernet (r8169), 00:26:18:3A:2A:1B, hw, mtu 1500 inet4 192.168.11.4/24 route4 192.168.11.0/24 inet6 fe80::226:18ff:fe3a:2a1b/64 route6 fe80::/64
This does kill and then fix it when working, thus proving that this module is being used: sudo rmmod r8169 sudo modprobe r8169
ip link 4: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 00:26:18:3a:2a:1b brd ff:ff:ff:ff:ff:ff