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.
“sudo /etc/init.d/networking restart”
Unsupported in Ubuntu 14.04.
yes, use this command:
$ sudo service network-manager restart