Preface
Goal: Examine wireless in system: device, driver, and interface.
This is not a recommended way to connect to your wifi. But I write this anyway for the sake of curiousity.
For daily usage,
you should use either iwd
, nmcli
or connman
instead,
Table of Content
Wireless Tools
This is lower level wireless tool.
ip
and iw
In the context of wireless tools in Linux,
ip
and iw
are both command-line utilities
that are used for managing network interfaces,
but they serve different purposes.
While both ip
and iw
are useful networking tools in Linux,
ip
is a general-purpose command for managing networking in general,
while iw
is focused specifically on wireless network interfaces.
In real low level usage, we need both command.
Using iw
We need to list our device. Physical name could be different.
Since iwconfig
has been deprecated since decades ago,
we are using iw
.
This would looks like
When you are connected with an SSID, This would looks like below:
iw
Issue
There is a case that iw
return nothing.
In order to use iw
,
we need to start either iwd
or wpa_supplicant
.
Or
I can’t replicate this issue. So I’m not sure about this.
Failed
Powering Up
We need a little help from ip
command.
Scanning SSID
We can also scan our available SSID for our wireless.
Let’s try again.
From this step, we may choose method to connect to your wireless.
There are many methods, but you can only chooses one method at a time.
This will show you NetworkManager using nmcli
command.
Connecting
Oh man… low level is a mess.
But you can always try for the sake of knowledge.
Consider this iw dev
command.
I guess I have to use nmcli
instead.
We will explore this later.
And try again
Using ‘nmcli’
NetworkManager is very common.
I’m using Vanilla Arch with systemd that using nmcli
.
Again, let’s do it with command line.
Of course we need to run Network manager first.
Then we can connect.
Allright we need to provide the password.
Other time I don’t even need to provide the password.
Note that the actual ID will remain the same.
Check Connection
Again.. check your connexion.
DHCP
We still have to reserve our IP with dhcpcd
.
Now you can ping
Disconnect
Finally, you may disconnect,
What is Next 🤔?
I should know what’s inside my notebook.
So I can be ready for Gentoo.
After this mess,
we can get into proper connection
with either iwd
, nmcli
or connman
Consider continue reading [ Wireless: INet Wireless Daemon ].