Configure Wi-Fi connections¶
This section explains how to establish a Wi-Fi connection. It covers creating and modifying connections as well as directly connecting.
Establish a connection¶
This section will show how to establish a wifi connection to the wireless network. Note that directly connecting will implicitly create a connection (that can be seen with “nmcli c”). The naming of such will follow “SSID N” pattern, where N is a number.
First, determine the name of the Wi-Fi interface:
$ nmcli d
DEVICE TYPE STATE CONNECTION
...
wlan0 wifi disconnected --
Make sure the Wi-Fi radio is on (which is its default state):
nmcli r wifi on
Then, list the available Wi-Fi networks:
$ nmcli d wifi list
* SSID MODE CHAN RATE SIGNAL BARS SECURITY
...
my_wifi Infra 5 54 Mbit/s 89 ▂▄▆█ WPA2
As an example, to connect to the access point ‘my_wifi’, you would use the following command:
nmcli d wifi connect my_wifi password <password>
<password> is the password for the connection which needs to have 8-63 characters or 64 hexadecimal characters to specify a full 256-bit key.
Further information¶
You will find further information and more detailed examples on following pages: