Friday, 17 March 2017

How to restart network service on Ubuntu


If you are ubuntu beginner you probably didn't know how to restart network on ubuntu, in this article i will show you how to restart network service on ubuntu via command line.

Ubuntu Desktop
For ubuntu desktop you can restart the network service using this command:
sudo service network-manager restart
Of course start and stop works as well with the command above
sudo service network-manager stop
sudo service network-manager start
Ubuntu Server
For ubuntu server, since there is no GUI, restarting the network-manager service won't work, instead run this command for ubuntu server:
sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a

Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.