LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-19-2006, 03:59 AM   #1
Roxxor2
LQ Newbie
 
Registered: Mar 2006
Posts: 23

Rep: Reputation: 15
help me installing wireless d-link card


My computer (network card) detects the network but it does not connect to it. I have typed the correct WEP key.I am running Ubuntu.
Our router is set to:
- Channel 1
- Open System
- Ascii
- 64 bit encryption

sudo dhclient wlan0
Code:
roxxor@laptop:~$ sudo dhclient wlan0
There is already a pid file /var/run/dhclient.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit ....isc.org/products/DHCP

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:80:c8:12:aa:59
Sending on   LPF/wlan0/00:80:c8:12:aa:59
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ndiswrapper -l
Code:
roxxor@laptop:~$ ndiswrapper -l
Installed ndis drivers:
net5211 driver present, hardware present
ifconfig
Code:
roxxor@laptop:~$ ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:7072 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7072 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:540657 (527.9 KiB)  TX bytes:540657 (527.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:80:C8:12:AA:59
          inet6 addr: fe80::280:c8ff:fe12:aa59/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:222 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:66834 (65.2 KiB)  TX bytes:0 (0.0 b)
          Memory:d0100000-d010ffff
iwconfig
Code:
roxxor@laptop:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"OurNetwork"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:00:00:00:00:00
          Bit Rate:108 Mb/s
          Link Quality:61/100  Signal level:-34 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

sit0      no wireless extensions.
/etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
	script grep
	map eth1

#iface ath0 inet dhcp
#wireless-essid OurNetwork
#wireless-key s:XXXXX

#auto ath0



iface wlan0 inet dhcp
wireless yes
wireless-mode managed
wireless-essid OurNetwork
wireless-key s:XXXXX


iface eth0 inet dhcp

auto eth0

I have done everything I know.

Please help me!

Last edited by Roxxor2; 03-19-2006 at 04:02 AM.
 
Old 03-19-2006, 04:13 AM   #2
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
In my experience sometimes an interface needs to associated with an access point before communication can take place.

iwconfig wlan0 ap xx:xx:xx:xx:xx:xx

you did issue these command didn't you?

modprobe ndiswrapper

dhcpcd wlan0 or dhclient wlan0 or pump -i (wlan0)? not sure about this last one

sometimes you need to issue encryption open or restricted

example:

iwconfig wlan0 key open xxxxxxxxxxx

or

iwconfig wlan0 key restricted xxxxxxxxxxxxxx
 
Old 03-19-2006, 04:24 AM   #3
Roxxor2
LQ Newbie
 
Registered: Mar 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Holy shit!!!

I just typed iwconfig wlan0 ap 00:00:00:00:00:00 and then it worked!


How come?
 
Old 03-19-2006, 04:26 AM   #4
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
Try iwconfig again to see if anything changed. Did you literally type all zeros did you put the ap address in.
 
Old 03-19-2006, 04:43 AM   #5
Roxxor2
LQ Newbie
 
Registered: Mar 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by DrEwMoNeY
Try iwconfig again to see if anything changed. Did you literally type all zeros did you put the ap address in.
Yes I did, but now I think it was
iwconfig wlan0 key open <my passwd> that helped me.
 
Old 03-19-2006, 04:49 AM   #6
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
As long as it works, that's all that matters, right?

I've used a couple different cards and routers with ndiswrapper, they all react a little different than the other. Sometimes it's just trial and error.

Needless to say, I've spent a bit of time at the ndiswrapper wiki. Still learning myself, though.
 
  


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
D-Link DI-624 wireless card... Lul2x Linux - Hardware 4 12-22-2005 09:46 PM
D-link wireless card problem ....PLEASE HELP waelaltaqi Linux - Hardware 8 09-25-2005 10:43 PM
How to install wireless d-link card adnanm Linux - Laptop and Netbook 2 05-28-2005 08:56 AM
D-Link Wireless Card Problem doug1124816 Linux - Hardware 3 03-18-2005 03:32 PM
D-link PCMCIA wireless card in Redhat JasonW Linux - Wireless Networking 1 10-10-2002 05:25 AM

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

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