You are not logged in.

#1 2009-07-06 18:52:09

anadyr
Member
Registered: 2005-02-10
Posts: 225

Unclear DHCP timeout

Hi,

I am trying to wirelessly connect to my home network with a laptop (using RT2500). For some reason dhcp times out, even though I can connect with windows. It always worked, but I had to meddle a bit with the configs for another reason.
Here is the output of iwlist ra0 scan. "ulysses" is my network:

ra0       Scan completed :
          Cell 01 - Address: 00:1A:70:9E:3A:70
                    Mode:Managed
                    ESSID:"ulysses"
                    Encryption key:on
                    Channel:1
                    Quality:73/100  Signal level:-53 dBm  Noise level:63 dBm

This is the script that I run for connecting to the network. It is a daemon that is placed in /etc/rc.d folder which I can start at boot by adding it in rc.conf:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
    start)
     stat_busy "Starting Wireless Interface"
ifconfig ra0 up
iwconfig ra0 mode Managed ap 00:1A:70:9E:3A:70 channel 1
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=AES
#wpa_passphrase <ssid> [passphrase]
iwpriv ra0 set WPAPSK=complicatedcode
iwpriv ra0 set TxRate=0
iwconfig ra0 essid ulysses
dhcpcd -d -L --noipv4ll ra0
     stat_done
    ;;
    stop)
     stat_busy "Stopping Wireless Interface"
    /sbin/ifconfig ra0 down
     stat_done
    ;;
esac

But, when I run it, it times out:

Jul  6 20:28:23 ANADYR dhcpcd[3065]: ra0: dhcpcd 4.0.10 starting
Jul  6 20:28:23 ANADYR dhcpcd[3065]: ra0: hardware address = 00:13:d3:6c:f3:78
Jul  6 20:28:23 ANADYR dhcpcd[3065]: ra0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
Jul  6 20:28:23 ANADYR dhcpcd[3065]: ra0: broadcasting for a lease
Jul  6 20:28:23 ANADYR dhcpcd[3065]: ra0: sending DHCP_DISCOVER with xid 0x40c6e5e, next in 4.18 seconds
Jul  6 20:28:28 ANADYR dhcpcd[3065]: ra0: sending DHCP_DISCOVER with xid 0x40c6e5e, next in 8.64 seconds
Jul  6 20:28:36 ANADYR dhcpcd[3065]: ra0: sending DHCP_DISCOVER with xid 0x40c6e5e, next in 16.94 seconds
Jul  6 20:28:53 ANADYR dhcpcd[3065]: ra0: sending DHCP_DISCOVER with xid 0x40c6e5e, next in 32.02 seconds
Jul  6 20:28:53 ANADYR dhcpcd[3065]: ra0: timed out
Jul  6 20:28:53 ANADYR dhcpcd[3065]: ra0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason FAIL

Finally, in Windows it works without a problem: this is a screenshot of the stats:
http://www.arabicliquor.com/images/IP_DHCP.jpg
I use dhcp, but in the router setup I specified which IP address to uise on my MAC address: 192.168.0.107.
Some more info: I have always used this config and it always worked, but now it doesn't work anymore. As far as I know I only changed the wireless channel to use number 1 (in order to connect a WII),
Plus, the laptop has not run a pacman -Syu for about 4 or 5 months. That however does not mean that DHCP should timeout; it has worked properly for the whole time...

Last edited by anadyr (2009-07-06 19:19:13)

Offline

#2 2009-07-06 20:21:06

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Unclear DHCP timeout

Have you tried netcfg2 with a network profile for your wireless card settings? Sometimes it works when other methods fail smile

Good luck!
Scott

Offline

#3 2009-07-07 16:44:37

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: Unclear DHCP timeout

Well, that does not work. When I carefully follow the WIKI (section manual setup), it fails when I start wpa_supplicant:

ioctl [SIOCSIWENCODEEXT]: operation not supported
ioctl [SIOCSIWENCODEEXT]: operation not supported
ioctl [SIOCSIWENCODEEXT]: operation not supported
ioctl [SIOCSIWENCODEEXT]: operation not supported

I have never used wpa_supplicant because of this reason. I always used the older RT2500 driver instead...
Then again: how do I change from the old rt2500 driver to the new rt2x00 drivers? If I do "ifconfig ra0 up", how does the kernel know which driver (the old or the new) to use?

Last edited by anadyr (2009-07-07 16:45:00)

Offline

#4 2009-07-08 02:03:14

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

Re: Unclear DHCP timeout

Uninstall rt2500. The kernel includes the newer drivers. The new driver is called rt2500pci.

It'll probably be named eth1/eth0. Just change your netcfg profile to use this instead. Importantly it does not use the "iwpriv ra0" commands to configure, it uses the standard wireless extensions like most other drivers.

Offline

Board footer

Powered by FluxBB