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...


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
  • 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. Mar 15 '13 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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