How to connect to wifi using nmcli?
I installed Fedora Server on my computer and I want to connect to a WiFi network but I am confused on how to use nmcli
command.
My interfaces, I suspect that wireless interface is down:
$ ip addr
...
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:16:cf:b9:a4:cd brd ff:ff:ff:ff:ff:ff
My configured connections:
$ nmcli con show
NAME UNAME TYPE DEVICE
wpl3s0 63e04cee-... 802-11-wireless --
The status of devices:
$ nmcli dev status
DEVICE TYPE STATE CONNECTION
wlp3s0 wifi unmanaged --
I do a nmcli dev wifi list
but no results. The command nmcli radio wifi
gives enabled
. I then try doing:
$ sudo ifup wlp3s0
Error: no device found for connection 'wlp3s0'
So how do I assign a device to connection 'wlp3s0'?
Also, I am not even sure if I'm doing the right thing so please enlighten me.
Updates: 2015-03-01
I still haven't figured this out so I tried connecting to WiFi manually (without using the nmcli
tool).
$ sudo ip link set dev wlp3s0 up # bring up the 'wlp3s0' interface
$ sudo iwconfig wlp3s0 # check interface
wlp3s0 IEEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=17 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
$ sudo iwlist wlp3s0 scanning # scan for ESSID; it finds "my-ssid"
wlp3s0 Scan completed :
Cell 01 - Address: ...
...
ESSID:"my-ssid"
...
$ sudo wpa_passphrase "my-ssid" > wpa_config_file
sudo: wpa_passphrase: command not found
$ which wpa_supplicant
/usr/bin/which: no wpa_supplicant in (/usr/local/bin:/usr/bin/usr/local/sbin:/usr/sbin:...)
Could the lack of wpa_supplicant
be the reason I can't connect? And why isn't this installed by default? How do I install it if I can't connect to the Internet? Any help is appreciated.
strange statement yours, if you can write here you are connected (friends, uffico, mobile). uses this connection to download the installation dvd and after:
yum localinstall [path of rpm file]
I am facing similar issue :(
What worked for me was to install wpa_supplicant and NetworkManager-wifi