You may need to restart or stop network services on your Rocky Linux system occasionally. This article shows you step-by-step how to start, stop, or restart network services on Rocky Linux 8. The same commands also work on other RHEL clones such as AlmaLinux 8 and CentOS 8.
Open the terminal window on your system and run the ‘su’ command on the terminal to log in as the root user.
There are the following two ways through which you can start, stop or restart network service:
Now, we will explore each way one by one in the following tutorial:
To start a network service on the RockyLinux 8, you will run the below-given command:
$sudo systemctl start NetworkManager.service
The above-mentioned command is used to start a network service on RockyLinux 8.
To stop a network service on the RockyLinux 8, you need to run the below-mentioned command:
$sudo systemctl stop NetworkManager.service
To restart a network service, you need to execute the following command:
$sudo systemctl restart NetworkManager.service
The nmcli is a tool or utility that is used for managing the NetworkManager services through the terminal.
Note: Before starting to use nmcli utility, it is noted that do not try to execute ‘$nmcli networking off’ for those systems that are connected remotely with others. This command will stop or disable the NetworkManager settings and you will disconnect from the network connection.
To turn on the network services, you will type the following command on the terminal in RockyLinux 8.
$sudo nmcli networking on
To stop or turn off the network services, you will execute the following command on the terminal.
$sudo nmcli networking off
In this article, you have learned how to start, stop or restart network services on RockyLinux 8. I hope you have enjoyed this article and it would be helpful for you as well. Provide your feedback in the comment section.
Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…
ISPConfig is an open-source control panel that allows users to manage multiple servers from a…
As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…
Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…
Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…
phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…