Why service networking restart or /etc/init.d/networking restart does not work

For example, take the server with the operating system Ubuntu Server 14.04, in which let’s say we changed the network settings when executing the commands:

sudo service networking restart
sudo /etc/init.d/networking restart

Information is displayed:

stop: Job failed while stopping
start: Job is already running: networking

I note that sometimes on some Linux systems, these commands may succeed, for example, on a clean system, they will execute.
This can be affected by running services, which can stop working after restarting the network, and some network interfaces may not rise, so if restarting failed, I recommend restarting the server.

You can try at your own risk to restart the network through the crutches below, and then also restart your services on the server if they do not work, in this case there is a chance to lose connection with the server.

For example, you can try this:

sudo service networking stop && sudo service networking start

Or for each network interface:

(sudo ifdown eth0 ; sudo ifup eth0) &

Or through the screen:

screen
(sudo ifdown -a ; sudo ifup -a )&

See also my article:
Configuring the Network in Linux

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a comment

Leave a Reply