LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

NetworkManager

daemon that manages network connections

TLDR

Show connection status
$ nmcli general status
copy
List connections
$ nmcli connection show
copy
Connect to WiFi
$ nmcli device wifi connect "[SSID]" password "[password]"
copy
Show WiFi networks
$ nmcli device wifi list
copy
Bring up connection
$ nmcli connection up [connection_name]
copy
Create static connection
$ nmcli connection add type ethernet con-name [myeth] ifname [eth0] ip4 [192.168.1.10/24] gw4 [192.168.1.1]
copy

SYNOPSIS

NetworkManager [options]

DESCRIPTION

NetworkManager is a daemon that manages network connections. It provides automatic network detection and configuration, handling wired, wireless, mobile broadband, and VPN connections.
NetworkManager is controlled via nmcli, nmtui, or GUI applets.

PARAMETERS

--debug

Debug mode.
--log-level level
Logging level.
--log-domains domains
Logging domains.
--pid-file file
PID file location.

CONFIGURATION

$ /etc/NetworkManager/
├── NetworkManager.conf
├── system-connections/
└── conf.d/
copy

CLI TOOL (nmcli)

$ nmcli device                    # List devices
nmcli connection                # List connections
nmcli connection modify ...     # Modify connection
nmcli networking off            # Disable networking
copy

CAVEATS

May conflict with other network tools. Connections stored in /etc/NetworkManager/. Some systems use alternatives.

HISTORY

NetworkManager was developed by Red Hat starting in 2004 to simplify network configuration on Linux desktops.

SEE ALSO

Copied to clipboard
Kai