You can easily restart, stop, or start networking service under Ubuntu Linux using a shell prompt. You can also restart networking remotely over ssh session. However, please do not stop networking service over ssh session as you will loss connectivity to the remote server. You can use the following tools:
b) service command - Run a System V init script such as networking.
The syntax is as follows to restart the networking on Ubuntu or Debian based operating systems.
Task: Restart networking under Ubuntu Linux
Open terminal (command line) and type the following commands:
$ sudo /etc/init.d/networking restart
How to restart the networking service?
You can use the service command following as well:
$ sudo service networking restart
Warning: Do not stop networking service over ssh session.
To start networking service, enter :
$ sudo /etc/init.d/networking start
$ sudo service networking start
To stop networking service, enter:
$ sudo /etc/init.d/networking stop
$ sudo service networking stop
A note about desktop users
If above command failed, try the following command:
$ sudo service network-manager restart
- See how to make changes to Ubuntu Linux network configuration by editing /etc/network/interfaces file.
- 30 Cool Open Source Software I Discovered in 2013
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop