Subj : Re: Wifi error log for Bookworm? To : druck From : Tauno Voipio Date : Wed Oct 30 2024 10:20:32 On 29.10.2024 22.28, druck wrote: > On 28/10/2024 18:54, bp@www.zefox.net wrote: >> At that point the Pi5 appears to start scanning 5 GHz access points, >> despite being told otherwise in /etc/NetworkManager/NetworkManager.conf . >> That looks to me like a software problem. > > This is why I wasn't happy about Raspbian moving from dhcpcd to Network > Manager. Quite often my Linux Laptops which use Network Manager decide > they would like to try WiFi networks other than the one I've chosen, > that's easily fixed via the gui, but not what you want on headless systems. > > You could try disabling the NetworkManager service, and reinstalling > dhcpcd so the WiFi is only selected by the contents of the > wpa_supplicant.conf file. It worked fine for everything before Bookworm. > > ---druck dhcpcd is not needed: systemd-networkd contains a pretty good DHCP client when properly configured. Jettison NetworkManager, just stop and disable it, after creating the systemd-networkd configuration files. You need to create a .network file: # /etc/systemd/network/30-wired.network [Match] Name=eth0 [Network] DHCP=ipv4 [DHCP] ClientIdentifier=mac UseDNS=yes UseNTP=yes UseHostname=yes SendHostname=yes The [DHCP] section is optional, to give instructions to the DHCP server. The name in Name= must match the name which is set to the interface. Systemd tends to mutilate it with PCI bus address or MAC address, to help separate multiple Ethernets. It is possible to turn off the name change, e.g. for USB interfaces on Raspberry Pi by symlinking the file 73-usb-net-by-mac.link -> /dev/null The configuration files reside in /etc/systemd/network/ -- -TV --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .