Guide for NMCLI (Network Manager Command Line Interface)
@network @wifi @nmcli
NOTE: I now use iwd with iwctl instead!
Ensure radio is enabled:
nmcli radio
Expected output:
WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled enabled
What devices are available?
nmcli device
Expected output:
DEVICE TYPE STATE CONNECTION
wlp3s0 wifi connected eduroam
enp0s25 ethernet unavailable --
lo loopback unmanaged --
Connect to a wireless device:
nmcli device wifi rescan
nmcli device wifi list
(unsafe) nmcli device wifi connect [SSID-Name] password [wireless-password]
Alternatively, you can use the "-ask" argument, which is safer: otherwise your password shows up in your bash history.
nmcli -ask device wifi connect [SSID-Name]
(unclear is password argument is still needed, I did not test this yet).
Check list of all saved connections:
nmcli connection
Example output:
NAME UUID TYPE DEVICE
eduroam f614a088-3269-4be3-9552-bc667ddd5060 wifi wlp3s0
Concordia-5GHz 17e9ba31-884c-4fe0-b996-c07b9b87755b wifi --
Familie Wenink b124ce8e-a3c4-4fc4-9efa-728f5fd4a4e2 wifi --
Get off my LAN f7e5bea8-9d02-412a-9414-51a39d0127f0 wifi --
Get off my LAN 1 40816505-e2b3-47a5-a968-d6b3a33e2c1a wifi --
GodNondeTjeu 87e2e464-ed9e-4848-91bd-151b6f8300ce wifi --
HEMA Wi-Fi 8167cf0a-f239-4b17-b914-d98129b744a5 wifi --
Home_CDF61A 190ace02-d4d0-4f19-9812-c2f979c98de9 wifi --
Internet-Klimt d01ad45f-560a-4b1c-bdd7-b0dd7811d77d wifi --
Internetz c15fc35f-08d8-4c05-8b77-30b4891c95b7 wifi --
Internetz 1 cd24f291-5dec-4a9d-aff7-e7bd6a632d39 wifi --
Muchterboven 64990986-a97c-410a-b6aa-7ad5802478e7 wifi --
Muchteronder fd09ea59-c666-43e4-a9eb-701dc34106d0 wifi --
Muchteronder 1 7b50462a-e778-4f44-a36e-f6eda4d25df0 wifi --
NGIMU - 002AEFE9 a6cd2c79-9579-4a08-bc53-e29487d5fd58 wifi --
OBGZ-WiFi dc01eb76-3598-41f0-b7f1-516696f6fca5 wifi --
openvpn-science b434dace-8bc6-4e00-80be-01567512d1b8 vpn --
Rammendkaal 74ed2f57-3557-4fe2-8240-1c7d33ba791b wifi --
rm b3b07a89-4f37-4aa0-a640-5c67b7936e4a vpn --
RU VPN 01c3cd5a-4fe4-4b35-b5db-aff212324a99 vpn --
Turning connections on and off
nmcli device
Then
nmcli connection up "name of connection"
and
nmcli connection down "name of connection"