You are not logged in.

#1 2024-01-10 18:31:34

musbur
Member
Registered: 2022-01-14
Posts: 46

[SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

I installed and configured netctl according to the instructions as well as dhcpcd. From the /etc/netctl/examples I copied the ethernet-dhcp profile, enabled and started it. I tried to reach any network address which didn't work because there is no /etc/resolve.conf. Also, when I try to do "ip link", the console freezes and I have to login on another one to proceed. dhcpcd seems to be working (see below).

I searched for dhcpcd resolv.conf, and I actually found people complaining about /etc/resolv.conf being automatically overwritten by dhcpcd. In my case, it doesn't write anything at all. I touched an empty /etc/resolv.conf, and restarted dhcpcd, but it didn't write anything.

Any hints?

(BTW I chose netctl as network manager because I like to work from the console, and it seemed very simple with WIFI passwords just stored in text profiles.)

# journalctl -eu dhcpcd
-- Boot 51d7fa0c5ace45c6bd91f7f0ecfcd2d4 --
Jan 10 19:08:19 jenna systemd[1]: Started DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all interfaces.
Jan 10 19:08:19 jenna dhcpcd[573]: dhcpcd-10.0.6 starting
Jan 10 19:08:19 jenna dhcpcd[576]: dev: loaded udev
Jan 10 19:08:19 jenna dhcpcd[576]: DUID 00:01:00:01:2d:31:93:65:e8:6a:64:bd:cd:97
Jan 10 19:08:20 jenna dhcpcd[599]: Dropped protocol specifier '.link' from 'enp0s31f6.link'. Using 'enp0s31f6' (ifindex=2).
Jan 10 19:08:20 jenna dhcpcd[599]: Failed to revert interface configuration: Could not activate remote peer: activation request failed: unknown unit.
Jan 10 19:08:20 jenna dhcpcd[576]: no interfaces have a carrier
Jan 10 19:08:20 jenna dhcpcd[576]: enp0s31f6: waiting for carrier
Jan 10 19:08:20 jenna dhcpcd[606]: Dropped protocol specifier '.link' from 'wlp61s0.link'. Using 'wlp61s0' (ifindex=3).
Jan 10 19:08:20 jenna dhcpcd[606]: Failed to revert interface configuration: Could not activate remote peer: activation request failed: unknown unit.
Jan 10 19:08:21 jenna dhcpcd[576]: wlp61s0: waiting for carrier
Jan 10 19:08:21 jenna dhcpcd[576]: wlp61s0: waiting for carrier
Jan 10 19:08:22 jenna dhcpcd[576]: enp0s31f6: carrier acquired
Jan 10 19:08:22 jenna dhcpcd[576]: enp0s31f6: IAID 64:bd:cd:97
Jan 10 19:08:22 jenna dhcpcd[576]: enp0s31f6: adding address fe80::e74:6a6:26a4:30c3
Jan 10 19:08:23 jenna dhcpcd[576]: control command: dhcpcd -4 -q -t 30 -L enp0s31f6
Jan 10 19:08:23 jenna dhcpcd[576]: enp0s31f6: soliciting an IPv6 router
Jan 10 19:08:24 jenna dhcpcd[576]: enp0s31f6: rebinding lease of 192.168.111.188
Jan 10 19:08:24 jenna dhcpcd[576]: enp0s31f6: probing address 192.168.111.188/24
Jan 10 19:08:29 jenna dhcpcd[576]: enp0s31f6: leased 192.168.111.188 for 864000 seconds

Last edited by musbur (2024-01-11 13:35:47)

Offline

#2 2024-01-10 19:02:59

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

musbur wrote:

I installed and configured netctl according to the instructions as well as dhcpcd. From the /etc/netctl/examples I copied the ethernet-dhcp profile, enabled and started it.

That's a bit vague. Please provide the full, exact commands used.

And please use code tags for terminal output. Thanks.

Last edited by Head_on_a_Stick (2024-01-10 19:03:36)

Offline

#3 2024-01-10 20:25:36

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

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

when I try to do "ip link", the console freezes and I have to login on another one to proceed

Please post the complete system journal afterwards, since you likely have no network access

sudo journalctl -b > /tmp/journal.txt

usb-walk the file to a system with network access and upload it from there.

ceterum censeo: is there a parallel windows installation?

Online

#4 2024-01-11 07:16:33

musbur
Member
Registered: 2022-01-14
Posts: 46

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

Thanks for your replies. Since I have to reboot into Windows to get network access and then back to Arch, this is an time-consuming and unproductive back and forth of which I can do only two or three cycles per day. Windows is completely isolated from Arch -- in fact, since I have not set up secure boot for Arch yet, I select between the two by enabling and disabling SB in the BIOS.

Anyway, will get back here in the evening to report.

Offline

#5 2024-01-11 08:36:10

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

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

Windows is completely isolated from Arch

That's not a thing.

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Online

#6 2024-01-11 10:31:05

musbur
Member
Registered: 2022-01-14
Posts: 46

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

OK, I figured it out. As always, the answers were in the excellent Arch Wiki but not understood correctly by me. The netctl Wiki page sounds as if all I needed was to install a DHCP client, copy the ethernet-dhcp profile into /etc/netctl, adjust the network interface name, and be done. I tried that, it didn't work, and I thought that this was because dhcpcd wasn't running. So I systemctl-enabled and started dhcpcd, but then the netctl unit couldn't be (re)started, complaining that the interface was already up. Then I probably threw more incompatible networking daemons at the problem, causing them to fight over the ethernet device and lock up "ip link."

Disabling dhcpcd and putting  DHClient=dhcpcd into /etc/netctl/hooks solved the problem. Says the docs:
1) (at the top) Do not enable any networking daemons besides netctl
2)  (at the bottom) Use appropriate hooks

