Restarting the network on CentOS 8

One of the most common system administration practices is restarting the network. A sound network service is always required to connect your machine to the Internet. Sometimes, unwanted issues can cause a network service on a particular operating system to malfunction. If the problem is temporary, it can be resolved simply by restarting the network service.

There are several methods that you can use on any operating system to restart the system’s network service. Today we will cover two main methods of restarting a network service in CentOS 8, one of the most popular Linux distributions.

If you are using a CentOS 8 based system and cannot establish a secure connection to your network, you will be shocked at how many problems a quick restart can solve. You can restart the Linux network service using a variety of commands, but you must run the commands to restart the network using sudo or su as root.

Ways to restart network service on CentOS 8

To restart the network service on CentOS 8, you can choose any of the two methods listed below.

Method # 1: Using the “nmcli” utility

Nmcli is a command line application used to access Network Manager and monitor network health. To use the “nmcli” utility to restart the network service on CentOS 8, follow these steps:

First, go to the Actions tab on your CentOS 8 system.

Performing this action will cause a search bar to appear on your screen, in which you can search for a terminal. You can also open a terminal with the keyboard shortcut Ctrl + Alt + T.

To restart the network service in CentOS 8 using the “nmcli” utility, first shut down the network service by running the following command in the terminal window you just started:

$ sudo nmcli networking off

Executing this command will immediately disable the network service, and terminal control will be transferred to you without displaying any output. Then enable the network service by running the following command in a terminal:

$ sudo nmcli networking on

Executing the above command will immediately start the network service and terminal control will be transferred to you without displaying any output. In this method, you first disabled the network service and then enabled it. Basically, you just restarted the network service using the “nmcli” utility on CentOS 8.

Method # 2: Using the Network Manager Utility

Network Manager is a software utility that simplifies the use of computer networks. To use the Network Manager utility to restart the network service on CentOS 8, follow these steps:

In terminal, run the following command to start the network service:

$ sudo systemctl start NetworkManager.service

Executing this command will immediately start the network service and control of the terminal will be transferred to you without displaying any output. Now stop the network service by running the following command in terminal:

$ sudo systemctl stop NetworkManager.service

Executing this command will immediately stop the network service and control of the terminal will be transferred to you without displaying any output. Then restart the network service using the Network Manager utility by running the following command in the terminal:

$ sudo systemctl restart NetworkManager.service

Executing this command will immediately restart the network service and control of the terminal will be transferred to you without displaying any output. You can also check if your network service is restarted by running the following command in terminal:

$ sudo systemctl status NetworkManager.service

If the Network Manager has successfully restarted the network service, you should be able to see the “active (running)” status after executing the command.

Conclusion

Restarting a network or connection is a task that any Linux user must complete. This article presents two of the easiest and quickest methods to restart a network service when using CentOS 8. The best thing about both of these methods is that they don’t require any prior installation; rather, you can start following these methods right away. All you have to do is execute a few basic commands and your network service will be restarted in no time. We hope we have provided you with the strategies you need to resolve network restart issues on CentOS 8.

It’s all. I hope you found the guidance in this article helpful for your purposes. After following the steps in the guide, you are now in a position to easily and conveniently restart the network on your CentOS 8 system by following either of the two methods presented.

Sidebar