LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-12-2007, 10:11 PM   #1
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Rep: Reputation: 41
Cannot get DHCP address - "No DHCPOFFERS received."


I'm running Kubuntu Gutsy Gibbon on a Dell laptop with a Linksys WPC54G v5 PCMCIA card (Marvell chipset). I actually got wireless networking going with a V1 version of this card (Broadcomm chipset), but I needed to change the card to v5 for reasons not relevant here. My router uses WPA-PSK security, and it works just fine for a wired connection to the very same laptop. It also works just fine for a wireless connection under Windows XP.

I can get a connection validated but I can't get the router to send an IP address. According to KWifiManager I have a strong connection, the SSID has been correctly identified, and an access point MAC address is available. The one thing that's not available is the local IP. I'm running wpa_supplicant, and ps -A shows that it is actually running.

I have another laptop running on the same network, also using Kubuntu Gutsy Gibbon, that works just fine. It has a built-in wireless chip. And at one point I actually got the v5 card to work correctly, but after a reboot I could never get it to work again!

Here's the contents of /etc/network/interfaces:

Code:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0


iface eth1 inet dhcp
wireless-essid Deerfield

auto eth1

iface eth0 inet dhcp

iface wlan0 inet dhcp

auto eth0

auto wlan0

iface wlan1 inet dhcp
pre-up wpa_supplicant -Bw -Dwext -iwlan1 -c /etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
# wireless-essid Deerfield

auto wlan1
Here's the result of ifconfig and iwconfig:

Code:
root@Polyporus:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:43:47:AD:33
          inet addr:192.168.0.114  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3429 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1777 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1988024 (1.8 MB)  TX bytes:297702 (290.7 KB)
          Interrupt:21 Base address:0x1800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:55 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4326 (4.2 KB)  TX bytes:4326 (4.2 KB)

wlan1     Link encap:Ethernet  HWaddr 00:18:F8:58:F7:8E
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1209 (1.1 KB)  TX bytes:24791 (24.2 KB)
          Interrupt:16 Memory:34010000-34020000

wlan1:ava Link encap:Ethernet  HWaddr 00:18:F8:58:F7:8E
          inet addr:169.254.9.179  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Memory:34010000-34020000

root@Polyporus:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan1     IEEE 802.11b  ESSID:"Deerfield"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:13:46:A2:4F:30
          Bit Rate=36 Mb/s   Sensitivity=-200 dBm
          RTS thr=2346 B   Fragment thr=2346 B
          Encryption key:xxxx   Security mode:restricted
          Power Management:off
          Link Quality:51/100  Signal level:-63 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Here's the relevant part of dmesg, showing the activation of ndiswrapper:

Code:
 20.860000] ndiswrapper version 1.45 loaded (smp=yes)
[   21.768000] intel8x0_measure_ac97_clock: measured 55397 usecs
[   21.768000] intel8x0: clocking to 48000
[   21.936000] ndiswrapper: driver mrv8000c (Marvell,09/17/2004,3.1.0.19) loaded
[   21.940000] PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
[   21.940000] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17 (level, low) -> IRQ 16
[   21.940000] PCI: Setting latency timer of device 0000:02:00.0 to 64
[   21.940000] ndiswrapper: using IRQ 16
[   22.204000] eth1: ethernet device 00:18:f8:58:f7:8e using NDIS driver:
            mrv8000c, version: 0x3000027, NDIS version: 0x500, vendor: '', 11AB:1FAA.5.conf
[   22.204000] ndiswrapper (set_encr_mode:673): setting encryption mode to 6 failed (C00000BB)
[   22.204000] eth1: encryption modes supported: WEP; TKIP with WPA
[   22.204000] usbcore: registered new interface driver ndiswrapper
[   22.208000] ndiswrapper: changing interface name from 'eth1' to 'wlan1'
And here's what happens if I call ifdown and then ifup:

