How to restart the network service in Linux and FreeBSD

In Linux, every service can be rebooted. This is very usefull because you don’t need to restart the whole system, in order get the modifications applied.

In this article I will show you how to reboot the network (or networking) service in the most used Linux distros and FreeBSD.

How to restart the network in Fedora/CentOS/openSUSE:

$ sudo /etc/init.d/network restart

AND

$ sudo service network restart

How to restart the network in Debian/Ubuntu/Linux Mint:

$ sudo /etc/init.d/networking restart

How to restart the network in FreeBSD/PCBSD:

# /etc/rc.d/netif restart

AND

# service netif restart

You can also start or stop services in Linux/Unix. Read more about managing services here.

Liked it? Take a second to support Geekster on Patreon!
Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!
2 comments on “How to restart the network service in Linux and FreeBSD
  1. “sudo /etc/init.d/networking restart”

    Unsupported in Ubuntu 14.04.

Leave a Reply

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

*

Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!