SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got this same issue and in my case, before finding this thread, I went for option 2 ie setting "dhcp=dhclient" in /etc/NetworkManager/conf.d/00-dhcp-client.conf and it solved the issue for me.
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
Morning,
I've recently installed slackware-current and also having this issue on the wlan interface when my Dell laptop wakes from sleep.
Quote:
Originally Posted by mcnalu
I got this same issue and in my case, before finding this thread, I went for option 2 ie setting "dhcp=dhclient" in /etc/NetworkManager/conf.d/00-dhcp-client.conf and it solved the issue for me.
I've done with this option, at least partially because I'm familiar with dhclient from the past. It seems to have resolved the issue for me.
I would still first fix the dhcp-listener warnings.
The simplest solution seems to use dhcp=internal in NetworkManager.conf.
That is the default, and there are few reasons to choose anything else
* The dhcpcd plugin now requires a minimum version of dhcpcd-9.3.3 with
the --noconfigure option. Using an older version will cause dhcpcd to
exit with a status code of 1.
--- 00-dhcp-client.conf 2021-09-11 20:50:47.337126759 +0200
+++ 00-dhcp-client.conf.new 2021-09-11 20:50:39.594224100 +0200
@@ -1,7 +1,7 @@
[main]
# Choose a DHCP client below. Upstream recommends internal, but results may vary.
# dhcpcd is the DHCP client usually used by Slackware:
-dhcp=dhcpcd
+dhcp=dhcpcd --noconfigure
# dhclient is the ISC reference DHCP client, part of the dhcp package:
#dhcp=dhclient
# This is a simple DHCP client that is built into NetworkManager:
Work like a charm after suspend/resume here
It would be great if @Pat can provide it with the next rebuilt ;-)
I'm wondering if it is better to add the "--noconfigure" option to /etc/dhcpcd.conf instead?
Otherwise every forum/wiki/blog post that gives a dhcpcd command line to run will trip over the same error.
It seems like networkmanager doesn't kill the old dhcpcd while suspending, and after resume it tried to start a new client that fails since another instance of dhcpcd is already rinning.
Changing the dhcp client used by networkmanager in /etc/NetworkManager/conf.d/00-dhcp-client.conf could workaround this, but i suppose that there's a root cause that needs proper fixing here.
It's not really solved yet.
EDIT: i can confirm that setting "dhcp=internal" in /etc/NetworkManager/conf.d/00-dhcp-client.conf is a workaround for the problem
Same problem here. The workaround is working for me too so far.
From what we can see, NetworkManager Devs seems to know better than anyone else how to do dhcp ...
Code:
/* Don't configure anything, we will do that instead.
* This requires dhcpcd-9.3.3 or newer.
* Older versions only had an option not to install a default route,
* dhcpcd still added addresses and other routes so we no longer support that
* as it doesn't fit how NetworkManager wants to work.
*/
Well glad to hear I'm not the lone stranger. Had this issue with my laptop that I hibernate. I tried the dhcp=internal setting, it does not work for me. I still have to reboot or:
* The dhcpcd plugin now requires a minimum version of dhcpcd-9.3.3 with
the --noconfigure option. Using an older version will cause dhcpcd to
exit with a status code of 1.
I too had seen it without actually seeing it. That's why we upgraded to dhcpcd-9.4.0, as the way I had read that statement was "we need at least 9.3.3 in order for this to work."
My impression was that NM would exec dhcpcd with the --noconfigure option on its own, given that it expects the option to be there. A reading of src/core/dhcp/nm-dhcp-dhcpcd.c in the NM source indicates that is indeed what should be happening, so it seems that we have a different problem.
I too had seen it without actually seeing it. That's why we upgraded to dhcpcd-9.4.0, as the way I had read that statement was "we need at least 9.3.3 in order for this to work."
My impression was that NM would exec dhcpcd with the --noconfigure option on its own, given that it expects the option to be there. A reading of src/core/dhcp/nm-dhcp-dhcpcd.c in the NM source indicates that is indeed what should be happening, so it seems that we have a different problem.
This doesn't help for our problem, but according to NetworkManager 1.32.10 ./configure --help
--without-resolvconf
seems to be --with-resolvconf=no
and --enable-json-validation
doesn't seems to exist anymore
PS : I have no skill to determine or interpret whether it is good or not ...
Wow. "dhcp=dhcpcd --noconfigure" is working here as well, and there's no sign of any dhcp-related processes in "ps ax" on either side of resume.
Solved !
Quote:
Mon Sep 13 18:04:35 UTC 2021
...
n/NetworkManager-1.32.10-x86_64-2.txz: Rebuilt.
00-dhcp-client.conf: Add the --noconfigure option to dhcpcd, or else the
network won't return after suspend/resume.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.