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 a WiFi and a Ethernet card on my laptop.
I've created an adhoc network and using internet via lan.
I am able to connect my adhoc network, but, when I do ifconfig, it does not display any WiFi interface.

ifconfig -s
eth0       1500 0     13115      0      0 0          8157      0      0      0 BMRU
eth1       1500 0         0      0      0 0            10     19      0      0 BRU
lo        16436 0       475      0      0 0           475      0      0      0 LRU
virbr0     1500 0         0      0      0 0            24      0      0      0 BMRU

I want to be able to start/stop my wireless interface from terminal, but can't sudo ifup wlan0

share|improve this question
up vote 1 down vote accepted

Run sudo iwlist scan in the terminal. It will list the names of the wireless device names on your system.

I don't know if it was an update to the ubuntu naming conventions, but when I tested my machine it was using eth1 as the wireless lan device.

The above command will get you the proper name (which by your output is either eth0 or eth1), then just use that name when performing commands (ifconfig eth1 up).

share|improve this answer
It's eth1 on my machine as well. – weberc2 Mar 9 '12 at 17:08
Thanks @brian-graham , I can scan using eth1 interface... – Ravish Mar 9 '12 at 17:50
No problem @RavishTiwari, glad I could help. – Brian Graham Mar 9 '12 at 19:14
sad part is mine is a broadcom STA driver and 'Monitor' mode is not allowed :( – Ravish Mar 9 '12 at 23:12

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.