Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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 ..
 netmask
 gateway
 network
 broadcast

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

 
discard

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.