Sujet : Re: Wifi error log for Bookworm?
De : tauno.voipio (at) *nospam* notused.fi.invalid (Tauno Voipio)
Groupes : comp.sys.raspberry-piDate : 30. Oct 2024, 09:20:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfsq8g$22nhk$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
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:
<clip clip>
# /etc/systemd/network/30-wired.network
[Match]
Name=eth0
[Network]
DHCP=ipv4
[DHCP]
ClientIdentifier=mac
UseDNS=yes
UseNTP=yes
UseHostname=yes
SendHostname=yes
<clip clip>
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