LinuxQuestions.org
Help answer threads with 0 replies.
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 09-24-2005, 03:29 AM   #1
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
dhcpd wlan0 hangs


Hi folks,

I am a newbie to wireless networking and I would like to seek help. Hopefully I can set up my wireless network successfully.

Here is the situation.
I bought a Linksys WRT54G router and WUSB54G USB reciever. I set up the device and test successfully in windowz (WTF?!). And then I boot into linux, downloaded and compiled ndiswrapper 1.1 (1.3rc1) and wpa_supplicant 0.3.9. Nothing is wrong up till now, i go to modprobe ndiswrapper as root. installed the USB reciever driver for windows using command ndiswrapper -i <path to driver>. ndiswrapper -l show everything is ready. But when I dhcpcd wlan0, it hangs there. nothing is shown until I send Ctrl-C to xterm.

tsun@killa:~$ sudo /sbin/modprobe ndiswrapper

tsun@killa:~$ /usr/sbin/ndiswrapper -l

Installed ndis drivers:

rt2500usb driver present, hardware present


tsun@killa:~$ sudo /sbin/iwlist scanning

lo Interface doesn't support scanning.



eth0 Interface doesn't support scanning.



wlan0 Scan completed :

Cell 01 - Address: 00:E0:98:4E:9A:6E

ESSID:"rebby"

Protocol:IEEE 802.11b

Mode:Managed

Frequency:2.412 GHz (Channel 1)

Quality:0/100 Signal level:-91 dBm Noise level:-256 dBm

Encryption keyff

Bit Rate:1 Mb/s

Bit Rate:2 Mb/s

Bit Rate:5.5 Mb/s

Bit Rate:11 Mb/s

Extra:bcn_int=100

Extra:atim=0

Cell 02 - Address: 00:14:BF:16:87:00

ESSID:"homenet_w"

Protocol:IEEE 802.11b

Mode:Managed

Frequency:2.437 GHz (Channel 6)

Quality:0/100 Signal level:-53 dBm Noise level:-256 dBm

Encryption keyn

Bit Rate:1 Mb/s

Bit Rate:2 Mb/s

Bit Rate:5.5 Mb/s

Bit Rate:11 Mb/s

Bit Rate:18 Mb/s

Bit Rate:24 Mb/s

Bit Rate:36 Mb/s

Bit Rate:54 Mb/s

Bit Rate:6 Mb/s

Bit Rate:9 Mb/s

Bit Rate:12 Mb/s

Bit Rate:48 Mb/s

Extra:bcn_int=100

Extra:atim=0

Extra:wpa_ie=dd180050f20101000050f20401000050f20401000050f2020000

Cell 03 - Address: 00:12:17:C9:3F:C0

ESSID:"LittleMonsters"

Protocol:IEEE 802.11b

Mode:Managed

Frequency:2.437 GHz (Channel 6)

Quality:0/100 Signal level:-93 dBm Noise level:-256 dBm

Encryption keyn

Bit Rate:1 Mb/s

Bit Rate:2 Mb/s

Bit Rate:5.5 Mb/s

Bit Rate:11 Mb/s

Bit Rate:18 Mb/s

Bit Rate:24 Mb/s

Bit Rate:36 Mb/s

Bit Rate:54 Mb/s

Bit Rate:6 Mb/s

Bit Rate:9 Mb/s

Bit Rate:12 Mb/s

Bit Rate:48 Mb/s

Extra:bcn_int=100

Extra:atim=0

Cell 04 - Address: 00:13:10:4A:4E:A5

ESSID:"linksys"

Protocol:IEEE 802.11b

Mode:Managed

Frequency:2.437 GHz (Channel 6)

Quality:0/100 Signal level:-93 dBm Noise level:-256 dBm

Encryption keyff

Bit Rate:1 Mb/s

Bit Rate:2 Mb/s

Bit Rate:5.5 Mb/s

Bit Rate:11 Mb/s

Bit Rate:18 Mb/s

Bit Rate:24 Mb/s

Bit Rate:36 Mb/s

Bit Rate:54 Mb/s

Bit Rate:6 Mb/s

Bit Rate:9 Mb/s

Bit Rate:12 Mb/s

Bit Rate:48 Mb/s

Extra:bcn_int=100

Extra:atim=0




tsun@killa:~$ sudo /sbin/iwconfig wlan0

wlan0 IEEE 802.11g ESSIDff/any Nickname:"killa"

Mode:Auto Frequency:2.412 GHz Access Point: 00:00:00:00:00:00

Bit Rate=11 Mb/s Tx-Power:20 dBm Sensitivity=-121 dBm

RTS thr=2347 B Fragment thr=2346 B

Encryption keyff

