I have Ubuntu 16.04 and I have just made some changes to interfaces file. I ran sudo /etc/init.d/networking restart as advised in the documentation here.
However, it resulted in an error and now when I try to connect to my server again, and it won't start. After doing some Googling, I found that network-manager should have been restarted instead.
How can I fix this?
Thank you in advance.
Network error: connection timed out. I also cannot ping the IP anymore. I do have access to the machine itself though through a VM. I triedsudo ifdown ens160 && sudo ifup ens160but no luck – Pawel Oct 13 '16 at 13:12ifdownandifupbut still nothing (though this might be because our IT guys gave me a wrong IP to use and had to change it to forward external IP to a correct IP). Just FYI: I had run the initialnetworking restartthrough SSH, not sure if that messed anything up? – Pawel Oct 13 '16 at 13:35systemctl restart networking.serviceandsystemctl restart NetworkManager.serviceI think (note that the documentation you linked to doesn't appear to have been updated since 2009). – steeldriver Oct 13 '16 at 13:51systemctl restart networking.servicebut I don't believe I have NetworkManager as I get the following error:Failed to start NetworkManager.service. Unit NetworkManager.service not found. Unfortunately, still down after restartingnetworking. – Pawel Oct 13 '16 at 14:06ifconfig -ashow? And I would check with your IT guy that IP you're trying to use is correct – meccooll Oct 13 '16 at 15:40interfacesand restarted the Ubuntu machine and all works fine now. Thanks for the help. – Pawel Oct 13 '16 at 16:13