Code:
root@Polyporus:~# ifdown wlan1
There is already a pid file /var/run/dhclient.wlan1.pid with pid 5546
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan1/00:18:f8:58:f7:8e
Sending on   LPF/wlan1/00:18:f8:58:f7:8e
Sending on   Socket/fallback
DHCPRELEASE on wlan1 to 192.168.0.1 port 67
root@Polyporus:~# ifup wlan1
There is already a pid file /var/run/dhclient.wlan1.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan1/00:18:f8:58:f7:8e
Sending on   LPF/wlan1/00:18:f8:58:f7:8e
Sending on   Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 16
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
 * Starting portmap daemon...
 * Already running.
   ...done.
 * Starting NFS common utilities
   ...done.
One other thing: I can get the card to work with a fixed IP address, but that's not a satisfactory solution for several reasons.

So how can I get DHCPDISCOVER to work?

Last edited by pwabrahams; 07-05-2008 at 08:20 PM. Reason: Add more information
 
Old 12-13-2007, 07:35 PM   #2
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
Intermittency

After fiddling around with things that made no apparent difference, I got the card to work after bootup -- twice. Then, on the third bootup, it didn't.

So I tried something else: resetting the router. That seemed to make it work again, but there's no way to know what the future will bring.
 
Old 05-11-2008, 07:16 PM   #3
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
The problem is back

Alas, after upgrading to Kubuntu Hardy Heron the problem is back, and this time resetting the router (and the cable modem too) helps not at all.
 
Old 06-10-2008, 10:04 PM   #4
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
Can someone interpret this output from wpa_supplicant?

I still have the problem with being unable to connect with my wireless network from Linux because I can't get a response from DHCP. It happens on two different Dell laptops, both of which have Linksys PCMCIA plug-in network cards. I even tried replacing the router, but that didn't help either. So I tried stopping wpa_supplicant and starting it again in debug mode. I suspect the output will reveal just what the cause of the problems is, but I don't know how to interpret it. Here it is, with repetitive parts deleted:

Code:
Initializing interface 'wlan1' conf '/etc/wpa_supplicant.conf'
 driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' ->
 '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Priority group 0
   id=0 ssid='Deerfield'
Initializing interface (2) 'wlan1'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0x5
  capabilities: key_mgmt 0x5 enc 0x7
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:18:f8:58:f7:8e
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface wlan1
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Added BSSID 00:00:00:00:00:00 into blacklist
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
BSSID 00:00:00:00:00:00 blacklist count incremented to 2
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=9):
     44 65 65 72 66 69 65 6c 64                        Deerfield       
Trying to get current scan results first without requesting a new scan
 to speed up initial association
