Home / Linux / How to Disable NetworkManager in CentOS/RHEL 8
How to Disable NetworkManager in CentOS/RHEL 8

How to Disable NetworkManager in CentOS/RHEL 8

How to Disable NetworkManager in CentOS/RHEL 8

In Linux, the Network Manager is a daemon that handles the detection of energetic networks and configuration of community settings. When up and operating, the community supervisor routinely detects energetic community connections, the place wi-fi or stressed out, and permits the consumer to carry out additional configuration of the energetic connections.

Read Also: Getting Started with NetworkManager in RHEL/CentOS 8

When the community supervisor is disabled, it’s unimaginable to discover any networks or configure any community configurations. Basically, your Linux gadget will get remoted from any community. In this subject, you’re going to learn the way to disable community supervisor on CentOS 8 and RHEL 8.

Step 1: Update the System

First, log in and replace the applications for your CentOS 8 or RHEL 8 gadget.

$ sudo dnf replace 
Update CentOS 8 SystemUpdate CentOS 8 System

Update CentOS 8 System

Step 2: List the Active Connections on System

Before we disable Network, it’s prudent to identify the selection of energetic connections for your gadget. There are a couple of instructions that you’ll be able to use to show the energetic connection:

ifconfig command

When invoked the ifconfig command, it lists down energetic community interfaces as proven:

$ ifconfig
ifconfig - List Active Network Connectionsifconfig - List Active Network Connections

ifconfig – List Active Network Connections

nmcli command

nmcli is but every other command-line instrument this is extra intuitive than the ifconfig command.

# nmcli
nmcli - List Active Network Connectionsnmcli - List Active Network Connections

nmcli – List Active Network Connections

From the output above, we will be able to obviously see that there are 2 energetic interfaces: enp0s3 which is the wi-fi interface and virbr0 which is the Virtualbox interface. lo which is the loopback deal with is unmanaged.

nmtui command

nmtui is a command-line graphical instrument, use to configure community settings.

# nmtui
Configure Network ConnectionConfigure Network Connection

Configure Network Connection

Select the primary possibility ‘Edit a connection‘ and press the TAB key to the ‘Ok‘ possibility and hit ENTER.

Active Network InterfacesActive Network Interfaces

Active Network Interfaces

From the output, we will be able to see two energetic community interfaces, as prior to now observed in the former nmcli command.

Step three: Disable Network Manager in CentOS 8

To disable NetworkManager carrier in CentOS 8 or RHEL 8, execute the command.

# systemctl forestall NetworkManager

To ascertain the standing of NetworkManager run.

# systemctl standing NetworkManager
Disable Network Manager ServiceDisable Network Manager Service

Disable Network Manager Service

Now check out list the energetic community interfaces the use of both nmcli or nmtui command.

# nmcli
# nmtui
Check Network Interfaces StatusCheck Network Interfaces Status

Check Network Interfaces Status

From the output above, we’ve showed that the NetworkManager carrier is disabled.

Step four: Enable Network Manager in CentOS 8

To get the NetworkManager carrier operating once more, merely run.

# systemctl get started NetworkManager

Now test the standing of the NetworkManager carrier the use of both nmcli or nmtui.

# nmcli
# nmtui
Enable NetworkManager ServiceEnable NetworkManager Service

Enable NetworkManager Service


In this newsletter, you realized how to disable or even get started NetworkManager carrier on CentOS 8 and RHEL 8 gadget. Remember excellent apply at all times calls for that NetworkManager carrier is up and operating for computerized detection of networks and managing interface settings.

Check Also

How to Watch TCP and UDP Ports in Real-time

How to Watch TCP and UDP Ports in Real-time

How to Watch TCP and UDP Ports in Real-time In tool phrases, particularly on the …

Leave a Reply

Your email address will not be published. Required fields are marked *


Recent Posts