Ubuntu Restart Network

by Vivek Gite on January 13, 2008 · 1 comment

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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 1 comment… read it below or add one }

1 vajorie October 7, 2011

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

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 11 + 3 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: