💾 Archived View for darknesscode.xyz › notes › network-manager.gmi captured on 2024-07-09 at 00:28:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Network Manager Examples

NetworkManager's functionality can be useful for both wireless and wired networks. For a wired network is a simple as plug and play

List wireless networks

run nmcli to list all nearby wireless networks

nmcli device wifi list

Connecting to a wireless network

Connect to wireless network

nmcli device wifi connect <SSID> password <PASSWORD>

If the network is hidden

nmcli device wifi connect <SSID> password <PASSWORD> hidden yes

List Connected networks

To list all networks

nmcli connection show

Disconnect Network

nmcli device disconnect <INTERFACE>

Activate Connection

nmcli connection up <NAME-OR-UUID>

Devise status

Check the status of the network adapter

nmcli device

Disable WiFi

nmcli radio wifi off

Turn on WiFi

nmcli radio wifi on

Edit a Connection

The connection options are stored in /etc/NetworkManager/system-connections directory in their respective <connection_ID>.nmconnection files

sudo ls /etc/NetworkManager/system-connection

Edit the respective file for changing the settings

sudo vim /etc/NetworkManager/system-connections/<connection_ID>.nmconnection

After editing, make sure that the new settings take into effect by reloading nmcli

sudo nmcli connection reload

Something easier

Launch the command line UI for an easy setup of a network

nmtui

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode