Why not use NetworkManagers internal DHCP client.
That is what I have done and then I don't need dhclient or dhcpcd.
I am not sure that you are really using dhclient as NetworkManager has not been set to use dhclient from the configuration that you have posted.
What is the output from:
NetworkManager --print-config
Notice in the following dhcp=internal in my configuration
NetworkManager --print-config
# NetworkManager configuration:
/etc/NetworkManager/NetworkManager.conf (lib:
no-mac-addr-change.conf)
[main]
# rc-manager=
# auth-polkit=true
# dhcp=internal
# iwd-config-path=
plugins=ifupdown,keyfile
configure-and-quit=no
[global-dns]
options=ends0 trust-ad
[ifupdown]
managed=false
[logging]
# backend=journal
# audit=true
[device]
# wifi.backend=wpa_supplicant
wifi.scan-rand-mac-address=no
[device-31-mac-addr-change]
match-device=driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no
# no-auto-default file
"/var/lib/NetworkManager/no-auto-default.state"--
--
It's not easy to be me
On 30/10/2023 20:04, Timothy M Butterworth wrote:
> sudo less /etc/resolv.conf
> domain home.arpa
> search home.arpa
> nameserver 8.8.8.8
> nameserver 8.8.4.4
I do not see "# Generated by NetworkManager" here.
nmcli connection
nmcli device
NetworkManager --print-config
ls -l /etc/resolv.conf
lsattr /etc/resolv.conf
As to /etc/dhcp/dhclient.conf and /etc/network/interfaces, I may be
wrong, but perhaps independent instances for IPv4 and IPv6 may be
running (if actual connection is managed through ifupdown)
What is the output from:
NetworkManager --print-config
Notice in the following dhcp=internal in my configuration
NetworkManager --print-config
^^^^^^^^^^^^^^^^^^
This states that you are running two DHCP clients as I suspected.
That is probably why you have the results you have.
From the docs page:
https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html
|
|
This key sets up what DHCP client NetworkManager will
use. Allowed values are If this key is missing, it defaults to |
The commented entries are the defaults if not explicitly set