NetworkManager: Difference between revisions

From Alpine Linux
Line 14: Line 14:


==== wpa_supplicant backend ====
==== wpa_supplicant backend ====
{{Expand|the wpa_supplicant section is a work in progress (Please test before adding anything here)}}


* Follow: [[Wi-Fi#wpa_supplicant]]
* Follow: [[Wi-Fi#wpa_supplicant]]
{{Expand}}


Open {{Path|/etc/NetworkManager/NetworkManager.conf}} in a editor and change it to look something like this:
Open {{Path|/etc/NetworkManager/NetworkManager.conf}} in a editor and change it to look something like this:
Line 30: Line 30:
[device]
[device]
wifi.backend=wpa_supplicant</nowiki>}}
wifi.backend=wpa_supplicant</nowiki>}}
<br>


==== iwd backend ====
==== iwd backend ====

Revision as of 21:54, 3 January 2022

NetworkManager is a program that provides automatic detection and configuration for systems to connect to networks.

Installation

NetworkManager is in the repositories and can be installed with the networkmanager package. It comes with a command line interface and a curses-based interface, nmcli and nmtui respectively.

Additional interfaces:

Start the daemon after installation:

rc-service networkmanager start

Wireless networks

wpa_supplicant backend

This material needs expanding ...

the wpa_supplicant section is a work in progress (Please test before adding anything here)

Open /etc/NetworkManager/NetworkManager.conf in a editor and change it to look something like this:

Contents of /etc/NetworkManager/NetworkManager.conf

[main] dhcp=internal plugins=keyfile managed=true [device] wifi.backend=wpa_supplicant


iwd backend

NetworkManager supports wireless networks through iwd. After installation, enable the server and restart NetworkManager:

rc-service iwd start
rc-service networkmanager restart

To use iwd though, you've have to edit NetworkManager's configuration because it still defaults to wpa_supplicant instead. Add the following to /etc/NetworkManager/NetworkManager.conf:

[device]
wifi.backend=iwd


VPN support

Since version 1.16, NetworkManager has support for Wireguard[1].

Support for other VPN types is provided by plugins. They are provided in the following packages: