This tutorial will help you to Start/Stop and Restart the network services on a CentOS 8 or RHEL 8 Linux system. Here are the two methods available. We prefer method 1 to use.

Advertisement

Method 1 – Using NetworkManager Service

Use the followings commands to start/stop network service on your CentOS/RHEL 8 Linux system.

sudo systemctl start NetworkManager.service
sudo systemctl stop NetworkManager.service

Use the followings commands to restart network service on your CentOS/RHEL 8 Linux system.

sudo systemctl restart NetworkManager.service

Method 2 – Using nmcli Tool

The nmcli is the command-line utility for the managing NetworkManager on CentOS/RHEL 8 Linux system. You can simply use this utility to stop/start network service on your CentOS 8 or RHEL 8 system.

WARNING – Do not run nmcli networking off for the remotely connected systems. This will disable the NetworkManager network connections on the machine and you will lose connection.
sudo nmcli networking off
sudo nmcli networking on

The above command will disable/enable the network connections on CentOS 8 or RHEL 8 Linux system.

Share.

7 Comments

  1. i have tried everything you said here, restarting the network manager.service and the nmcli networking off and on. Eevn tried using static ip with nmcli, nothing is working on my vms. I tried to erase mine and create new one hoping the problem would simply go away but of course it wasn’t going to be that easy… any suggestions?

    • No need to restart if you are using the nmtui command

      but ensure that we need to activate the service once quit from the terminal

  2. But how would you preform a “restart” like the old systemctl restart network or service network restart commands did?

Leave A Reply


Exit mobile version