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.
$grep wheel /etc/group
wheel:x:10:root
$cat /etc/NetworkManager/conf.d/00-dhcp-client.conf
[main]
# Choose a DHCP client below. Upstream recommends internal, but results may vary.
# dhcpcd is the DHCP client usually used by Slackware. The --noconfigure
# option must be used or the network will not return after suspend/resume:
dhcp=dhcpcd
# 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:
#dhcp=internal
$grep wheel /etc/dhcpcd.conf
controlgroup wheel
Last edited by gegechris99; 09-14-2021 at 03:19 PM.
Reason: clarify that I'm using wired connection not wifi
I am wondering whether there is a problem with NetworkManager shutting down dhcpcd when connections are closed.
I am writing from my netbook that I normally run with 'dhcp=dhclient' set in /etc/NetworkManager/conf.d/00-dhcp-client.conf, as it plays well with my USB modem. Prior to performing upgrades, I often drop to run level 3, log in as root, use 'nmcli radio wifi on' to activate my wireless interface and use 'nmtui' to establish an internet connection. After upgrades, I reverse that process, before rebooting if required.
Looking at this thread, I checked the output of 'ps ax | grep dhc' after establishing a connection and again after dropping the connection. As expected, dhclient processes were running after establishing a connection and were absent when the connection was closed.
Changing to 'dhcp=dhcpcd' in /etc/NetworkManager/conf.d/00-dhcp-client.conf, I note that dhcpcd processes were running after establishing a connection but, _unexpectedly_, were present when the connection was closed.
With 'dhcp=internal' in /etc/NetworkManager/conf.d/00-dhcp-client.conf, there is no output from 'ps ax | grep dhc'.
WIFI was working for me on resume until this week when i updated -current. My last update was early in August. Reverting to the old kernel didn't fix it. I am using iwlwifi. I recall installing updates to kernel-firmware, dnsmasq, dhcpcd, and NetworkManager. I haven't been able to get back online unless i reboot. Otherwise it connects to wifi but fails to set up a route. Haven't had the time to troubleshoot further yet.
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 451
Original Poster
Rep:
I'm not certain this applies for your situation, but people have had the most luck using "dhcp=internal" or "dhcp=dhclient" in "/etc/NetworkManager/conf.d/00-dhcp-client.conf" recently. It's probably worth a try.
I think that at this level of the thread, it is no longer useful to vote for a solution
dhcp=internal is definitely the right option
Well, I do not think that's the right option, because I have 3 (three) USB dongles model Asus USB-AC51 with driver native on kernel (mt7610u) which are unable to connect at all to router with this option.
I compiled dhcpcd from git as well, using cflags and build options from the original slackbuild, but without patches. I can confirm that I now have an IPv4 address after resume when I use NetwerkManager with dhcpcd. Previously, I only got an IPv6 address, and couldn't reach sites that only used IPv4. Problem solved, except, I also end up with a couple of zombies. I suspended three times:
I compiled dhcpcd from git as well, using cflags and build options from the original slackbuild, but without patches. I can confirm that I now have an IPv4 address after resume when I use NetwerkManager with dhcpcd. Previously, I only got an IPv6 address, and couldn't reach sites that only used IPv4. Problem solved, except, I also end up with a couple of zombies. I suspended three times:
dhcpcd: stop dhcpcd using nm_dhcp_client_stop_pid rather than killing
NetworkManager can stop/start a DHCP client faster than dhcpcd can
gracefully exit.
As such, refactor nm_dhcp_client_stop_pid so that a specific signal
can be sent which allows dhcpcd to gracefully stop on SIGTERM and
release on SIGALRM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.