Sorry, you have been blocked
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: 7a2936642bb42473 • Your IP: Click to reveal 88.135.219.175 • Performance & security by Cloudflare
How to Configure Network in Linux Using Netplan and NMTUI

Network settings play the most important and the founding role in any server configuration. In this article we are going to show you the use of two most important and commonly used utilities in Linux systems that is NMTUI and NETPLAN. Using both these utilities you can configure the network settings by assigning the right IP, subnet mask and the Gateway. NMTUI (Network Manager Text User Interface) is an alternative to NMCLI (Network Manager Command Line Interface). Whereas Netplan is a Linux command-line utility that uses YAML descriptive files to configure network interfaces.
Prerequisites:
The prerequisites for this article is to have a Linux system running a Debian or RHEL Operating System with sudo rights.
Step 1: System Login
Let’s start by login to your system. You want to configure its network interface using NMTUI or Netplan on a Debian system which is Ubuntu in our case.
Open its shell terminal or connect to its console from your host server as shown below.

Step 2: Checking Network Interface
To check the network interface we are going to make use the ‘ifconfig’ or ‘ip’ command as below.

Here you can see the detail of its interface so in the next step we are going to assign an IP to this interface.
Step 3: Assigning IP Using Netplan
Netplan utility come by default in Ubuntu 20 LTS, so we just need to configure it using its configuration file.
Open its network interface .yaml configuration file using any of your favorite editor to add its required parameters in YAML Format.
Save and close the file using ‘:wq!’ and then run the ‘netplan apply’ command to make the configuration effective.