Power Managementff

Link Quality:100/100 Signal level:135/154 Noise level:0/154

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0

Tx excessive retries:0 Invalid misc:8553 Missed beacon:0



tsun@killa:~$ sudo /sbin/iwconfig wlan0 essid homenet_w

tsun@killa:~$ sudo /sbin/iwconfig wlan0 mode managed

tsun@killa:~$ sudo /sbin/iwconfig wlan0 key asas

Error for wireless request "Set Encode" (8B2A) :

invalid argument "asas".

tsun@killa:~$ sudo /sbin/iwconfig wlan0 enc asas

Error for wireless request "Set Encode" (8B2A) :

invalid argument "asas".


I tried 2.4.31 stock kernel, 2.6.13.2 and 2.6.12.6 vanilla self-made kernels on Slackware 10.2.
No luck.

Anyone can figure it out?

Thanks.
 
Old 09-24-2005, 07:42 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I see that you're trying to set a WEP key using "iwconfig wlan0 key asas" and that command fails. A WEP key can be entered as a sequence of HEX characters (0123456789abcdef are the only possible choices then) or as a string of ASCII characters (i.e. a normal word). You are trying to set an ascii string "asas" as the WEP key. You will need to change the command a little to
Code:
iwconfig wlan0 key "s:asas"
If the WEP key setting is wrong, your card will not associate with the Access Point, and it will never get an IP address through DHCP.
By the way, you can add a timeout parameter to the dhcpcd command, so that you will get the command prompt back after 10 seconds if no IP address can be obtained:
Code:
dhcpcd -d -t 10 wlan0
Good luck,
Eric
 
Old 09-25-2005, 03:14 AM   #3
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
Hi Eric,

Thanks for your reply, but I am using WPA Personal with AES as the WPA algorithm, so I could not get the wireless card running using WEP.

So how can I get it running using WPA?

Thanks.
 
Old 09-25-2005, 02:38 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Ah yes, WPA... then you should not try "iwconfig wlan0 key ...." since that is for WEP only.

WPA support is possible in Slackware 10.2 when you install wpa_supplicant.
I have an article up on the Madwifi Wiki which shows just how to configure and use WPA. That section of the wiki is not madwifi-specific and should be applicable to your ndiswrapper setup (I used ndiswrapper with WPA successfully on my workstation).

If it won't work at first, try the debugging techniques at the end of that Wiki section. I had to upgrade to the latest beta of wireless-tools to get WPA working with madwifi, you might need that too. See my slackbuild site for a newer wireless-tools package. You'll find a newer (CVS) version of wpa_supplicant too, on that site.

Eric
 
Old 09-27-2005, 09:42 AM   #5
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
I have disabled the encryption function in the router so that I could hopefully connect to my router in linux box, but still no avail.

still cannot get an IP from router either using dhcpcd or ifconfig
wlan0 <ip addr> up.

The receiver functions properly since it can scan the network.

i have used following commands:
iwconfig wlan0 essid homenet_w
iwconfig wlan0 channel 6
iwconfig wlan0 mode managed


Anyone can figure it out?

Last edited by kaon; 09-27-2005 at 09:54 PM.
 
Old 09-30-2005, 03:50 PM   #6
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
As root
Code:
ifconfig wlan0 up
iwconfig wlan0 essid homenet_w
dhcpcd wlan0
All that does is make sure wlan is awake, associate it with the named network and then tell it to get a new dhcp IP. You do not need to set the channel by hand or the mode as the card should follow the AP settings.

Wonder why yours is using wlanx when all my Slack boxes use ethx?

That essid with an underscore might be a mistake....reports are that odd characters make life difficult..maybe just use 'network' or 'homenetw'

Last edited by otchie1; 09-30-2005 at 03:53 PM.
 
Old 10-01-2005, 07:36 AM   #7
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
Finally success. I turned out that it was my configuration error on my wpa_supplicant.

No more than one interface could be set in the MakeFile else you would come to a situation like mine.


Anyone who need a detailed step-by-step on configurating LinkSys WUSB54G + WRT54G on slackware 10.2.
Just drop me an email or whatever to tell me.

 
  


Reply



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
KDE hangs when enabling wlan0 at boot. darn dao Linux - General 1 08-26-2005 09:50 PM
Keyboard hangs after 'iwlist wlan0 scan' aitzim Linux - Wireless Networking 1 05-22-2005 05:10 PM
dhcpd wlan0 does not work AP81 Slackware 2 04-18-2005 05:49 PM
dhcpd not working on wlan0 kennedy01 Linux - Wireless Networking 7 08-11-2004 09:04 AM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

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

All times are GMT -5. The time now is 05:36 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
Open Source Consulting | Domain Registration