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:
- See how to make changes to Ubuntu Linux network configuration by editing /etc/network/interfaces file.
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -


{ 1 comment… read it below or add one }
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