How to Configure IP Network with ‘nmtui’ Tool

Take Your Linux Skills to the Next Level All courses, certifications, ad-free articles & community — from $8/mo
Join Root →
Ad-free access to all premium articles
Access to all courses: Learn Linux, AI for Linux, Bash Scripting, Ubuntu Handbook, Golang and more.
Access to Linux certifications (RHCSA, RHCE, LFCS and LFCA)
Access new courses on release
Get access to weekly newsletter
Priority help in comments
Private Telegram community
Connect with the Linux community
From $8/mo · or $59/yr billed annually · Cancel anytime

An alternative for the nmcli is the nmtui, short for Network Manager Text User Interface, the nmtui is yet another handy tool that allows you to easily configure your network interfaces in Linux distributions using a graphical display by invoking the nmtui command straight from the terminal or even putty.

To configure a network interface IPv4 address, start by invoking the nmtui tool.

$ nmtui

Select the first option ‘Edit a connection’ and hit ENTER.

Edit Network Interface Connection
Edit Network Interface Connection

Next, select the interface you want to configure and hit ENTER. In this case, the interface we are configuring is enps03.

Select Network Interface
Select Network Interface

In the next step, key in the preferred IP address and define the subnet mask, default gateway, and DNS servers as shown below.

Configure Network Connection
Configure Network Connection

Once you are satisfied with your settings, scroll all the way down and hit ENTER on the ‘OK’ option.

Confirm Network Settings
Confirm Network Settings

This takes you back to the interfaces screen as shown below. Navigate and hit on the ‘Back’ option.

Network Interface Settings
Network Interface Settings

Select ‘Activate a connection’ and then ‘OK’ and hit ENTER.

Active Network Connection
Active Network Connection

Select your interface name and then navigate to the ‘Deactivate’ option and hit ENTER.

Deactivate Network Connection
Deactivate Network Connection

This will take you a step back whereupon you will click on the ‘Activate’ option as shown:

Active Network Connection
Active Network Connection

We’re all done now. To go back click on the ‘Back’ option and finally, press ENTER on the ‘quit’ selection.

Quit Network Configuration
Quit Network Configuration

Again, to verify that the network interface has acquired the IP address we have just configured, run the command:

$ ip addr show enp0s3
Confirm Network IP Address
Confirm Network IP Address

And this concludes this article on configuring IP network connection using ‘nmtui’ graphical command-line utility on Linux. We hope you found this guide helpful.

Root Plan
Premium Linux Education for Serious Learners

Take Your Linux Skills to the Next Level

Root members get full access to every course, certification prep track, and a growing library of hands-on Linux content — with new courses added every month.

What You Get
Ad-free access to all premium articles
Access to all courses: Learn Linux, AI for Linux, Bash Scripting, Ubuntu Handbook, Golang and more.
Access to Linux certifications (RHCSA, RHCE, LFCS and LFCA)
Access new courses on release
Get access to weekly newsletter
Priority help in comments
Private Telegram community
Connect with the Linux community
Ravi Saive
I'm Ravi Saive, an award-winning entrepreneur and founder of several successful 5-figure online businesses, including TecMint.com, GeeksMint.com, UbuntuMint.com, and the premium learning hub Pro.Tecmint.com.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

4 Comments

Leave a Reply
  1. I have configured the connection in Edit a connection, but when I go to ‘Activate a connection‘ it isn’t showing up.

    Any idea why?

    Reply
  2. Deactivating the network card sounds like a terrible way to apply the changes, especially if this is a remote server.

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.

Root Plan Premium Linux Education for Serious Learners

Before You Go - Upgrade Your Linux Skills

Root members get everything in one place, with new courses added every month.

What You Get
Ad-free access to all premium articles
Access to all courses: Learn Linux, AI for Linux, Bash Scripting, Ubuntu Handbook, Golang and more.
Linux certifications: RHCSA, RHCE, LFCS and LFCA
Access new courses on release
Weekly newsletter, priority support & Telegram community
Join Root Today and Start Learning Linux the Right Way
Structured courses, certification prep, and a community of Linux professionals - all in one membership.
Join Root Plan →
$8/mo · or $59/yr billed annually