Managing network settings on Red Hat Enterprise Linux

Share this:

By default in Red Hat Enterprise Linux 7.3 (the version which this article was written) the default network service is done by NetworkManager which is a Linux daemon which is responsible to configure the network components of the system. Although the traditional ifcfg configuration files are supported the recommendation is to take advantage of NetworkManager service to configure IP, aliases, static routes, DNS and VPN connections.

The NetworkManager has a command line interface (nmcli) and a simple text user interface (nmtui), as well graphical user interface support.

Solution


If you are an old school administrator, you will use /etc/resolv.conf to configure your DNS settings on the system. However, if we do that on RHEL 7.0, we will notice that there is comment that the information there was generated by our friendly daemon NetworkManager.

2017-05-15 01_40_36-itlab.yamana.com - Remote Desktop Connection Manager v2.2

Using Graphical User Interface (GUI)…

If you are using the graphical user interface, click on the network icon on the right-upper side and then click on Wired Settings.

2017-05-15 01_41_23-itlab.yamana.com - Remote Desktop Connection Manager v2.2

In the new window, all current IPv4 and IPv6 will be displayed, as well MAC, default gateway and DNS. Click on Settings button to change the current settings.

2017-05-15 01_41_43-itlab.yamana.com - Remote Desktop Connection Manager v2.2

Click on IPv4 and we can add a new DNS or perform any desired changes to the interface. We can always turn the interface on and off to refresh the settings like DNS.

2017-05-15 01_42_16-itlab.yamana.com - Remote Desktop Connection Manager v2.2

Using text user interface (TUI)

We can use nmtui command to start the NetworkManager TUI where the administrator can click on Edit a connection. The administrator can use some shortcuts to save the trouble of selecting the first option that is being shown on the image below. For example nmtui edit eth0 goes straight to the configuration of eth0 interface.

image

Select the interface, in our case eth0 and click on Edit…

image

Perform the desired changes, such as DNS Server changes and confirm.

image

What is going on NetworkManager daemon?

We can use the command below to get an overview of the NetworkManager daemon to see what is going on and the latest activities.

systemctl status NetworkManager –l

image

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

Top 5 of the Week Folks, We live in a constantly changing world and new technologies and features are being added on  a daily basis. The ITPROCentral.com team made a...
How to configure server hostname in Red Hat Linux ... In RHEL (Red Hat Enterprise Linux) the administrator has several methods to define the server name. By default, the Linux has a static host name which...
How to list all static hosts in DNS In this Tutorial we are going over the process to list all static entries in any given DNZ zone. Solution If you are responsible to manage the Acti...
Using DNS Console cache to troubleshoot a geo-loca... How to use DNS Manager to troubleshoot a geo-location restriction in the firewall. Solution I had this interesting situation in one of my customers...