You are not logged in.
My ethernet was working fine till yesterday when I upgrade the NetworkManager package to latest. After the upgrade, it stopped working. I downgraded the package but the ethernet connection is still not working.
Till now, after downgrading the package, I tried several things like blacklisting the r8169 module and installing r8168 module. I also tried setting the kernel parameter iommu=soft. Then I tried changing the dhcp client to dhcpcd for network manager. This also did not help.
Everything was working fine till yesterday so apart from downgrading NetworkManager, I am not able to figure out what broke the system.
The ethernet connects to internet but then immediately disconnects because of "reason: carrier-changed".
Journal logs:
Feb 25 14:02:47 Enigma systemd-networkd[357]: enp2s0: Gained carrier
Feb 25 14:02:47 Enigma NetworkManager[3189]: <info> [1708849967.7810] device (enp2s0): carrier: link connected
Feb 25 14:02:47 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full - flow control off
Feb 25 14:02:47 Enigma NetworkManager[3189]: <info> [1708849967.7814] device (enp2s0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
Feb 25 14:02:48 Enigma systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Note that I am dual booting with Ubuntu and ethernet is working on it.
Last edited by Dishank (2024-02-26 17:34:15)
Offline
Did you restart NetworkManager after downgrading? There was an actual bug here, but it should be fixed in networkmanager 1.46.0-2 so you could update again
Offline
Yeah I rebooted after downgrade. Just tried downgrading the kernel and headers. Tried lts kernel. Nothing changed.
Offline
Please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
But even from that tiny snippet you've NM and networkd enabled
=> Also post the output of
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
Offline
Journal logs: logs
Output from
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
bluetooth.service | bluetooth.target.wants
dbus-org.bluez.service | system
dbus-org.freedesktop.network1.service | system
dbus-org.freedesktop.nm-dispatcher.service | system
default.target | system
display-manager.service | system
getty@tty1.service | getty.target.wants
NetworkManager-wait-online.service | network-online.target.wants
NetworkManager.service | multi-user.target.wants
p11-kit-server.socket | sockets.target.wants
pipewire-pulse.socket | sockets.target.wants
pipewire-session-manager.service | user
pipewire.socket | sockets.target.wants
remote-fs.target | multi-user.target.wants
supergfxd.service | getty.target.wants
systemd-network-generator.service | sysinit.target.wants
systemd-networkd-wait-online.service | network-online.target.wants
systemd-networkd.service | multi-user.target.wants
systemd-networkd.socket | sockets.target.wants
wireplumber.service | pipewire.service.wants
xdg-user-dirs-update.service | default.target.wants
Offline
Disable the systemd-networkd stuff.
Feb 26 18:44:24 Enigma kernel: Generic FE-GE Realtek PHY r8169-0-200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-200:00, irq=MAC)
Feb 26 18:44:24 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:44:38 Enigma kernel: Generic FE-GE Realtek PHY r8169-0-200:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
Feb 26 18:44:38 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full (downshifted) - flow control off
Feb 26 18:44:43 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:44:49 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:44:57 Enigma kernel: Generic FE-GE Realtek PHY r8169-0-200:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
Feb 26 18:44:57 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full (downshifted) - flow control off
Feb 26 18:44:59 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:45:05 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:45:13 Enigma kernel: Generic FE-GE Realtek PHY r8169-0-200:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
Feb 26 18:45:13 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full (downshifted) - flow control off
Feb 26 18:45:16 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:45:22 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Feb 26 18:45:30 Enigma kernel: Generic FE-GE Realtek PHY r8169-0-200:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
Feb 26 18:45:30 Enigma kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full (downshifted) - flow control off
Cable. It's either undergraded, not properly plugged (on either and) or broken.
Offline
I disabled systemd-network. Rebooted. It did not help.
Tried with another ethernet cable. That also did not help.
Also, my dual boot ubuntu has the ethernet working. So I expect arch to also work.
Offline
It "works", it's just permanently losing the carrier.
And it's downshifting, what's yelling at you that your cable isn't up to the task.
Post a journal w/ the r8168 driver and w/o networkd.
Offline
Ok, so it worked with a different ethernet cable. r8169 driver. Earlier when I had tested with different ethernet cable, I set the wrong IPv4 method. That's why it was not working. I set the IPv4 method to automatic and it worked.
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline