This question already has an answer here:
- How to restart the networking service? 16 answers
When I am using Ubuntu, sometimes the network goes down and there is no option to bring back the wired network. There is always option for wireless, but no option for wired network. In such case I try
sudo service network-manager restart (using a command line just to start the interface). This works sometimes, sometimes it takes many iterations and other times it never starts. In my country the network goes down without any reason. I even wrote a perl script to run above script for at least 10 iterations and scheduled it using Cron. Since lately I cannot start the network using above command unless I restart the computer. What is the problem with the computer, why can't a network restart become a first class citizen in Ubuntu and needs a computer reboot. Why isn't there an option that never goes down just like wireless network to start wired network. Is there something I am missing. The command
sudo /etc/init.d/networking restart does not seem to do anything at all.