Click to See Complete Forum and Search --> : D-Link DWL-520 | Everything looks right but no connection


Loki3
07-29-2003, 08:00 PM
I bought this card off ebay and it was shipped 2000 miles while protected by a sheet of newspaper so I am assuming that the card is probably broken. It's a prism2 chipset card and uses the linux-wlan-ng drivers. I installed the drivers onto my debian system and they load at boot without complaint. I followed the commands set up by the linux-wlan-ng readme and everything was smooth sailing, no error messages or anything but I cannot ping my router or my other computers on the lan. I decided to try to set it up with /etc/network/interfaces instead and here's what that looks like:


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

# The loopback interface
auto lo wlan0
iface lo inet loopback

#Wlan Crap
iface wlan0 inet static
address 192.168.1.104
gateway 192.168.1.1
netmask 255.255.255.0
wireless_ssid diagon
wirless_enc on
wlan_ng_keyfile /etc/wlan/wlan.key
wlan_ng_priv_key128 true
wirless_nick binary-truth
lnxreq_ifstate ifstate=enable
lnxreq_autojoin ssid=diagon authtype=opensystem




My router is obviously at 192.168.1.1 and I'm using WEP 128bit encryption which apparently is almost useless. The key (the part generated by a passphrase right?) is stored in the file /etc/wlan/wlan.key.

Here's my ifconfig output:


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:461 errors:0 dropped:0 overruns:0 frame:0
TX packets:461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34672 (33.8 KiB) TX bytes:34672 (33.8 KiB)

wlan0 Link encap:Ethernet HWaddr 00:05:5D:EE:6E:3E
inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2157 errors:0 dropped:0 overruns:0 frame:0
TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:474499 (463.3 KiB) TX bytes:1620 (1.5 KiB)
Interrupt:5 Memory:e08fd000-e08fe000




Everything looks alright here. Here's the kernel's routing tables too:


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0



As far as I can tell everything is kosher. My guess is that this has something to do with the encryption or the fact that my DHCP isn't set up. There apparently is no resolv.conf in debian and googling didn't help me out there. Any ideas? Your help would be much appreicated.

je_fro
07-29-2003, 08:43 PM
I have /etc/resolv.conf in debian.

Let me think about the rest....

Loki3
07-30-2003, 07:01 PM
Well it now works! I don't really exactly know why though. I commented out everything between wireless_enc on and wireless_nick binary truth in my /etc/network/interfaces. I made a resolv.conf file and and made sure DHCP was configured. I then turned of WEP (it's pretty useless anyways I hear) and typed these commands as recomended by the linux-wlan-ng drivers readme:


modprobe prism2_pci [or prism2_usb/prism2_plx]
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=<your APs SSID> authtype=opensystem
ifconfig wlan0 <yourIP> netmask <yourNetmask> broadcast <yourBroadcast>
route add default gw <yourGateway>


and now it works. Odd. but if it ain't broke don't fix it.