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.
Again, this is not solved, and the last patch just made me lol.
NetworkManager checks in its configuration if a dhcp plugin has been explicitly defined.
The list of possible values is here: https://github.com/NetworkManager/Ne...listener.c#L28
The plugin is named "dhcpcd". By adding "--no-configure" to the configuration value, now the value is not one of the valid plugin names, so NetworkManager is now defaulting to using its own internal implementation (that works just fine).
Everybody can just test this by checking that, after the last patch, dhcpcd is not running anymore at all.
Again, this is not solved, and the last patch just made me lol.
NetworkManager checks in its configuration if a dhcp plugin has been explicitly defined.
The list of possible values is here: https://github.com/NetworkManager/Ne...listener.c#L28
The plugin is named "dhcpcd". By adding "--no-configure" to the configuration value, now the value is not one of the valid plugin names, so NetworkManager is now defaulting to using its own internal implementation (that works just fine).
Everybody can just test this by checking that, after the last patch, dhcpcd is not running anymore at all.
Whatever the result, and you are probably not wrong (dhcp=internal has been mentioned many times in this thread)
and it probably needs further investigations
But rather than getting to the end and laughing, you can also respect those who have been here for 15 days trying to find a solution
I'm sorry you took it personal, didn't want to offend anyone.
I would never laugh at people, but I can laugh at code; in this case i found it funny that introducing a problem actually worked as a workaround for another problem.
FYI I've been here, too, since the second comment in this thread, and the correct solution was already posted on the first page.
I'm sorry you took it personal, didn't want to offend anyone.
I would never laugh at people, but I can laugh at code; in this case i found it funny that introducing a problem actually worked as a workaround for another problem.
FYI I've been here, too, since the second comment in this thread, and the correct solution was already posted on the first page.
Don't worry about it. I didn't take it personally.
It's just a matter of figuring out what's best for Slackware.
We are in the same boat
EDIT:
And I am convinced that the direction taken by the development of NetworkManager tends to free itself, for the DHCP part, of all that does not concern dhcp=internal. As it was mentioned at the beginning
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 454
Original Poster
Rep:
Quote:
Originally Posted by LuckyCyborg
Nothing funny - it requests the dhcpd to support this "--noconfigure" option, not it to be added on the plugin name.
I'm starting to think that's the tricky part. dhcpcd.conf supports a lot of the command line options (persist, etc.), but apparently not noconfigure. It isn't mentioned in the dhcpcd.conf man page, and I tried putting it into the config file in various combinations (and with nothing else) to no effect. The connection worked until resume, just like before.
The strange thing is that the option is included in a list of options in "if-options.h" with this interesting comment:
Code:
/* These options only make sense in the config file, so don't use any
valid short options for them */
#define O_BASE MAX('z', 'Z') + 1
...
...
#define O_NOCONFIGURE O_BASE + 51
I'm starting to think that's the tricky part. dhcpcd.conf supports a lot of the command line options (persist, etc.), but apparently not noconfigure. It isn't mentioned in the dhcpcd.conf man page, and I tried putting it into the config file in various combinations (and with nothing else) to no effect. The connection worked until resume, just like before.
The strange thing is that the option is included in a list of options in "if-options.h" with this interesting comment:
Code:
/* These options only make sense in the config file, so don't use any
valid short options for them */
#define O_BASE MAX('z', 'Z') + 1
...
...
#define O_NOCONFIGURE O_BASE + 51
you also have it in the man page of dhcpcd
Code:
--noconfigure
dhcpcd will not configure the system at all. This is only of use if the --script that dhcpcd calls at each network event configures the system instead.
This is different from -T, --test mode in that it's not one shot and the only change to the environment is the addition of if_configured=false.
My feeling is:
we have one option that doesn't really work : dhcpcd
(I don't know why, but to be honest I'm a bit tired of looking for it)
and we have another one that does work : internal
--- dhcpcd.conf.orig 2021-09-14 21:33:25.897647961 +0200
+++ dhcpcd.conf 2021-09-14 21:31:25.071166956 +0200
@@ -2,7 +2,7 @@
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
-#controlgroup wheel
+controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname_short
--- dhcpcd.conf.orig 2021-09-14 21:33:25.897647961 +0200
+++ dhcpcd.conf 2021-09-14 21:31:25.071166956 +0200
@@ -2,7 +2,7 @@
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
-#controlgroup wheel
+controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname_short
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.