Difficulties with setting up your network in Ubuntu


Today I had some problems with setting up the network in Ubuntu.

Restarting the network resulted in the following error message:

# /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces…
/etc/network/if-up.d/upstart: 43: cannot create /run/network/ifup.eth0: Directory nonexistent
run-parts: /etc/network/if-up.d/upstart exited with return code 2

I have a workaround for this:

# cd /run
# ln -s /var/run/network network

Restart your network and you will see that the error message is disappeared.