You are not logged in.

#1 2022-04-08 23:44:13

selemene
Member
Registered: 2022-04-08
Posts: 3

My ethernet network device stucks can't connect to wired connection

Hi, this is my first post here.

I've been struggling trying to fix this problem the last few days and found no solution.



All of the sudden my ethernet device (enp8s0) couldn't connect to my network as usual. It seems to find the connection but gets stuck trying to connect and then times out. journalctl -f shows this.

Apr 08 18:14:52 y dhcpcd[159023]: enp8s0: NAK: via 192.168.1.1
Apr 08 18:14:52 y dhcpcd[159023]: enp8s0: executing: /usr/lib/dhcpcd/dhcpcd-run-hooks NAK
Apr 08 18:14:53 y dhclient[266333]: DHCPREQUEST for 192.168.1.69 on enp8s0 to 255.255.255.255 port 67
Apr 08 18:14:53 y dhclient[266333]: DHCPNAK from 192.168.1.1
Apr 08 18:15:01 y dhclient[266333]: DHCPDISCOVER on enp8s0 to 255.255.255.255 port 67 interval 7
Apr 08 18:15:01 y dhclient[266333]: DHCPOFFER of 192.168.1.69 from 192.168.1.1
Apr 08 18:15:01 y dhclient[266333]: DHCPREQUEST for 192.168.1.69 on enp8s0 to 255.255.255.255 port 67
Apr 08 18:15:01 y dhclient[266333]: DHCPNAK from 192.168.1.1
Apr 08 18:15:09 y dhclient[266333]: DHCPREQUEST for 192.168.1.69 on enp8s0 to 255.255.255.255 port 67
Apr 08 18:15:09 y dhclient[266333]: DHCPNAK from 192.168.1.1
Apr 08 18:15:11 y NetworkManager[490983]: <info>  [1649459711.0094] device (enp8s0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Apr 08 18:15:11 y NetworkManager[490983]: <warn>  [1649459711.0105] device (enp8s0): Activation: failed for connection 'Wired connection 1'

The device seems to be up fine, even when I run

dhcpcd enp8s0

it shows no error.

However, when I connect my phone via USB-C cable to use it as hotspot it connects fine, creating a new device (enp0s20f0u4c4i2), nmcli shows this:

enp0s20f0u4c4i2: connected to Wired connection 2
        "Apple iPhone 5/5C/5S/6/SE"
        ethernet (ipheth), DA:DE:3A:3A:93:7F, hw, mtu 1500
        ip4 default
        inet4 172.20.10.2/28
        route4 default via 172.20.10.1 metric 101
        route4 default via 172.20.10.1 metric 1005
        route4 172.20.10.0/28 metric 101
        route4 172.20.10.0/28 metric 1005
        inet6 fe80::634d:6e76:d40e:abda/64
        route6 fe80::/64 metric 1024

This is the ethernet controller I'm using:

08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: Lenovo Device 38c2
	Flags: bus master, fast devsel, latency 0, IRQ 17
	I/O ports at 3000 [size=256]
	Memory at a4204000 (64-bit, non-prefetchable) [size=4K]
	Memory at a4200000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

And the status that dmesg shows:

[    7.396136] r8169 0000:08:00.0 enp8s0: Link is Down
[    8.970264] r8169 0000:08:00.0 enp8s0: Link is Up - 100Mbps/Full - flow control rx/tx
[   29.640844] r8169 0000:08:00.0 enp8s0: Link is Down
[   31.208406] r8169 0000:08:00.0 enp8s0: Link is Up - 100Mbps/Full - flow control rx/tx

Hope someone can help. Thanks in advance. smile

Offline

#2 2022-04-08 23:59:05

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: My ethernet network device stucks can't connect to wired connection

Offline

#3 2022-04-09 00:28:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: My ethernet network device stucks can't connect to wired connection

Welcome to the forums, but please do not cross post

Leaving this one open.  In the future, if you wish a post moved, please place a request with the moderators using the report link


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2022-04-09 06:12:01

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: My ethernet network device stucks can't connect to wired connection

https://wiki.archlinux.org/title/Networ … k_managers - blue box.
I see at least dhclient and dhcpcd and I'm willing to bet your house that NM also uses the internal dhcp client.

When your ban is over, please 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

Board footer

Powered by FluxBB