Here you can see that its network interface is up with our assigned IP address.
To know more about using the netplan you can make use of its help parameters.
usage: /usr/sbin/netplan [-h] [–debug] …
Network configuration in YAML
-h, –help show this help message and exit
–debug Enable debug messages
help Show this help message
apply Apply current netplan config to running system
generate Generate backend specific configuration files from /etc/netplan/*.yaml
info Show current netplan version and available features
ip Retrieve IP information from the system
try Try to apply a new netplan config to running system, with automatic rollback
Step 4: Assigning IP using NMTUI
NMTUI is an alternative tool to configure network interfaces on a Linux systems, it stands for Network Manager Text User Interface. It available on default repository of RHEL/CentOS 7 and later version but if you are using Ubuntu 20 LTS like in our case then you have to install it first.
To install NMTUI on Ubuntu run the command below on your terminal.
After installation, run the below command to run this on your system and its interface will pop up.

Here as shown, you can edit or activate any other connection interface as well as set the system hostname.
Let go for Edit connection to configure your IPv4 configurations as per your network addresses.

Make sure to check automatically connect option and then select ‘OK’ to save the changes. To apply the made changes run the command below to restart your network services.
And that’s it, check your IP status and it should be assigned to your connected interface.
Conclusion:
In this article you have learned about setting up your network interface using Netplan and NMTUI. Setting up the network interfaces is one of the most basic step that every system administrator and server engineers have to do to make it accessible over the network. I hope you have found this article much helpful in configuring your system network.

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.
Install and Use NetworkManager (NMCLI) on Ubuntu / Debian
For system Admins, their daily routine revolves around configuring(provisioning), maintaining, troubleshooting, monitoring, securing, and managing servers in data centers. This guide answers the question that arises on how to manage or administer Ubuntu/Debian network interfaces using some default tools. Network Manager is a tool designed to manage networks on a machine. It has many tools that are used to manage network configurations on about all Linux distributions. This tool is the default Network managing tool on Ubuntu systems. It provides the following Network managing tools:
- Nmtui– this tool is run on a Linux terminal window. It is a text based network manager tool where changes can be made on a network by entering data and menu selections. It is used to perform basic network management tasks, it has many missing features that are available in NMCLI.
- Gnome Setting– from the Gnome desktop one can manage the network by using a Gnome network application. It provides basic network manahgement and is easy to perform configurations.
- nm-connection-editor– this is a graphical based network manager tool that allows one to access the NetworkManager configuration options
- NMCLI-normally referred to Network Command-Line Interface is a networking tool used to manage the NetworkManager and also show the status of a network connection. It is useful when one is unable to access the graphical environment or running a server edition and do network configuration changes
- Flexible network visualization
- Comprehensive network management
- Built-in root cause analysis capabilities
- Fully customizable content
- Built-in device and interface polling capabilities
- Single-click network troubleshooting
- Extensive reporting capabilities
- Multiple integration options
- Increasingly bigger network discovery
By the end of this guide, you should be able to install and use NetworkManager NMCLI on Ubuntu / Debian System.
Pre-requisites
For this guide, ensure that your Ubuntu|Debian system is updated and upgraded as below.
Step 1 – Install NetworkManager on Ubuntu|Debian System
- Using APT
- Using Snap
1a) Install NetworkManager on Ubuntu|Debian System Using APT
NetworkManager is available in the default ubuntu|Debian systems’ APT repositories and can be installed as below.
Start and enable Network Manager as below.
1b) Install NetworkManager on Ubuntu|Debian System using Snap.
NetworkManager is also available in the Snap store and can be installed on Ubuntu|Debian system with snap installed and enabled as below.
Then install NetworkManager using the command:
After this installation, all the required plugs and slots will be connected automatically, Verify this as below.
Once the installation is complete, Network Manager will be automatically started and running in the background, check its status using the command:
Step 2 – Use NetworkManager NMCLI on Ubuntu|Debian System.
NMCLI is a network utility tool that will allow us to manage network configurations. There are a couple of commands one can use to manage a network.
Modify Network Connections
Using the NMCLI to modify network connections requires us to begin with listing network connections, use the command:
Display an active connection
The above command shows all the connections, but if you want to see the active or up connections you will add the —active flag to the above command;
With the connection profile name, you can view additional information as below.

Sample Output:
Add and Modify Network Connections using NMCLI
Add a Network connection using NMCLI
Using NMCLI, one can add new connections to an Ubuntu|Debian system using the syntax below.
Modify an existing Network connection using NMCLI
With NMCLI, one can make adjustments, configurations to an existing network connection such as switching between static and DHCP configurations using the syntax below.
Now let’s see the configurations we can add and modify a connection using NMCLI. We will begin by adding a NetworkManager connection profile for our connection. For me, it’s the Ethernet connection and I will add a connection profile with the name My-New-Connection
With the connection profile added, we will make the below adjustments. Remember to set your own IP address, gateway, DNS server e.t.c using a similar syntax to the one I have given.
To Set automatic start of the network connection use:
1. Set a static IPv4 address with a /24 subnet mask
For example, we will modify the existing connection to a Static IP_Address and also change the subnet /24 without this specification, it will assign an IP with the default mask that can cause problems later.
2. Set a static IPv6 address with a /64 subnet mask
3. Set an IPv4/IPv6 default gateway
4. Set an IPv4/IPv6 DNS server
5. Set the IPv4 and IPv6 connection method to automatic
For the changes made to take effect, you need to activate the profile.

Now check active connections.
Verify the set IP_Address.

As from the output, I have two IP Addresses, a primary IP and the secondary IP added by the new connection profile My-New-Connection. You can check the additional information using the ip a command as below.
Manage Devices Using NMCLI
NMCLI utility tool can also be used to manage devices such as:
Displaying device Status

Sample Output:
Modifying a device configuration
Before you can modify a device configuration, you will first need to get the device information.

Sample Output:
With the device information, you can modify a device setting using the below syntax.
Remember that the above changes are temporal and can be reset to default settings using the command:
In case you are stuck when using NMCLI device manager find help using the command:

Conclusion.
That is it! We have gone through how to install and use NetworkManager NMCLI on Ubuntu / Debian System. I hope this guide was of significance to you. I assume you can now manage your network connection and network devices using NetworkManager NMCLI.
YOU CAN SUPPORT OUR WORK WITH A CUP OF COFFEE
As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.
Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.
Configure Network in Linux Using Netplan and NMTUI — Step by Step Process ?
Network settings play the most important and the founding role in any server configuration. In this article we are going to show you the use of two most important and commonly used utilities in Linux systems that is NMTUI and NETPLAN.
Using both these utilities you can configure the network settings by assigning the right IP, subnet mask and the Gateway.
NMTUI (Network Manager Text User Interface) is an alternative to NMCLI (Network Manager Command Line Interface). Whereas Netplan is a Linux command-line utility that uses YAML descriptive files to configure network interfaces.
Here at LinuxAPT , as part of our Server Management Services , we regularly help our Customers to perform related Linux Network queries.
In this context, we shall look into How to configure networking with Netplan on Ubuntu.
How to perform Network configuration using Netplan ?
To begin with this Configuration procedure, ensure that you have a Linux system running a Debian or RHEL Operating System with sudo rights.
Then, follow the steps provided below.
Start by logging into your system. You want to configure its network interface using NMTUI or Netplan on a Debian system which is Ubuntu in our case.
Open its shell terminal or connect to its console from your host server.
2. Check Network Interface
To check the network interface we are going to make use the ‘ ifconfig ‘ or ‘ ip ‘ command as below:
Here you will see the detail of its interface so in the next step we are going to assign an IP to this interface.
3. Assign IP Using Netplan
Netplan utility come by default in Ubuntu 20 LTS, so we just need to configure it using its configuration file.
i. Open its network interface .yaml configuration file using any of your favorite editor to add its required parameters in YAML Format.
ii. Save and close the file using ‘ :wq! ‘ and then run the ‘ netplan apply ‘ command to make the configuration effective.
Here you can see that its network interface is up with our assigned IP address.
To know more about using the netplan you can make use of its help parameters:
4. Assign IP using NMTUI
NMTUI is an alternative tool to configure network interfaces on a Linux systems, it stands for Network Manager Text User Interface.
It available on default repository of RHEL/CentOS 7 and later version but if you are using Ubuntu 20 LTS like in our case then you have to install it first.
To install NMTUI on Ubuntu run the command below on your terminal:
After installation, run the below command to run this on your system and its interface will pop up:
Here, you can edit or activate any other connection interface as well as set the system hostname.
Let go for Edit connection to configure your IPv4 configurations as per your network addresses.
Make sure to check automatically connect option and then select ‘ OK ‘ to save the changes.
To apply the made changes run the command below to restart your network services.
And that’s it, check your IP status and it should be assigned to your connected interface.
[Need assistance in fixing Linux related issues? We can help you . ]
Conclusion
This article covers how to set up your network interface using Netplan and NMTUI. Setting up the network interfaces is one of the most basic step that every system administrator and server engineers have to do to make it accessible over the network.
Netplan is based on YAML based configuration system that makes configuration process very simple. Netplan has replaced the old configuration file /etc/network/interfaces that we previously used for configuring network interfaces in Ubuntu.
To Restart the network service
1. Once all the configurations are successfully applied, restart the Network-Manager service by running the following command:
2. If you are using a Ubuntu Server, instead use the following command:
To Verify IP address
Now to verify if the new configurations are successfully applied, run the following command to verify the IP address:
The Netplan default configuration file is under the directory /etc/netplan .
You can find that using the following command:
To view the content of Netplan network configuration file, run the following command: