LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   can't get wireless adapter to obtain DHCP (http://www.linuxquestions.org/questions/showthread.php?t=4175462472)

DebianUser 05-18-2013 08:49 AM

can't get wireless adapter to obtain DHCP
 
I@ve bought a usb wireless adapter for my debian box but for some reason I can't get it to connect to the network using WPA2.

ifconfig

Code:

wlan0    Link encap:Ethernet  HWaddr 80:1f:02:82:ba:96 
          inet6 addr: fe80::821f:2ff:fe82:ba96/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:136 errors:0 dropped:66090 overruns:0 frame:0
          TX packets:136 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20552 (20.0 KiB)  TX bytes:21080 (20.5 KiB)

iwconfig

Code:

wlan0    IEEE 802.11bgn  ESSID:"homewire"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 1C:AF:F7:25:32:EC 
          Bit Rate:150 Mb/s  Sensitivity:0/0 
          Retry:off  RTS thr:off  Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****  Security mode:open
          Power Management:off
          Link Quality=95/100  Signal level=65/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

ifup wlan0

Code:

Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan0/*
Sending on  LPF/wlan0/*
Sending on  Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.

/etc/networking/interfaces

Code:

auto wlan0
allow-hotplug wlan0           
iface wlan0 inet dhcp 
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

/etc/wpa_supplicant/wpa_supplicant.conf

Code:

network={
ssid="homewire"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
psk="08dfdlsjfdlk;uoiujka5a7f3cb7997fff070210f20b"
}


business_kid 05-19-2013 03:16 AM

The usual gotcha here is wpa_passphrase. Man wpa_passphrase.

When you have your key, you have to pass it through wpa_passphrase to get another key, which will work.
Code:

bash-4.2$ wpa_passphrase my-essid  01234567890123456789
network={
        ssid="my-essid"
        #psk="01234567890123456789"
        psk=b8f8c9234e68fe991b30db96b4cfc49cabd72451d5869153fed2cae6265a0eb3
}



All times are GMT -5. The time now is 02:31 AM.