LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 11-27-2011, 10:15 PM   #1
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 71

Rep: Reputation: 5
Unhappy Connect to WPA2 protected network with no X


Hello,

I have a WPA2 Personal protected wireless network setup in my apartment with dhcp (for the sake of this question, let's call it ESSID=mynetwork, passphrase=mypassphrase), and I would like to connect my Lemote Yeeloong netbook running Debian Wheezy to it. The system already has wpasupplicant and wireless-tools installed.

Running "iwconfig" says that wlan0 "Tx-Power=0 dBm". I can confirm my physical wireless on/off switch works because when I switch it off, iwconfig would say my wlan0 is "off".

Running "ifconfig" only shows me the lo and eth0 interfaces, no wlan0.

I tried adding the following to my /etc/network/interfaces:

Code:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid mynetwork
wpa-pak mypassphrase
I tried running "ifup wlan0", but it seems to have trouble with dhcp:

http://imageshack.us/photo/my-images/600/img0253c.jpg/

Notice that the DHCPDISCOVER lines say its trying to connect to 255.255.255.255, but my wireless router has an LAN IP of 10.0.1.1 (and clients get 10.0.1.x), might this be the problem??

The above are all specific to my apartment's network. How do I setup my system so that it can also join public networks such as those in the library/cafes, etc.?

Anyway, I can't get my wireless to work, and would appreciate any help you can provide. Thanks!

BTW, I currently don't have X installed, so everything needs to be done in the console.

Last edited by penyuan; 11-27-2011 at 10:20 PM. Reason: Specified that I have no X.
 
Old 11-28-2011, 12:36 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
Before trying to configure it to start automatically, get it working first.

You need to use iwconfig to configure how the host should connect to the AP. There are plenty of howto's online.

Code:
man iwconfig
 
0 members found this post helpful.
Old 11-30-2011, 02:06 PM   #3
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 71

Original Poster
Rep: Reputation: 5
Question More info

Here are screenshots of the steps I tried.

(1) These are the output from ifconfig and iwconfig initially:

http://i.imgur.com/zyEU2.png

(2) Then I tried the command "ifup wlan0", and this is when DHCP seems to fail:

http://i.imgur.com/kvlLQ.png

(3) After trying "ifup wlan0", I looked at the output from ifconfig and iwconfig again:

http://i.imgur.com/KVUS0.png
http://i.imgur.com/Y2ZPu.png

Also, here is my /etc/network/interfaces file:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

#auto wlan0
iface wlan0 inet dhcp
	wpa-ssid mynetwork
	wpa-pak mypassphrase
Can anyone help with this? Thanks.
 
  


Reply

Tags
dhcp, wifi, wlan0, wpa2, wpasupplicant


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to connect to WPA2 Enterprise network, Mandriva 2010.2 Tank Jr Mandriva 3 03-07-2011 04:49 PM
cannot connect to WPA2 network after modifying network connections gregnorc Linux - Wireless Networking 1 05-14-2010 11:55 PM
cant connect to wpa2 network in puppy bloodykandy Linux - Newbie 1 02-18-2010 08:51 AM
Wicd on Fedora 10 will not connect to WPA/WPA2 network after install Mikazo Linux - Wireless Networking 2 04-11-2009 01:38 PM
I cannot connect to WEP-protected wireless network niklasfischer Linux - Wireless Networking 1 12-11-2006 05:16 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration