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.

I had recently installed an ubuntu 12.10 server edition and i am new to this. During the installation I skipped the configure network section, and now i cant connect to any network. I used the lshw -C network and found that both my wired and wireless adapters are disabled. Someone please help me to get this thing fixed. Thanks in advance and sorry for the bad english...

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Check the content of /etc/udev/rules.d/70-persistent-net.rules files to get the names assigned to your network devices by udev. Usually, those should be eth0 for wired and wlan0 for wireless.

Then, put the following content into the /etc/network/interfaces file (replace eth0 and wlan0 names if needed):

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

Tha above will work fine if only you have the DHCP server in your network. If no, you can assign static IP address according to the following example:

auto eth0
iface eth0 inet static
 address 192.168.0.2
 netmask 255.255.255.0
 gateway 192.168.0.1
share|improve this answer
    
Welcome to Ask Ubuntu! Please avoid posting the same answer in more than one place. When tempted to do so, typically: (1) it should be customized to account for what is different about the questions, (2) one question should be flagged for closure as a duplicate of another question (you can flag posts with 15 reputation), (3) the answer should really be a comment, or (4) the answer should be posted in the most appropriate place, and one-line comments posted on the other questions summarizing and linking to it. –  Eliah Kagan Mar 15 '13 at 8:38
add comment

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.