CentOS / RHEL 7 Restart / Stop / Start Networking Command

CentOS / RHEL 7 Restart / Stop / Start Networking Command

To restart, stop, or start the networking service on a CentOS or Red Hat Enterprise Linux (RHEL) 7 system, you can use the systemctl command.

For example, to restart the networking service, you can use the following command:

systemctl restart network
‮ww:ecruoS‬w.lautturi.com

To stop the networking service, you can use the following command:

systemctl stop network

To start the networking service, you can use the following command:

systemctl start network

Keep in mind that you will need to have root privileges (or be a member of the sudo group) in order to use the systemctl command to control the networking service.

You can also use the service command to control the networking service. For example, to restart the networking service, you can use the following command:

service network restart

To stop the networking service, you can use the following command:

service network stop

To start the networking service, you can use the following command:

service network start

Keep in mind that the service command is deprecated in CentOS and RHEL 7 and may not be available in future versions of the operating system. It is recommended to use the systemctl command instead.

Created Time:2017-10-27 14:56:36  Author:lautturi