You are not logged in.

#1 2006-08-28 05:16:19

Abecedarian
Member
Registered: 2006-07-30
Posts: 43

Wireless w/ ndiswrapper; fails to get ip from dhcp

I've got a DWL-G510 and I recently used ndiswrapper to install the win2k drivers. It confirms 'driver installed, hardware present', iwlist can scan and pick up my access point, put in the WEP key, and associate the access point successfully (It comes up with the MAC Address of the router). However, then I go the old

ifconfig wlan0 up
dhcpcd wlan0

and it fails to receive an IP; it just sits there for a few minutes, does nothing, and downs the interface in ifconfig. And yes, DHCP is set up, as ethernet connections work fine. The wireless also works in windows, so it's not with that either. Is there any step that I've missed? (Yes, I've read the ndiswrapper installation wiki page)

Offline

#2 2006-08-28 06:55:46

firedance
Member
From: Stockholm, Sweden
Registered: 2005-04-18
Posts: 131

Re: Wireless w/ ndiswrapper; fails to get ip from dhcp

what's the output of iwconfig?

Offline

#3 2006-08-28 15:27:46

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Wireless w/ ndiswrapper; fails to get ip from dhcp

also, post the output of "iwlist wlan0 scan" please

Offline

#4 2006-08-28 22:25:09

Abecedarian
Member
Registered: 2006-07-30
Posts: 43

Re: Wireless w/ ndiswrapper; fails to get ip from dhcp

I boot:

[root@archbox tom]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:D8:A2:A2:C0
          inet addr:10.0.0.38  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1144 (1.1 Kb)  TX bytes:1626 (1.5 Kb)
          Interrupt:16

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:280 (280.0 b)  TX bytes:280 (280.0 b)

I modprobe ndiswrapper and scan the networks:

[root@archbox tom]# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:15:E9:03:F7:10
                    ESSID:"homewlan"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:0/100  Signal level:-44 dBm  Noise level:-256 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0

I associate the access point:

[root@archbox tom]# iwconfig wlan0 key ########## essid homewlan

I check to make sure it's configured fine:

[root@archbox tom]# iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"homewlan"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:15:E9:03:F7:10
          Bit Rate=54 Mb/s   Tx-Power:20 dBm   Sensitivity=-121 dBm
          RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:####-####-##   Security mode:restricted
          Power Management:off
          Link Quality:100/100  Signal level:-44 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

eth0      no wireless extensions.

eth1      no wireless extensions.

sit0      no wireless extensions.

I bring it up:

[root@archbox tom]# ifconfig wlan0 up
[root@archbox tom]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:D8:A2:A2:C0
          inet addr:10.0.0.38  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::211:d8ff:fea2:a2c0/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:363403 (354.8 Kb)  TX bytes:74604 (72.8 Kb)
          Interrupt:16

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:280 (280.0 b)  TX bytes:280 (280.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:15:E9:32:48:E6
          inet6 addr: fe80::215:e9ff:fe32:48e6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60 (60.0 b)  TX bytes:2996 (2.9 Kb)
          Interrupt:19 Memory:d0000000-d0008000

I dhcp it:


[root@archbox tom]# dhcpcd wlan0

ifconfig then returns to its initial state (ie. without wlan0 as active).

Offline

#5 2006-08-28 23:46:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Wireless w/ ndiswrapper; fails to get ip from dhcp

You forgot

iwconfig wlan0 essid homewlan

Offline

#6 2006-08-29 01:11:37

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Wireless w/ ndiswrapper; fails to get ip from dhcp

phrakture wrote:

You forgot

iwconfig wlan0 essid homewlan

No he didn't, look again tongue


I am a gated community.

Offline

#7 2006-08-29 04:07:05

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Wireless w/ ndiswrapper; fails to get ip from dhcp

dont waste your time using ndiswrapper, theres a reasonable chance it's supported by a native driver.

Googlin shows that theres been a few revisions of this, it might be a good idea for you to post the lspci -vv output so we can identify which chipset it uses.

From madwifi's page, it says that it uses atheros, supported with the 'madwifi' driver in the repos. pacman -S madwifi
http://madwifi.org/wiki/Compatibility#DWLG510

Also mentions ralink, which would mean the rt2x00 series, which is constantly improving, and worth giving a shot, it's in unstable 'rt2x00'. If you dont have any luck with that, get the older driver from their site, but beware that some of them do not support as much, or crash on SMP. (rt2500 and rt2600 are fine afaik)

James

Offline

Board footer

Powered by FluxBB