What Is the Role of NetworkManager in Ubuntu?

The NetworkManager service in Ubuntu is the primary system daemon responsible for detecting, configuring, and managing network connections automatically. From switching between Wi-Fi networks to configuring static IP addresses and VPNs, NetworkManager abstracts complex networking tasks into a seamless experience for both desktop and server users. This article explores how NetworkManager works, its core features, and how to interact with it using both graphical and command-line tools.

Core Responsibilities of NetworkManager

NetworkManager designed to keep your Ubuntu system connected whenever possible. It constantly monitors network interfaces and takes action based on connectivity status and user preferences.

NetworkManager vs. Netplan in Ubuntu

In modern versions of Ubuntu, networking is handled by a combination of tools. Understanding where NetworkManager fits is crucial for system administration.

How to Manage NetworkManager in Ubuntu

While NetworkManager operates quietly in the background, you can interact with it using three primary methods depending on your environment.

1. The Graphical User Interface (GUI)

On Ubuntu Desktop, NetworkManager powers the network icon in the top-right system menu. Clicking this icon allows you to select Wi-Fi networks, toggle airplane mode, and access the main Network Settings panel to configure proxies or IPv4/IPv6 settings.

2. The Command Line Tool (nmcli)

For terminal users and script automation, nmcli is the official command-line interface for NetworkManager. It allows you to view status, modify connections, and control network devices.

3. The Text User Interface (nmtui)

If you are using a terminal but prefer a visual interface over raw commands, nmtui provides a simple, keyboard-driven text menu inside the terminal. Running the nmtui command allows you to edit connections, activate a connection, or set the system hostname via an intuitive menu.