Ubuntu Restart Network

by on January 13, 2008 · 2 comments· last updated at December 15, 2008

Q. How do I restart / stop / start networking under Ubuntu Linux system from a shell prompt?

A. You can easily restart, stop, or start networking service under Ubuntu Linux using a shell prompt. You can also restart networking remotly over ssh session (do not stop networking service over ssh session).

Task: Restart networking under Ubuntu Linux

Open terminal (command line) and type the following command:
$ sudo /etc/init.d/networking restart

To start networking service, enter:

$ sudo /etc/init.d/networking start

To stop networking service, enter:

$ sudo /etc/init.d/networking stop

See also:

  1. See how to make changes to Ubuntu Linux network configuration by editing /etc/network/interfaces file.


You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 2 comments… read them below or add one }

1 vajorie October 7, 2011 at 3:15 pm

Interestingly enough, this command now says it is deprecated (due to a change in Debian code[1]). I think it still works, though probably for a limited time.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565187

Reply

2 Shafiul April 5, 2012 at 3:00 pm

I like this site , really rich collection of solutions

i am from bangladesh , working as Project Manager

My wish to developed myself as a High level linux administrator

this site help me a lot daily

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: