This morning I was in a scenario where just done an install (Fedora 29
Server), and the device had no wired network, only wifi. I was feeling
lazy and didn't want to pull out my USB ethernet dongle and a cable. So
out of curiosity, I was wondered how far I could get with the new nmcli
(Network Manager CLI) tools, and tab completion.
The answer, all the way to working wifi networking. So I thought I'd
share the FYI. I see this coming in really handy for Raspberry Pi 3/3+
and Zero-W owners.
Example output:
[root@dna ~]# nmcli device wifi list
IN-USE SSID MODE CHAN RATE SIGNAL BARS
SECURITY
ItsAWifi Infra 6 195 Mbit/s 100 ▂▄▆█
WPA2
* The_Terrace Infra 149 405 Mbit/s 97 ▂▄▆█
WPA2
ItsAWifi Infra 36 405 Mbit/s 94 ▂▄▆█
WPA2
-- Infra 153 540 Mbit/s 69 ▂▄▆_
WPA2
N.InetSamura_5G Infra 153 540 Mbit/s 69 ▂▄▆_
WPA2
AC.InetSamurai_5.825GHz Infra 165 195 Mbit/s 65 ▂▄▆_
WPA2
[root@dna ~]# nmcli device wifi <tab><tab>
connect help hotspot list rescan
[root@dna ~]# nmcli device wifi connect
00:19:BE:1E:C6:18 3C:17:10:22:AE:1E 80:2A:A8:18:2E:52
AC:84:C9:FD:27:95 BC:4D:FB:E2:8D:E8 The_Terrace
24:F5:A2:77:89:D3 6C:19:8F:C5:12:D8 A6:84:C9:FD:27:95
B4:75:0E:3F:CC:9E BELL270 ItsAWifi
[root@dna ~]# nmcli device wifi connect ItsAWifi <tab><tab>
bssid hidden ifname name password
private wep-key-type
[root@dna ~]# nmcli device wifi connect ItsAWifi password *****
And that worked!
Best part, it also created all the needed files in
/etc/sysconfig/network-scripts/ for this network, set to start onboot
even! Very handy.
--
Scott Sullivan
---
Talk Mailing List
talk@gtalug.org
https://gtalug.org/mailman/listinfo/talk