It appears the reason the external dhclient is no longer working is because 
it's not explicitly enabled in the current build. This can be seen in the 
Plucky build log
https://launchpadlibrarian.net/779900784/buildlog_ubuntu-plucky-amd64.network-manager_1.52.0-1ubuntu1_BUILDING.txt.gz

DHCP clients (default internal):
  dhcpcd: true false
  dhclient: false (deprecated)


As noted in the NetworkManager changelog (NEWS file):


=============================================                                   
                                                                                
                                            
NetworkManager-1.50                                                             
                                                                                
                                            
Overview of changes since NetworkManager-1.48                                   
                                                                                
                                            
=============================================                                   
                                                                                
                                            
                                                                                
                                                                                
                                            
* The support for "dhclient" has been deprecated, not built unless              
                                                                                
                                            
  explicitely enabled, and will be removed in a future release.                 
                                                                                
                                            
  The internal DHCP client should be used instead and has been                  
                                                                                
                                            
  the default since version 1.20 (1.12 when built with meson).


However, as mentioned in this bug description, the only way to use the 
user-class option currently is via the ISC DHCP client (dhclient).

Until NetworkManager supports this option internally, could you consider
re-enabling dhclient in the build?

I've opened a ticket to track this request.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1759


** Bug watch added: 
gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues #1759
   https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1759

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2109975

Title:
  NetworkManager cannot work in conjonction with dhclient (isc-dhcp-
  client) after Plucky/25.04 upgrade

Status in network-manager package in Ubuntu:
  New

Bug description:
  After upgrading Kubuntu from Ocular (24.10) to Plucky (25.04), I could
  not retrieve an IP address from my corporate network which requires
  the user-class (option 77) to be set in the dhclient configuration
  file.

  Before the upgrade I was able to get an IP address from the DHCP
  server through NetworkManager that was set to use the dhclient (isc-
  dhcp-client package installed) and with the following lines in the
  configuration

  [main]
  dhcp=dhclient

  see
  
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-
  networkmanager-dhcp-settings_configuring-and-managing-
  networking#proc_changing-the-dhcp-client-of-
  networkmanager_configuring-networkmanager-dhcp-settings

  Everything worked well up until network-manager 1.48.8-1ubuntu3
  (Ocular / 25.10)

  But with the recent upgrade to Plucky/25.10 and network-manager 
1.52.0-1ubuntu1
  there seems to be a regression as I cannot request an IP address anymore with 
the same configuration

  Here are the errors in syslog

  2025-05-05T08:06:49.162450+02:00 myhost NetworkManager[1116]: <warn>  
[1746425209.1623] dhcp: init: DHCP client 'dhclient' not available
  2025-05-05T08:06:49.162551+02:00 myhost NetworkManager[1116]: <info>  
[1746425209.1623] dhcp: init: Using DHCP client 'internal'

  and no IP address is assigned to my network card (wired)

  NB: there is no IPv6 at stake, only IPv4 address is assigned

  
  the isc-dhcp-client is in version 4.4.3-P1-4ubuntu2 since 24.04 (LTS/Noble) 
and no newer version exists, so it doesn't seem to be the culprit

  
  unfortunately, I have to still rely on ISC DHCP client as this is the only 
way to configure the user-class option
  here is the line I need in the /etc/dhcp/dhclient.conf
  send user-class "blabla-XXXX";

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2109975/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to