Received 258 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 08:10:74:24:1f:10 ssid='Deerfield' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP 08:10:74:24:1f:10 ssid='Deerfield'
Try to find non-WPA AP
Trying to associate with 08:10:74:24:1f:10 (SSID='Deerfield' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01
 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00
  50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=17
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c07 len=59
AssocReq IE wireless event - hexdump(len=51): 00 09 44 65 65 72 66 69 65 6c
 64 01 08 82 84 8b 96 0c 18 30 48 32 04 12 24 60 6c dd 16 00 50 f2 01 01 00 00 50 f2 02
 01 00 00 50 f2 02 01 00 00 50 f2 02
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c08 len=161
AssocResp IE wireless event - hexdump(len=153): 01 04 82 84 8b 96 32 08 0c
  12 18 24 30 48 60 6c 64 01 04 82 84 8b 96 03 01 06 dd 16 (lots of 00 codes)
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 08:10:74:24:1f:10
Association info event
req_ies - hexdump(len=51): 00 09 44 65 65 72 66 69 65 6c 64 01 08 82 84 8b 96 0c
 18 30 48 32 04 12 24 60 6c dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2
 02 01 00 00 50 f2 02
resp_ies - hexdump(len=153): 01 04 82 84 8b 96 32 08 0c 12 18 24 30 48 60 6c 64
 01 04 82 84 8b 96 03 01 06 dd 16 (lots of 00s)
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02
 01 00 00 50 f2 02 01 00 00 50 f2 02
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=08:10:74:24:1f:10
No keys have been configured - skip key clearing
Associated with 08:10:74:24:1f:10
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
RX EAPOL from 08:10:74:24:1f:10
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 08 fb
  key_nonce - hexdump(len=32): 7a 17 52 fc f5 3f 34 61 4a 6e ce cb cd 68 e9
 da 40 b1 61 fe 95 e5 4d b3 70 cb e0 70 6e 29 12 5c
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 20 6d 61 78 2d 61 67 65
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 08:10:74:24:1f:10 (ver=1)
WPA: Renewed SNonce - hexdump(len=32): 03 50 ff e8 e1 c9 ce 6b c8 3a b5 7e
 b3 6f 34 36 98 2b 88 5e d7 fb 98 2a b4 aa 42 cc b4 0c b1 b3
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2
 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 08:10:74:24:1f:10
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 08 fc
  key_nonce - hexdump(len=32): 7a 17 52 fc f5 3f 34 61 4a 6e ce cb cd 68 e9
 da 40 b1 61 fe 95 e5 4d b3 70 cb e0 70 6e 29 12 5c
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 2c 0e 53 fb 18 5b 98 0d c3 91 c1 c1 a1 a6 65 fe
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 08:10:74:24:1f:10 (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00
 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 08:10:74:24:1f:10
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 08 fd
  key_nonce - hexdump(len=32): 7a 17 52 fc f5 3f 34 61 4a 6e ce cb cd 68 e9
 da 40 b1 61 fe 95 e5 4d b3 70 cb e0 70 6e 29 12 5c
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): cd 7e b8 51 6b a1 aa f4 77 cd b8 63 f2 90 0b 0e
State: GROUP_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 08:10:74:24:1f:10 (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00
  00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 08:10:74:24:1f:10
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 08 fe
  key_nonce - hexdump(len=32): 7a 17 52 fc f5 3f 34 61 4a 6e ce cb cd 68 e9
 da 40 b1 61 fe 95 e5 4d b3 70 cb e0 70 6e 29 12 5c
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 0c 0b 6b 42 60 78 f6 69 1f 8b 10 e7 ed 8d 74 56
State: GROUP_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 08:10:74:24:1f:10 (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01
 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c07 len=59
AssocReq IE wireless event - hexdump(len=51): 00 09 44 65 65 72 66 69
 65 6c 64 01 08 82 84 8b 96 0c 18 30 48 32 04 12 24 60 6c dd 16 00 50
 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c08 len=161
AssocResp IE wireless event - hexdump(len=153): 01 04 82 84 8b 96 32 08
 0c 12 18 24 30 48 60 6c 64 01 04 82 84 8b 96 03 01 06 dd 16 (lots of 00s)
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 08:10:74:24:1f:10
Association info event
req_ies - hexdump(len=51): 00 09 44 65 65 72 66 69 65 6c 64 01 08 82 84
 8b 96 0c 18 30 48 32 04 12 24 60 6c dd 16 00 50 f2 01 01 00 00 50 f2 02
 01 00 00 50 f2 02 01 00 00 50 f2 02
resp_ies - hexdump(len=153): 01 04 82 84 8b 96 32 08 0c 12 18 24 30 48 60
 6c 64 01 04 82 84 8b 96 03 01 06 dd 16 (lots of 00s)
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50
 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
State: GROUP_HANDSHAKE -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated with 08:10:74:24:1f:10
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
Help with this persistent problem would be much appreciated.

Last edited by pwabrahams; 07-05-2008 at 08:36 PM. Reason: Wrap lines of output to make posts readable (second try)!
 
Old 07-04-2008, 01:35 PM   #5
kptkill
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Rep: Reputation: 0
same issue

I think I have the same issue as you. I cannot get a DHCP ip address on my IBM thinkpad x60 unless I reboot my router.
Once I reboot, things work fine. My XP laptop has no issues connecting to the router, and the problem only started
happening after I upgraded to 8.04 (Kubuntu). I am not near my kubuntu laptop, so I will try to go over my logs later on.
My wireless card is an atheros something, and my router is an SMC something.
 
Old 07-04-2008, 07:37 PM   #6
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
Reboot doesn't help now

It used to be that rebooting the router solved the problem, but no longer. In fact, I even tried replacing the router, and that made no difference either (but it cost me $30 or so).

It does seem odd (and probably revealing) that the behavior should be affected by the state of the router, given that the router can respond perfectly well to DHCP requests from Windows.

The secret probably lies in that long output I posted, but I have no idea how to interpret it.
 
Old 07-04-2008, 10:18 PM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
It looks like your card associated with your AP just fine.

I see eth0 is also receiving an IP on the 192.168.0/24 network. Where is this DHCP server?

And is this DHCP server different than the one used/provided by by your AP ?
 
Old 07-05-2008, 06:01 PM   #8
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
I sometimes have a cable connection also

I had noticed that the card could associate with the access point, though it would drop that status after a while. But that didn't get me the DHCP-assigned address.

Sometimes when I can't get the wireless to work, I hook up the Ethernet cable, which is much less convenient. That accounts for the eth0 connection. If the wireless worked, I wouldn't be bothering with the cable.
 
Old 07-05-2008, 06:29 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Not obtaining a DHCP lease is the symptom, the problem being association issues with the access point.

It is DHCP that gets the focus, because there error messages tend to focus on failure to obtain an IP.
 
Old 07-05-2008, 08:42 PM   #10
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
Association seems to exist but doesn't yield an IP address

Quote:
Originally Posted by Mr. C. View Post
Not obtaining a DHCP lease is the symptom, the problem being association issues with the access point.
Any suggestions as to how I can track that down? As I noted earlier, I do get an association, at least some of the time, but it never yields an IP address.

Quote:
It is DHCP that gets the focus, because the error messages tend to focus on failure to obtain an IP.
That makes a lot of sense to me.
 
Old 07-05-2008, 08:50 PM   #11
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If you believe the association is reliable, configure your system with static IP information, and see how reliable the connection remains.

I've seen DHCP bugs in certain routers, where firmware updates resolved the problems. I don't know that is the case here.
 
Old 07-05-2008, 11:29 PM   #12
kptkill
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Rep: Reputation: 0
I've attached a copy of my logs (from ksystemlog). Worksheet 1 shows a successfull DHCP lease after rebooting the router, Worksheet 2 shows a unsuccessful attempt. XLS of log output
 
Old 07-06-2008, 12:33 AM   #13
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Sorry, I won't open Office files from unknown origins. Just put your data into a text file. No reason to use Excel.
 
Old 07-06-2008, 01:28 AM   #14
kptkill
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Rep: Reputation: 0
was an open document saved as an xls, but here is a ods

ods of logs

Last edited by kptkill; 07-06-2008 at 01:32 AM.
 
Old 07-06-2008, 03:50 AM   #15
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
kptkill,

I don't see any oddities in the diagnostics from NetworkManager.

I presume AccessPoint1 is your AP.

The DHCPDISCOVER messages are being sent; whether they are being received but ignored on the AP, or not received at all can't be known from the output. Does your SMC have any logging? Can you see if there are any errors, events, or anything that indicates what is happening on the AP ?

From NetworkManager, try disabling any other Ethernet devices, and the wireless. Wait a moment, and then reenable the wireless.

Last edited by Mr. C.; 07-06-2008 at 03:54 AM.
 
  


Reply

Tags
dhcp, dhcpoffers, linksys, wireless



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
dhcpd error "Can't bind to dhcp address" msjenkins Linux - Networking 4 10-06-2010 05:16 PM
saitek usb keyboard "input irq status -32 received" boffman Linux - Hardware 3 12-30-2007 08:46 PM
Beginner on Debian with "no DHCPOFFERS recieved" maxmil Linux - Wireless Networking 11 02-21-2006 10:06 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:14 AM.

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
Open Source Consulting | Domain Registration