WIFI Networks: How to add a second one!

I’ve tried using NMCLI to add a second wifi to my device. (PI5). I get and error of “802-11-wireless-security.key-mgmt: Property is missing. What am I missing? I was successful in adding the wifi name, but the password fails as above.

Help!

Thanks.

Hey @Dick!

It might need wifi-sec.key-mgmt set to wpa-psk, otherwise the password won’t work.

You could try running something like this:

nmcli dev wifi connect "SSID_NAME" password "YOUR_PASSWORD" ifname wlan0

Is this for connectivity on one network that goes down?

The wifi is very stable in both locations. I want to serve things at home and work!

Thanks for the reply.

is it using network manager? I thought non desktop versions of debian used wpa-suppliment.

try

    wpa_passphrase "YourSecondSSID" "YourSecondPassword" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf
    sudo systemctl restart wpa_supplicant.service

sudo nmcli connection add type wifi con-name "SecondWiFi" ifname wlan0 ssid "YourSecondSSID" wifi-sec.key-mgmt wpa-psk wifi-sec.psk "YourSecondPassword"


Found this and it works!!!   Thanks for your input !!