You are not logged in.

#1 2025-02-27 10:03:02

bowlin
Member
Registered: 2025-02-27
Posts: 59

Sometimes my ethernet works and sometimes it doesn't when booting

So I run dhcpcd@enp37s0 on boot, and I have a habit of checking if I can connect to the internet by pinging some service. Sometimes it goes through and other times it doesn't.

Systemctl status for the service (when I have no connection) says: "enp37s0: no IPv6 Routers available"

Other times it has also after that said: "Timed out" twice, but that complaint is the last entry now. Also when I try to ping something, the cursor blinks for awhile and then says: "Temporary failure in name resolution." As opposed to when dhcpcd times out in the status log, it's instantaneous.

Starting and stopping yields the following status:
DHCP lease expired
DHCP lease expired
Soliciting a DHCP lease
No IPv6 Routers available
Timed out
Timed out
Dhcpcd exited
dhcpcd@enp37s0.service: Control process exited, code=exited, statys=1/FAILURE
dhcpcd@enp37s0.service: Failed with result 'exit-code'
Failed to start DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on enp37s0


Sorry for the formatting because I'm on mobile and thanks in advance for any pointers.

Offline

#2 2025-02-27 11:24:43

-thc
Member
Registered: 2017-03-15
Posts: 998

Re: Sometimes my ethernet works and sometimes it doesn't when booting

Make sure by running

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-45s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

that no other network management (systemd-networkd, NetworkManager) is running.

Then try

dhcpcd -d --waitip=4

to get some more info out of dhcpcd.

Offline

Board footer

Powered by FluxBB