I’ve recently switched over to EndeavourOS and I have one problem which I haven’t had with my other distro’s before and I cannot figure out what I need to do to fix it.
So whenever ethernet is plugged in to my laptop, it randomly starts disconnecting and reconnecting. This process takes maybe 1 second in total but it spams my notifications and it is annoying because it is interrupting downloads etc.
I have narrowed it down to the following journalctl sequence:
okt 18 23:25:45 user dhcpcd[2764]: enp60s0u1u1: carrier lost
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2349] device (enp60s0u1u1): state change: activated -> unmanaged (reason 'removed', sys-iface-state: 'removed')
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2351] dhcp4 (enp60s0u1u1): canceled DHCP transaction, DHCP client pid 2762
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2351] dhcp4 (enp60s0u1u1): state changed extended -> terminated
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2355] dhcp6 (enp60s0u1u1): canceled DHCP transaction
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2356] dhcp6 (enp60s0u1u1): state changed bound -> terminated
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2638] policy: set 'xxx' (wlan0) as default for IPv4 routing and DNS
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.2644] policy: set 'xxx' (wlan0) as default for IPv6 routing and DNS
okt 18 23:25:45 user NetworkManager[466]: <warn> [1634592345.2674] dns-sd-resolved[72d0ec56ed290ea0]: send-updates SetLinkDomains@4 failed: GDBus.Error:org.freedesktop.resolve1.NoSuchLink: Link 4>
okt 18 23:25:45 user NetworkManager[466]: <warn> [1634592345.2761] dhcp-listener: dhcp-event: (pid 2762) unhandled DHCP event for interface enp60s0u1u1
okt 18 23:25:45 user NetworkManager[466]: <warn> [1634592345.2872] dhcp-listener: dhcp-event: (pid 2762) unhandled DHCP event for interface enp60s0u1u1
okt 18 23:25:45 user dhcpcd[2764]: enp60s0u1u1: removing interface
okt 18 23:25:45 user NetworkManager[466]: <warn> [1634592345.2948] dhcp-listener: dhcp-event: (pid 2762) unhandled DHCP event for interface enp60s0u1u1
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.6380] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/6)
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.6738] audit: op="statistics" interface="eth0" ifindex=5 args="500" pid=1683 uid=1000 result="success"
okt 18 23:25:45 user NetworkManager[466]: <info> [1634592345.6851] audit: op="statistics" interface="eth0" ifindex=5 args="500" pid=1683 uid=1000 result="success"
okt 18 23:25:46 user NetworkManager[466]: <info> [1634592346.4099] device (eth0): interface index 5 renamed iface from 'eth0' to 'enp60s0u1u1'
okt 18 23:25:46 user NetworkManager[466]: <info> [1634592346.4275] device (enp60s0u1u1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
okt 18 23:25:46 user NetworkManager[466]: <info> [1634592346.4371] settings: (enp60s0u1u1): created default wired connection 'Wired connection 1'
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1893] device (enp60s0u1u1): carrier: link connected
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1908] device (enp60s0u1u1): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1925] policy: auto-activating connection 'Wired connection 1' (29769699-343e-33eb-8276-06d9b3eeea78)
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1935] device (enp60s0u1u1): Activation: starting connection 'Wired connection 1' (29769699-343e-33eb-8276-06d9b3eeea78)
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1937] device (enp60s0u1u1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1944] device (enp60s0u1u1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1953] device (enp60s0u1u1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1960] dhcp4 (enp60s0u1u1): activation: beginning transaction (timeout in 45 seconds)
okt 18 23:25:48 user NetworkManager[466]: <info> [1634592348.1976] dhcp4 (enp60s0u1u1): dhcpcd started with pid 2852
So somehow the carrier gets lost by an unhandled dhcp event. Now running dhcpcd -B enp60s0u1u1 results in the following output:
enp60s0u1u1: rebinding lease of 192.168.2.113
enp60s0u1u1: leased 192.168.2.113 for 86400 seconds
enp60s0u1u1: adding route to 192.168.2.0/24
enp60s0u1u1: adding default route via 192.168.2.254
enp60s0u1u1: soliciting an IPv6 router
enp60s0u1u1: Router Advertisement from fe80::xxxx:xxxx:xxxx:90c5
enp60s0u1u1: adding address 2a02:xxxx:xxxx:1:xxxx:3572:fe0:7bcb/64
enp60s0u1u1: adding route to 2a02:xxxx:xxxx:1::/64
enp60s0u1u1: adding default route via fe80::xxxx:xxxx:xxxx:90c5
enp60s0u1u1: requesting DHCPv6 information
enp60s0u1u1: failed to request DHCPv6 information
enp60s0u1u1: carrier lost
enp60s0u1u1: deleting address 2a02:xxxx:xxxx:1:xxxx:3572:fe0:7bcb/64
enp60s0u1u1: deleting route to 2a02:xxxx:xxxx:1::/64
enp60s0u1u1: deleting default route via fe80::xxxx:xxxx:xxxx:90c5
enp60s0u1u1: deleting route to 192.168.2.0/24
enp60s0u1u1: deleting default route via 192.168.2.254
enp60s0u1u1: removing interface
So to me it seems that the unhandled dhcp event is that it is not able to retreive DHCPv6 information and thus drops the entire connection. I’ve tried looking up on potential ways to solve this but I’m stuck and asking for help.
I have checked hardware, swapped internet cables and different routers. I tried the connection on different operating systems (Fedora 34 & Windows 10) and there they work just fine.
Do you think this is the issue? If it is does anyone have any suggestions on how to solve this?
It’s probably not this but first things first: clean the contacts on your cables and the laptop. Sometimes it’s just something that simple. Anything intermittent shouts hardware first, then software. Sorry if this is a bit silly, just checking.
Thanks for the swift reply! I forgot to mention this in my post but yes, I have checked the hardware, swapped out cables and even a router just to check. Everything works fine under Fedora 34 and Windows 10.
If it’s working under the other OS’s then it look like something is wrong with Network Manager in your EnOS setup. One thought: are you running EnOS in a VM?
Nope I’m running a dual boot setup. Is there any good references you know of on how to set up network manager? I tried looking at the arch wiki and followed the steps there to set up dhcp and dns etc. along with some other troubleshooting settings.
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Cannon Lake PCH CNVi WiFi (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #17 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #13 (rev f0)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Multimedia audio controller: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
06:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:02.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
07:04.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02)
08:00.0 System peripheral: Intel Corporation JHL6540 Thunderbolt 3 NHI (C step) [Alpine Ridge 4C 2016] (rev 02)
3c:00.0 USB controller: Intel Corporation JHL6540 Thunderbolt 3 USB Controller (C step) [Alpine Ridge 4C 2016] (rev 02)
70:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
71:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
The ethernet connection is via thunderbolt 3 so I guess lsusb is also relevant:
Bus 004 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 003: ID 2109:0813 VIA Labs, Inc. VL813 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 27c6:55b4 Shenzhen Goodix Technology Co.,Ltd. Fingerprint Reader
Bus 001 Device 003: ID 5986:114e Acer, Inc Integrated Camera
Bus 001 Device 007: ID 2109:0101 VIA Labs, Inc. USB 2.0 BILLBOARD
Bus 001 Device 006: ID 2109:2813 VIA Labs, Inc. VL813 Hub
Bus 001 Device 005: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 002: ID 046d:c539 Logitech, Inc. USB Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Installed the dkms drivers and did not do anything, still the same result sadly. The script restarts my ethernet connection but doesn’t do anything about the stability, still the same behaviour.
Not entirely, but I found out that the behaviour is not only limited to my ethernet connection. It also happens to my wlan however for some reason it reconnects quicker than it can disconnect so thats why wifi seems to be stable.
okt 19 12:57:11 user dhcpcd[1559]: wlan0: carrier lost
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5066] manager: rfkill: Wi-Fi hardware radio set disabled
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5066] device (wlan0): state change: activated -> unavailable (reason 'none', sys-iface-state: 'managed')
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5067] dhcp4 (wlan0): canceled DHCP transaction, DHCP client pid 1558
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5067] dhcp4 (wlan0): state changed extended -> terminated
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5126] device (wlan0): set-hw-addr: set MAC address to 46:9F:C4:63:68:A5 (scanning)
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5391] policy: set 'Wired connection 1' (enp60s0u2u1) as default for IPv4 routing and DNS
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5402] audit: op="radio-control" arg="wireless-enabled:off" pid=1287 uid=1000 result="success"
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5408] manager: rfkill: Wi-Fi now disabled by radio killswitch
okt 19 12:57:11 user NetworkManager[400]: <warn> [1634641031.5435] dhcp-listener: dhcp-event: (pid 1558) unhandled DHCP event for interface wlan0
okt 19 12:57:11 user NetworkManager[400]: <info> [1634641031.5437] device (p2p-dev-wlan0): state change: disconnected -> unavailable (reason 'supplicant-failed', sys-iface-state: 'ma>
okt 19 12:57:11 user NetworkManager[400]: <warn> [1634641031.5517] dhcp-listener: dhcp-event: (pid 1558) unhandled DHCP event for interface wlan0
okt 19 12:57:11 user dhcpcd[1559]: wlan0: old hardware address: c0:b8:83:d7:5e:e2
okt 19 12:57:11 user dhcpcd[1559]: wlan0: new hardware address: 46:9f:c4:63:68:a5
okt 19 12:57:14 user NetworkManager[400]: <info> [1634641034.1889] audit: op="statistics" interface="enp60s0u2u1" ifindex=4 args="0" pid=1287 uid=1000 result="success"
okt 19 12:57:14 user NetworkManager[400]: <info> [1634641034.2297] audit: op="statistics" interface="enp60s0u2u1" ifindex=4 args="500" pid=1510 uid=1000 result="success"
okt 19 12:59:38 user NetworkManager[400]: <info> [1634641178.4210] audit: op="statistics" interface="enp60s0u2u1" ifindex=4 args="2000" pid=1287 uid=1000 result="success"
okt 19 12:59:38 user NetworkManager[400]: <info> [1634641178.4377] audit: op="statistics" interface="enp60s0u2u1" ifindex=4 args="500" pid=1510 uid=1000 result="success"
okt 19 12:59:40 user NetworkManager[400]: <info> [1634641180.9971] audit: op="statistics" interface="enp60s0u2u1" ifindex=4 args="0" pid=1287 uid=1000 result="success"
okt 19 12:59:41 user NetworkManager[400]: <info> [1634641181.0013] audit: op="statistics" interface="enp60s0u2u1" ifindex=4 args="500" pid=1510 uid=1000 result="success"
okt 19 13:00:44 user NetworkManager[400]: <info> [1634641244.8916] device (enp60s0u2u1): state change: activated -> unmanaged (reason 'removed', sys-iface-state: 'removed')
okt 19 13:00:44 user NetworkManager[400]: <info> [1634641244.8920] dhcp4 (enp60s0u2u1): canceled DHCP transaction, DHCP client pid 2121
okt 19 13:00:44 user dhcpcd[2122]: enp60s0u2u1: carrier lost
okt 19 13:00:44 user NetworkManager[400]: <info> [1634641244.8921] dhcp4 (enp60s0u2u1): state changed bound -> terminated
okt 19 13:00:44 user NetworkManager[400]: <info> [1634641244.9099] manager: NetworkManager state is now DISCONNECTED
okt 19 13:00:44 user NetworkManager[400]: <warn> [1634641244.9113] dns-sd-resolved[604f5c76526efc20]: send-updates SetLinkDomains@4 failed: GDBus.Error:org.freedesktop.resolve1.NoSuc>
okt 19 13:00:44 user NetworkManager[400]: <warn> [1634641244.9208] dhcp-listener: dhcp-event: (pid 2121) unhandled DHCP event for interface enp60s0u2u1
okt 19 13:00:44 user NetworkManager[400]: <warn> [1634641244.9236] dhcp-listener: dhcp-event: (pid 2121) unhandled DHCP event for interface enp60s0u2u1
okt 19 13:00:44 user dhcpcd[2122]: enp60s0u2u1: removing interface
Settings for enp60s0u2u1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 32
Transceiver: internal
netlink error: Operation not permitted
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
Link detected: yes
Tried using ethtool -s enp60s0u2u1 speed 100 duplex full autoneg off, network speed is at a nice 100Mbps however journalctl still shows the same “carrier lost” and “unhandled dhcp event” sequence after which it gets terminated.