You are not logged in.

#1 2009-06-24 03:34:19

taher4422
Member
Registered: 2009-06-24
Posts: 1

DHCPCD timeout problem

I have just installed Archlinux, and I am loving it. The only problem is that I can't get my wireless to work properly. I'm thinking it's a driver problem, or that I'm just a n00b at this. I'm using a linksys wusb54gs v2 network adapter with the (i think) p54usb driver loaded. netcfg won't work, either.

my attempted input:

 
#iwconfig wlan essid TRACK1 key s:(mykey)
#dhcpcd wlan0
wlan0:dhcpcd 4.0.10 starting 
wlan0: broadcasting for a lease
wlan0:  timed out
#netcfg mynetwork
mynetwork up                                  [busy] 
          -DHCP IP lease attempt failed  [FAIL]

/etc/rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="local"
USEDIRECTISA="no"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)

netcfg profile:


CONNECTION="wireless"
DESCRIPTION="A simple WEP encrypted wireless connection"
INTERFACE=wlan0
SCAN="no"
SECURITY="wep"
ESSID="TRACK1"
KEY="s:hello"
IP="dhcp"
DHCP_TIMOUT="3000"
DHCLIENT="no"
QUIRKS="prescan wpaessid"

I would like some help on this, please.
Thanks in advance smile

Offline

#2 2009-07-08 16:17:56

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: DHCPCD timeout problem

I know this thread is old, but for everyone having the same issue using dhclient instead of dhcpcd may work

Offline

#3 2009-07-08 19:45:17

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: DHCPCD timeout problem

I don't think this thread is that old. As a suggestions, I know that I've had a lot of timed out dhcpcd times, and mostly it's because of a botched configuration. Make sure your key is correct, you're using the right security protocol, the name for the connection is correct, and that the connection is up. All of these will just lead to a "timed out" as opposed to more explanatory messages.

Offline

#4 2009-07-08 20:14:41

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Re: DHCPCD timeout problem

Are you using netcfg?? In your rc.conf, you may want to specify the wlan0 interface  (wlan0="dhcp") and add it to the interfaces line.

You could also check the /etc/network.d/examples/wep(or wpa).example and copy it to the /etc/network.d folder.

# cp /etc/network.d/examples/wep.example /etc/network.d/wlan0

Edit the file to match your network. Make sure to change the timeout value a bit higher. I had the same problem and changed the value to 50.

Once you have your network setup in that file run

# netcfg2 wlan0

Offline

#5 2009-07-12 19:33:27

ash
Member
Registered: 2008-12-17
Posts: 134

Re: DHCPCD timeout problem

use dhcpcd 3.X. the newer versions of dhcpcd suck

Offline

Board footer

Powered by FluxBB