INTL 3:770/1 3:770/3   
   REPLYADDR chris@internal.net   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: 9e12c7bf   
   REPLY: a0038972   
   PID: SoupGate-Win32 v1.05   
   On 27/10/2024 at 15:37, The Natural Philosopher wrote:   
   > A power cut this a.m had my Pi zero W reconnecting to the wrong wifi.   
   >   
   > Which forced me to delve into the depths of network manager as evinced   
   > by nmcli. Network manager is the new way to manage networks, and like   
   > systemd, its all changed for the sake of it   
   >   
   > You probably can edit the files directly - mine were in   
   > /etc/NetworkManager/system-connections, but it's safer to use nmcli tools   
   >   
   >   
   > You can set a priority if you have more than one wifi SSID.   
   >   
   > sudo nmcli c modify connection.autoconnect-priority 1   
   >   
   > You can also force it to use 5Ghz or 2.4Ghz or let it decide   
   >   
   > sudo nmcli c modify 802-11-wireless.band "bg"   
   >   
   > or   
   >   
   > sudo nmcli c modify 802-11-wireless.band "a"   
   >   
   >   
   > "bg" is 2.4GHz, "a" is 5GHz.   
   >   
   > It may well be that bookworm has changed the implicit defaults in   
   > network manager.   
   >   
   > It is well worth dumping the connections with   
   >   
   > sudo nmcli connection show    
   >   
   > To work out what the connection names are, use   
   >   
   > sudo nmcli c show   
   >   
   > I think - but am not sure - that you can set more stuff through the   
   > command line than through the GUI interface to network manager   
   >   
   >   
      
   Have you tried nmtui?   
      
      
   --   
   Chris Elvidge, England   
   I WILL NOT INSTIGATE REVOLUTION   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 1/19 16/0 19/37 80/1 90/1 105/81 106/201 123/130 128/187   
   SEEN-BY: 129/305 142/104 153/757 7715 203/0 218/700 840 220/70 221/1   
   SEEN-BY: 221/6 242 360 226/17 30 100 227/114 229/110 111 114 200 206   
   SEEN-BY: 229/300 317 400 426 428 470 550 616 664 700 230/0 240/5832   
   SEEN-BY: 266/512 267/800 280/5003 282/1038 291/111 292/854 301/1 310/31   
   SEEN-BY: 320/119 219 319 2119 322/757 762 325/304 335/364 341/66 342/200   
   SEEN-BY: 396/45 423/81 460/58 633/280 712/848 770/1 3 100 330 340   
   SEEN-BY: 772/210 220 230 5020/400 5053/58 5075/35   
   PATH: 770/3 1 218/840 221/6 1 320/219 229/426   
      
|