Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • VirtualBox
  • VMware
  • Windows
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • VirtualBox
  • VMware
  • Windows
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Restart the Network Service on CentOS 8 or RHEL 8

October 27, 2022
in Blog, Linux
0
ADVERTISEMENT

Table of Contents

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.

Method 1 – Using NetworkManager Service

In CentOS 8/RHEL 8 when you run the command service network restart you would get the following error:

# service network restart
Redirecting to /bin/systemctl restart network.service
Failed to restart network.service: Unit network.service not found.

The above command works on CentOS 6/7 only, so you need using another command to start the network service on CentOS 8.

Get the network service name in CentOS8/RHEL 8.

# systemctl list-units | grep Net
NetworkManager-wait-online.service    loaded active exited    Network Manager Wait Online       
NetworkManager.service     loaded active running   Network Manager        
network-online.target      loaded active active    Network is Online      
network-pre.target         loaded active active    Network (Pre)          
network.target  loaded active active    Network 

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

Note 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.
Alternatively, the 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.
# nmcli networking -h
Usage: nmcli networking { COMMAND | help }
COMMAND := { [ on | off | connectivity ] }
  on
  off
  connectivity [check]
sudo nmcli networking off
sudo nmcli networking on
ADVERTISEMENT
5/5 - (1 vote)
Previous Post

How to Assign a Static IP for a CentOS 8 or RHEL 8

Next Post

How to Get the List of Services on Linux

Related Posts

Ftr38

[WinForms] Creating GUIs in Windows PowerShell with WinForms

November 15, 2023
Ftr21

Converting DateTime Obtained from Microsoft Graph Call to PowerShell Date and Time Format

October 21, 2023
Ftr21

Translate Microsoft 365 License GUIDs to Product Names in PowerShell Microsoft Graph

October 19, 2023
Ftr21

How to Get an Access Token for Microsoft Graph PowerShell / API

November 27, 2023
Ftr21

Getting Access Token for Microsoft Graph

November 27, 2023
Ftr5

How to Copy Files without Changing Date Creation Time on Windows

November 27, 2023

Leave a Reply Cancel reply

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

Recent Posts

  • [WinForms] Creating GUIs in Windows PowerShell with WinForms
  • Converting DateTime Obtained from Microsoft Graph Call to PowerShell Date and Time Format
  • Translate Microsoft 365 License GUIDs to Product Names in PowerShell Microsoft Graph

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2023 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory