NetworkManager is the standard network configuration daemon for Linux desktops and servers, providing seamless management of wired, wireless, mobile broadband, and VPN connections. It handles network detection, configuration, and switching automatically, making network management effortless for users.
📑 Table of Contents
With both GUI and command-line interfaces, NetworkManager supports everything from simple DHCP configurations to complex setups involving bonding, bridging, VLANs, and VPNs. Its nmcli tool provides powerful scripting capabilities for automation.
Key Features
- Auto-Detection – Automatic network discovery and connection
- Multiple Profiles – Save and switch between configurations
- VPN Integration – OpenVPN, WireGuard, and more
- WiFi Management – Full wireless network support
- Advanced Networking – Bonding, bridging, VLANs
- nmcli/nmtui – Command-line and TUI interfaces
Basic nmcli Usage
# Show connections
nmcli connection show
# Show devices
nmcli device status
# Connect to WiFi
nmcli device wifi connect "SSID" password "password"
# Show WiFi networks
nmcli device wifi list
# Create static IP connection
nmcli connection add type ethernet con-name "static" ifname eth0 ip4 192.168.1.100/24 gw4 192.168.1.1
# Bring connection up/down
nmcli connection up "static"
nmcli connection down "static"
# Edit connection
nmcli connection edit "static"
Use Cases
- Desktop Networking – Automatic connection management
- Server Configuration – Scripted network setup
- VPN Connections – Manage VPN profiles
- Network Switching – Change between profiles
Was this article helpful?