Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an annoying problem. Every time the LAN cable is not in while booting, I cannot get any connection to the internet, network, router, etc. I tried to plug in and out the cable several times - but nothing happened, besides that I always shows that LAN is disconnected. The same happens after sleeping mode.

I am new to Ubuntu (12.04) and hoping for a hint!

Thanks in advance!

share|improve this question

DHCP protocol can not assign your NIC an IP address without a cable connected. Obtain root acces in a console and execute dhclient eth0 where eth0 is the name of your NIC.

share|improve this answer

Try opening a terminal and use this command:

sudo /etc/init.d/networking restart

if this does not work, try stopping and starting the connection:

sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
share|improve this answer
sorry.. that did not solve my problem.. i could furthermore not restart the networking after stopping. – user94770 Oct 6 '12 at 13:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.