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

When installing Ubuntu server12.10 I am not connected to internet and while installing I chose manually configure network. Now i need my server to be connected to internet. please help me..... Thanks in advance.

share|improve this question
up vote 1 down vote accepted

If you have setup to configure network manually then go to

 nano /etc/network/interfaces

It will be like this

 auto lo
 iface lo inet loopback

 auto eth0
 iface eth0 inet static
 address ..

You need to change it

 auto lo 
 iface lo inet loopback

 auto eth0
 iface eth0 inet dhcp
 #comment out the lines below this and Save the file

Then run

 sudo /etc/init.d/networking restart

You will get the ip from dhcp server if you are connected to it.

share|improve this answer
thank you for your help – Sameer Mar 26 '13 at 5:35

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.