I've been using Linux for thirty years. Since 2021 I've been with Arch because I wanted to keep learning. Mission accomplished (again).

Offline

#7 2024-01-11 11:45:05

musbur
Member
Registered: 2022-01-14
Posts: 46

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

seth wrote:

Windows is completely isolated from Arch

That's not a thing.

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Interesting. And scary. Can't do anything about it because I don't have admin access to the Windows system (it's not mine) but the hard disk image is backed up in case things go south.

Question: If Windows puts stuff (like hibernation data) into the EFI partition, wouldn't that be visible as a file to Linux?

Offline

#8 2024-01-11 14:06:10

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

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

It's not relevant whether linux could detect the hibernating OS, the problem with uninitialized HW remains.
(And ntfs3 will refuse to mount an active FS, that's regardless of what activated it)

Running two network managing daemons in parallel is a somewhat common mistake (although the wiki stresses that point…) but does typically not lead to the "freezeing console" symptoms (which indicates an IO error what has me worried about the HW state)
Is that effect gone as well?

Online

#9 2024-01-13 17:07:51

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

musbur wrote:

Can't do anything about it because I don't have admin access to the Windows system

Just use https://archlinux.org/packages/extra/x86_64/chntpw/ from the Arch live ISO to add yourself as Admin big_smile

Offline

#10 2024-01-15 06:55:29

musbur
Member
Registered: 2022-01-14
Posts: 46

Re: [SOLVED] dhcpcd: No /etc/resolv.conv, and "ip link" freezes

Head_on_a_Stick wrote:
musbur wrote:

Can't do anything about it because I don't have admin access to the Windows system

Just use https://archlinux.org/packages/extra/x86_64/chntpw/ from the Arch live ISO to add yourself as Admin big_smile

On a bitlockered file system?

Even if possible: Wouldn't do it because it would clearly violate the terms under which I'm using my employer's laptop. Booting Linux on the same hardware is already pushing and technically breaking it (using company property for non-company purposes), but I'm trying to keep it to a level where I can't do actual damage to company property.

Offline

Board footer

Powered by FluxBB