LinuxQuestions.org
Review your favorite Linux distribution.
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 04-11-2007, 02:59 PM   #1
campanella
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Rep: Reputation: 0
wg111v2 on debian - hopeless?


hi,

i am desperately trying to configure my debian (testing/unstable) pc for wlan access to a linksys wrt54g router via a netgear wg111v2 usb stick.

the router is configured properly, i have already two pcs online.

ndiswrapper is installed and configured, the driver added, no errors there.

the automatic usb detection works fine, no problem there. but i'm miserably failing to configure the wlan interface with iwconfig (wireless tools installed) - i just get "adding encryption key 1 failed". whatever property i try to change (ap, key, etc.), i just doesn't seem to work - everytime i display 'iwconfig wlan0' it looks the same.

for the router is configured for WPA, i installed and configured wpa_supplicant. again, i get an error saying "no keys configured", then i get a timeout.

the router is, however, visible to the pc - if i do a scan, i can "see" it.

please, if anybody has an idea, tell me!
i can provide further configs, logs etc. on request.

thanks a lot in advance!
nora
 
Old 04-11-2007, 03:02 PM   #2
cpd05
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Hey,

Could you post your /etc/network/interfaces file and the output of iwconfig

Chris
 
Old 04-12-2007, 01:37 PM   #3
campanella
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Original Poster
Rep: Reputation: 0
/etc/network/interfaces:

Quote:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 172.16.133.61
netmask 255.255.255.0
network 172.16.133.0
broadcast 172.16.133.255
gateway 172.16.133.1

auto wlan0
iface wlan0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.1
wireless_ap 00:18:F8:FA:05:CE
wireless_mode Managed
wireless_enc s:mypass
wireless_essid linksys
iwconfig

Quote:
wlan0 IEEE 802.11g ESSID:off/any
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate=54 Mb/s Tx-Power:20 dBm Sensitivity=0/3
RTS thr=2432 B Fragment thr=2432 B
Encryption key:off
Power Management: off
Link Quality:100 Signal level:0 Noise level:160
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
cheers,
nora
 
Old 04-12-2007, 03:50 PM   #4
cpd05
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Hey,

It looks like your card is all set up and should work, could turn off the wpa on the router for a bit and see if the card will connect.

Your interfaces file hasn't got any wpa- commands in it, so are you using wpa-supplicant? If you are using it have you read through the readme available here:

http://svn.debian.org/wsvn/pkg-wpa/w...ile&rev=0&sc=0

As you can see from the above the ndiswrapper has to use the wext driver back-end for ndiswrapper versions >= 1.16, so what version of ndiswrapper are you using?

Try and set up the wpa-supplicant, as an example setup for my interfaces file contains:

auto eth0
iface eth0 inet dhcp
pre-up ifconfig eth0 up
pre-up ifconfig eth0 down
pre-up ifconfig eth0 up
pre-up ifconfig eth0 down
wpa-ssid MyESSID
wpa-psk MyPSK
ifconfig eth0 up

I can't remember what all the pre-up stuff is about but as you can see you need the wpa- commands to get wpa-supplicant working, I think...

Once you've set up wpa do:

ifup -v wlan0

You should get a better idea of what going on from that, post it here if possible - might help.

Good Luck

Chris
 
Old 04-24-2007, 08:38 AM   #5
campanella
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,

I spent the last two weeks puzzling around, but without any satisfying results

Quote:
Originally Posted by cpd05
Your interfaces file hasn't got any wpa- commands in it, so are you using wpa-supplicant? If you are using it have you read through the readme available here:
http://svn.debian.org/wsvn/pkg-wpa/w...ile&rev=0&sc=0
Thanks for the URL - I didn't know this specific document but similar ones. Nevertheless, it contained some useful hints.

Quote:
Originally Posted by cpd05
As you can see from the above the ndiswrapper has to use the wext driver back-end for ndiswrapper versions >= 1.16, so what version of ndiswrapper are you using?
I'm using the latest version, I guess, 1.28. Accordingly, I configured my /etc/network/interfaces with wpa-driver wext.


Sadly, WLAN doesn't work yet.

If I do 'iwlist wlan0 scanning' I get all the details about my access point, so it "can be seen".

When executing wpa_supplicant with some basic options, the access point cannot be found and I just receive timeouts.

So, maybe any more hints?

Thanks, Nora
 
Old 04-24-2007, 02:45 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Can you post your wpa_supplicant.conf file and the command you're using to start wpa_supplicant?
 
Old 04-24-2007, 03:01 PM   #7
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
I assume you've tried connecting with all router encryption/security (WEP, WPA, etc) turned off? This is usually a good way to "half-split" the problem. If you can't connect with no security, that problem needs to be solved before worrying about security settings.
 
Old 04-25-2007, 08:20 AM   #8
cpd05
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Whats the output of ifup -vv wlan0
 
  


Reply


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
hopeless... dualboot slackware + windows xp kleer Linux - Newbie 15 12-28-2004 08:48 PM
n00b to linux, not hopeless though amdalltheway Linux - Hardware 8 11-18-2004 06:51 PM
I'm hopeless can some1 Help me SlackN00b Linux - Newbie 5 12-26-2003 07:47 AM
hopeless ipmasq.... please help.... kublador Linux - Networking 4 03-27-2003 08:01 AM
Installed >1024, now hopeless? krgue Linux - Software 2 05-24-2001 08:36 AM

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

All times are GMT -5. The time now is 08:08 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