NetworkManager is installed by default on Red Hat Enterprise Linux. If necessary, to ensure that it is, enter the following command as the
yum install NetworkManager
1.4.1. The NetworkManager Daemon
The NetworkManager daemon runs with root privileges and is, by default, configured to start up at boot time. You can determine whether the NetworkManager daemon is running by entering this command:
systemctl status NetworkManager
NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
Active: active (running) since Fri, 08 Mar 2013 12:50:04 +0100; 3 days ago
systemctl status command will report NetworkManager as
Active: inactive (dead) if the NetworkManager service is not running. To start it for the current session enter the following command as the root user:
systemctl start NetworkManager
systemctl enable command to ensure that NetworkManager starts up every time the system boots:
systemctl enable NetworkManager
1.4.2. Interacting with NetworkManager
Users do not interact with the NetworkManager system service directly. Instead, users perform network configuration tasks using graphical and command-line user interface tools. The following tools are available in Red Hat Enterprise Linux 7:
A simple curses-based text user interface (TUI) for NetworkManager, nmtui, is available.
A command-line tool, nmcli, is provided to allow users and scripts to interact with NetworkManager. Note that nmcli can be used on systems without a GUI such as servers to control all aspects of NetworkManager. It is on an equal footing with the GUI tools.
The GNOME Shell also provides a network icon in its Notification Area representing network connection states as reported by NetworkManager. The icon has multiple states that serve as visual indicators for the type of connection you are currently using.
A graphical user interface tool called control-center, provided by the GNOME Shell, is available for desktop users. It incorporates a Network settings tool. To start it, press the Super key to enter the Activities Overview, type
Network and then press Enter. The Network settings tool appears.
A graphical user interface tool, nm-connection-editor
, is available for certain tasks not yet handled by control-center
. To start it, enter nm-connection-editor
in a terminal: