nmtui is the text-based user interface for NetworkManager, a menu-driven terminal program that lets administrators create, edit and activate network connections and set the system hostname without a graphical desktop. In Linux networking, it sits between the graphical applets and the scriptable nmcli command, offering guided forms that write the same NetworkManager connection profiles as the other front ends.
The tool is especially valuable on servers, virtual machines and minimal installations where no desktop environment exists but an administrator still needs to configure a static address, join a Wi-Fi network or add a bond quickly and with low risk of syntax errors.
How nmtui works with NetworkManager
nmtui does not configure interfaces by itself. It is a client of the NetworkManager daemon, communicating with it over D-Bus, so every change made in the menus is passed to the daemon, which stores it as a connection profile and applies it to the kernel through netlink.
The interface is built on the newt library, the same toolkit used by many installer screens, and it runs in any terminal that supports basic cursor control, including a serial console or an SSH session. Navigation uses the arrow keys, Tab and Enter, and the Space bar toggles check boxes.
The following table shows the three main menu entries and what each one changes.
| Menu entry | Direct command | What it changes |
|---|---|---|
| Edit a connection | nmtui edit | Creates, modifies or deletes connection profiles |
| Activate a connection | nmtui connect | Brings profiles up or down, scans Wi-Fi |
| Set system hostname | nmtui hostname | Updates the static hostname through systemd-hostnamed |
Because the daemon owns the configuration, a profile created in nmtui is immediately visible in nmcli and in graphical tools. On recent Fedora and RHEL releases the profiles are written as keyfiles under /etc/NetworkManager/system-connections/, while older RHEL systems may still use ifcfg files in /etc/sysconfig/network-scripts.
Connection types and settings in nmtui
nmtui supports the most common connection types that NetworkManager handles, which covers the large majority of server and workstation needs. Advanced options that the menus omit can still be set later with nmcli on the same profile.
The table below lists the supported types and their typical uses.
| Connection type | Typical use | Notable settings |
|---|---|---|
| Ethernet | Wired server or desktop link | Device, MTU, cloned MAC address |
| Wi-Fi | Laptop or edge device | SSID, mode, WPA2 or WPA3 security |
| Bond | Link redundancy or aggregation | Mode such as active-backup or 802.3ad |
| Team | Older alternative to bonding | Runner configuration |
| Bridge | Virtual machine networking | STP, forward delay, ports |
| VLAN | Tagged traffic on a trunk | Parent device and VLAN ID |
| IP tunnel and WireGuard | Site links and VPNs | Endpoints, keys, peers |
For each profile, the IPv4 and IPv6 configuration sections offer methods such as Automatic (DHCP or SLAAC), Manual, Link-Local and Disabled. Manual mode requests addresses in CIDR notation, for example 192.168.10.20/24, along with a gateway, DNS servers and search domains. The option Automatically connect controls whether the profile activates at boot.
nmtui compared with other Linux network tools
nmtui is one of several ways to configure networking on Linux, and choosing between them depends on the configuration backend in use and on whether the task is interactive or automated.
The following comparison places nmtui next to its closest neighbors.
| Tool | Interface | Persistence | Best suited for |
|---|---|---|---|
| nmtui | Menu in the terminal | NetworkManager profiles | Interactive setup without a desktop |
| nmcli | Command line | NetworkManager profiles | Scripts, automation, advanced options |
| ip command | Command line | None, runtime only | Diagnostics and temporary changes |
| Netplan | YAML files | Rendered to backends | Declarative Ubuntu configuration |
| systemd-networkd | Unit files | Native .network files | Lean servers and containers |
The essential distinction is interactive convenience versus reproducibility. nmtui reduces typing mistakes during one-off changes, but it cannot be scripted, so configuration management tools and provisioning pipelines should call nmcli or write profiles directly. The ip command changes only runtime state, which disappears after a reboot or a NetworkManager reload.
Using nmtui safely in practice
nmtui is installed by default on RHEL, Rocky Linux, AlmaLinux and Fedora Server, and it is available on Debian and Ubuntu in the network-manager package or a separate nmtui package. It requires root privileges, or appropriate polkit rights, to modify system-wide connections.
The decision table below covers typical situations and the recommended approach.
| Situation | Recommended approach | Reason |
|---|---|---|
| Fresh minimal server needs a static IP | Use nmtui edit | Guided form avoids syntax errors |
| Change applied over SSH | Edit, then reactivate carefully | Losing the address can drop the session |
| Fleet of 50 hosts | Use nmcli or automation | nmtui cannot be scripted |
| Ubuntu Server with Netplan networkd | Edit Netplan YAML | NetworkManager is not managing the interface |
| Joining Wi-Fi on a headless device | Use nmtui connect | Scans and lists available networks |
After editing an active profile, the changes are saved but not applied until the connection is reactivated. The usual method is to deactivate and activate it under Activate a connection, or to run nmcli connection up with the profile name. On remote systems, it is safer to keep console or out-of-band access available before changing the address that carries the SSH session.
Limitations and common mistakes
Most problems with nmtui come from misunderstanding which component owns the interface rather than from the tool itself.
- Expecting edits to take effect instantly, when an active connection must be reactivated first.
- Running nmtui on a system managed by systemd-networkd or legacy ifupdown, where NetworkManager marks the device as unmanaged.
- Entering an address without a prefix length, which the form may interpret as a /32 host address.
- Creating duplicate profiles for one device, which leads to unpredictable activation order.
- Overlooking options absent from the menus, such as routing rules or dispatcher behavior, which require nmcli.
nmtui also offers no undo function or change history. Administrators who need auditability should back up the profile files or manage them through version-controlled automation.
A plain-language summary
nmtui is a simple menu for setting up network connections on a Linux computer that has no graphical desktop. There is no need to type long commands. A person moves through screens with the arrow keys. Then they fill in boxes such as the address or the Wi-Fi password.
Behind the scenes, nmtui hands those choices to the program that manages networking. It works like a form at a service desk. The form makes the request easy to fill in. The staff behind the counter do the real work and keep the record for later.
An example from practice
A systems administrator installs Rocky Linux 9 on a new file server in a branch office. The installer assigned an address by DHCP, but the server needs the fixed address 10.20.4.15/24 with gateway 10.20.4.1 and two internal DNS servers so that client shares and backup jobs always find it.
Working from the local console, the administrator runs nmtui edit, selects the profile for the ens192 interface, switches IPv4 configuration from Automatic to Manual and enters the address, gateway and DNS servers. After saving, the administrator opens Activate a connection, deactivates and reactivates the profile, and confirms the result with ip addr and a ping to the gateway.
The entire change takes under five minutes without editing a single file, and the new profile is stored as a keyfile that survives reboots. Later, the team imports the same settings into its automation using nmcli, keeping one consistent configuration source.