LinuxQuestions.org
Visit Jeremy's Blog.
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-01-2006, 12:52 PM   #1
littlec
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Rep: Reputation: 0
Wireless card FINALLY configured but can't connect to NET


the progression is at: (cant post url yet)

I've been running ubuntu and just purchased a D-Link DWL-G132 usbcard for wireless internet. I have the drivers and settings using ndiswapper.

iwconfig returns:

wlan0 IEEE 802.11g ESSID:"(essid)"
Mode:Managed Frequency:2.457 GHz Access Point: 00:C0:02:F9:EE0
Bit Rate:54 Mb/s
Encryption keykeyname) Security modepen
Link Quality:0/100 Signal level:-53 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

------------------

When i try to renew the dhcp settings from the router, it gives me no DHCPoffers received.

Any suggestions? I tried /etc/resolv.conf and also disabling ip4 but still no luck.

This is so frustrating. I've been spending over 20 hours reading/configging now and still nothing.

Any help is greatly appreciated

thank you
 
Old 09-01-2006, 01:01 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Link Quality:0/100

That doesn't look right. Double-check the WEP key. Look at the router logs to see if there's any indication that association is taking place (not all routers will show this) or if there are any errors relative to the DHCP server.

Make sure wlan0 is up before trying to get an IP:
ifconfig wlan0 up
dhclient wlan0 (I think that's the correct syntax for Ubuntu)
 
Old 09-01-2006, 01:40 PM   #3
littlec
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
2gnu, thanks for the quick reply.

wlan0 is up, and i even put it down then back up several times just to be safe. here is what the dhclient replies.

Listening on LPF/wlan0/00:11:95:bb:59:a8
Sending on LPF/wlan0/00:11:95:bb:59:a8
Sending on Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
Trying recorded lease 192.168.0.4
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.585/0.585/0.585/0.000 ms
bound: renewal in 48820 seconds.
-----------

the WEP key i entered is correct, but I do not know if the syntax is correct (when i left the network as unsecured I had no problems connecting to the internet). So as I suspected earlier, it's possible that it is something to do with the wep?

sudo iwconfig wlan0 key senter Ascii key here) open

then when i do an iwconfig, it lists the encrypted key in xxxx-xxxx-xxxx-xxxx form (all numerical).

maybe i'll just try it as hexadecimal too. (didnt 'work before but i'l give it atry)/
 
Old 09-01-2006, 01:49 PM   #4
littlec
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
YES!

FINALLY WORKING.

I went into my Router settings and looked more carefully into the WEP settings....

there was a setting for 'keytype' either open or shared or automatic. It was set on auto, i put it on 'open'. And now i am surfing wirelessly

Now i want to try and get wpa working (wpa supplicant), as well as my card to work in the i686 kernel. It creates hard locks in the i686 kernel. I believe i need to blacklist some drivers.

I also no longer used the key as sascii string). Perhaps the key i had was hexidecimal?

I entered the key as:

sudo iwconfig wlan0 key (XyyXyXyXXX) where X is #'s and y = letters.
did a dhclient and it gave me success:

DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPNAK from 192.168.0.1
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.0.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1


-------

perhaps i simply entered hte key wrong?
 
Old 09-01-2006, 01:59 PM   #5
littlec
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
*edit: i am the dork that entered a hexidecimal key as a string
ALL other settings have to be in check as well at the same time for everything to work. It's like a game of combinations.
 
Old 09-01-2006, 04:16 PM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Makes you wonder about those guys who show up a security conference and demonstrate the latest exploit that has them breaking into a secure WLAN in 30 seconds, huh?

 
Old 09-02-2006, 02:04 AM   #7
littlec
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 2Gnu
Makes you wonder about those guys who show up a security conference and demonstrate the latest exploit that has them breaking into a secure WLAN in 30 seconds, huh?

forget a password? nahhh no problem, we'll just exploit it
 
  


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
network card configured, but still can't connect to router! mikeh2 Linux - Wireless Networking 9 11-11-2005 06:34 AM
Wireless card not connecting to Access Point looks configured though embalmedlenin Linux - Wireless Networking 6 08-13-2005 07:23 AM
Wireless Card installed but not configured (DWL-G520) fahad26 Linux - Wireless Networking 1 02-01-2005 03:01 PM
SUSE 9.1 Finally a Wireless Card that Works possingk Linux - Wireless Networking 3 06-19-2004 04:43 PM
Thanks! :) Finally got my router to connect to the net Silver Linux - Networking 0 05-22-2002 10:45 AM

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

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