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.