LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2021, 12:13 AM   #46
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled

back to wireless & wired network stability confirmed at my end
Quote:
/var/log/packages/NetworkManager-1.32.10-x86_64-2
thanks
 
Old 09-14-2021, 12:35 AM   #47
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 454

Original Poster
Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Thanks, marav!
 
Old 09-14-2021, 03:11 AM   #48
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.

The best solution here is to default to the upstream "dhcp=internal" value.
Also a quote from https://github.com/NetworkManager/Ne...manager.c#L95:
Quote:
* So actually, we don't want that complexity. We want to phase out all plugins in favor
* of the internal plugin.
 
1 members found this post helpful.
Old 09-14-2021, 03:43 AM   #49
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by ctrlaltca View Post
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.

The best solution here is to default to the upstream "dhcp=internal" value.
Also a quote from https://github.com/NetworkManager/Ne...manager.c#L95:
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
 
Old 09-14-2021, 04:19 AM   #50
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 09-14-2021, 04:23 AM   #51
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by ctrlaltca View Post
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

Last edited by marav; 09-14-2021 at 04:34 AM.
 
1 members found this post helpful.
Old 09-14-2021, 04:39 AM   #52
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
the fallback to dhcp=internal, as you mentioned, is indeed probable:
- the dhcpcd daemon is not executed
- /var/log/syslog mentions :
Code:
NetworkManager[8840]: <warn> [1631609669.5296] dhcp-init: DHCP client 'dhcpcd --noconfigure' not available
It's indeed "funny" to see that an option recommended by NetworkManager itself is not available...

Last edited by marav; 09-14-2021 at 04:40 AM.
 
Old 09-14-2021, 05:23 AM   #53
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
Originally Posted by marav View Post
the fallback to dhcp=internal, as you mentioned, is indeed probable:
- the dhcpcd daemon is not executed
- /var/log/syslog mentions :
Code:
NetworkManager[8840]: <warn> [1631609669.5296] dhcp-init: DHCP client 'dhcpcd --noconfigure' not available
It's indeed "funny" to see that an option recommended by NetworkManager itself is not available...
Nothing funny - it requests the dhcpd to support this "--noconfigure" option, not it to be added on the plugin name.

In that config file, "dhcpd" means the used plugin name, not the command line to be executed.

Last edited by LuckyCyborg; 09-14-2021 at 05:25 AM.
 
Old 09-14-2021, 07:53 AM   #54
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 454

Original Poster
Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by LuckyCyborg View Post
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
 
Old 09-14-2021, 08:51 AM   #55
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by pghvlaans View Post
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

we just have to use the one that works

Last edited by marav; 09-14-2021 at 08:57 AM.
 
Old 09-14-2021, 09:10 AM   #56
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 454

Original Poster
Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by marav View Post
we just have to use the one that works
I'd agree with that. The only things I got to (sort of) work vis-a-vis dhcpcd were:
  1. Removing the dhcpcd user (defeats the purpose of privilege separation; leaves zombie processes)
  2. Building dhcpcd with --disable-privsep (ditto)

dhcpcd=internal is a much better solution than either of those.
 
Old 09-14-2021, 09:19 AM   #57
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by LuckyCyborg View Post
Nothing funny - it requests the dhcpd to support this "--noconfigure" option, not it to be added on the plugin name.

In that config file, "dhcpd" means the used plugin name, not the command line to be executed.
indeed
the fallback on internal misled me
but where on earth should we pass this option???
 
Old 09-14-2021, 09:29 AM   #58
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
Originally Posted by marav View Post
indeed
the fallback on internal misled me
but where on earth should we pass this option???
It's hardcoded in the NM code and already added.

I would say that we use a dhcpd version or build which is not compatible with the current NetworkManager.

OR, happens that we just use a code path considerably less tested than the one for systemd-dhcpd (believe or not, this thing exists)

I for one, I vote for the "internal" plugin - I use this setup since this issue risen and the results are acceptable, at least for me.

Last edited by LuckyCyborg; 09-14-2021 at 09:58 AM.
 
Old 09-14-2021, 02:37 PM   #59
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Can anyone confirm that :
Code:
--- 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
with :
dhcp=dhcpcd

works after suspend/resume ?

it works for me ...
dhcpcd is running
Code:
dhcpcd   28476  0.0  0.0   3084  1376 ?        S    18:02   0:00 dhcpcd: [master] [ip4] [ip6]
root     28477  0.0  0.0   3224  1400 ?        S    18:02   0:00  \_ dhcpcd: [privileged actioneer]
dhcpcd    4192  0.0  0.0   3224   128 ?        S    21:35   0:00  |   \_ dhcpcd: [BPF ARP] wlan0 192.168.111.15
dhcpcd   28478  0.0  0.0   3004   204 ?        S    18:02   0:00  \_ dhcpcd: [network proxy]
dhcpcd   28479  0.0  0.0   3000    60 ?        S    18:02   0:00  \_ dhcpcd: [control proxy]

Last edited by marav; 09-14-2021 at 02:46 PM.
 
Old 09-14-2021, 02:50 PM   #60
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
Originally Posted by marav View Post
Can anyone confirm that :
Code:
--- 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
with :
dhcp=dhcpcd

works after suspend/resume ?

it works for me ...
dhcpcd is running
Code:
dhcpcd   28476  0.0  0.0   3084  1376 ?        S    18:02   0:00 dhcpcd: [master] [ip4] [ip6]
root     28477  0.0  0.0   3224  1400 ?        S    18:02   0:00  \_ dhcpcd: [privileged actioneer]
dhcpcd    4192  0.0  0.0   3224   128 ?        S    21:35   0:00  |   \_ dhcpcd: [BPF ARP] wlan0 192.168.111.15
dhcpcd   28478  0.0  0.0   3004   204 ?        S    18:02   0:00  \_ dhcpcd: [network proxy]
dhcpcd   28479  0.0  0.0   3000    60 ?        S    18:02   0:00  \_ dhcpcd: [control proxy]
Your unprivileged user is part of "wheel" group? That's not that usual on Slackware.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
#WIFI IP Loss - #Ubuntu #Zesty fails to obtain #IP when logged to #Router via WIFI tarant8l Linux - Wireless Networking 1 10-05-2017 08:07 AM
Loss Of Network Connection After Power Loss etpoole60 Linux - Networking 4 11-02-2014 07:55 PM
Loss Of Network Connection After Power Loss etpoole60 Linux - Virtualization and Cloud 2 10-27-2014 03:14 PM
Network Connection Loss And USB Connection Loss. Novatian Linux - Desktop 1 11-07-2008 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration