You are not logged in.

#1 2012-02-25 13:06:56

Triver
Member
Registered: 2009-03-29
Posts: 71

[SOLVED] 'DHCP IP lease attempt failed' after update

Hi so after I did a recent update with 'pacman -Syu' which included dhcpcd (5.2.2-1) my wireless connection refused to work (at least I believe its because of dhcpcd).

I am using netcfg to connect to my router, here's my config file for the connection:
CONNECTION='wireless'
INTERFACE='wlan0'
SECURITY='wep'
ESSID='mynetwork'
KEY='...'
IP='dhcp'

so when I try to connect to the network with 'netcfg mynetwork' he takes some time and then fails with the error "DHCP IP lease attempt failed".
I did some searching already but so far I couldn't really find any solution for this problem so I hope you can help me with this wink

Last edited by Triver (2012-02-27 17:07:57)

Offline

#2 2012-02-25 13:21:50

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

I have had this before sometimes too but then after running netcfg mynetwork again it would work. Now it doesn't and keeps failing - but another 'frontend' (wifi-select) does work, and so does the manual approach using wpa_supplicant and dhcpcd.

Last edited by Unia (2012-02-25 13:22:32)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#3 2012-02-25 23:42:20

Triver
Member
Registered: 2009-03-29
Posts: 71

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

Sorry but could you be more specific?

but another 'frontend' (wifi-select) does work

I dont have it installed and I need a working connection to do so

and so does the manual approach using wpa_supplicant and dhcpcd

could you explain in more detail what you mean with that?

Offline

#4 2012-02-26 00:37:38

Avant-texte
Member
Registered: 2012-02-13
Posts: 136

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

Triver, what hardware & corresponding drivers are you using? `lspci` shows this.
And just for completeness, are you on kernel version 3.2.6-2, 3.2.7-1, or annother? `uname` can give you this.

Triver wrote:

I dont have it installed and I need a working connection to do so

You can download the tarball with another machine and then move the file onto your problem machine after or do the same with a live OS on your problem machine, saving the file to your local harddrive. Pacman can intsall from that.

Triver wrote:

and so does the manual approach using wpa_supplicant and dhcpcd

could you explain in more detail what you mean with that?

After adding an entry for your network to /etc/wpa_supplicant.conf and commenting/removing any example entries:

#ip link set <interface-name> up
#wpa_supplicant -Dwext -i <interface-name> -c/etc/wpa_supplicant.conf -B
#dhcpcd <interface-name>

If an upgrade caused your problems, have you tried downgrading the kernel, dhcpcd, and/or anything else that might be the source of the problems?

Offline

#5 2012-02-26 11:47:24

Triver
Member
Registered: 2009-03-29
Posts: 71

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

Hardware is
Network controller: Atheros Com. INc. AR9285 Wireless Network Adapter (PCI-Express) (rev01)
Ethernet cotnroller (if thats important to know): Marvell Tech. Group 88E8040 PCI-E Fast Ethernet Controller
(edit: kernel driver in use for Network Controller: ath9k)
And I also installed the 'wireless-tools' package.

Btw I went again through the pacman.log and found out that the list was sorted bottom up so I looked at the wrong place...

Here is the last section of the log:

[2012-01-17 18:11] upgraded sdl_ttf (2.0.10-1 -> 2.0.11-1)
[2012-01-30 16:26] Running 'pacman -Syu'
[2012-01-30 16:26] synchronizing package lists
[2012-01-30 16:26] starting full system upgrade
[2012-01-30 16:30] removed module-init-tools (3.16-3)
[2012-01-30 16:30] Generating locales...
[2012-01-30 16:30]   de_AT.UTF-8... done
[2012-01-30 16:30]   de_AT.ISO-8859-1... done
[2012-01-30 16:30]   de_DE.UTF-8... done
[2012-01-30 16:30]   de_DE.ISO-8859-1... done
[2012-01-30 16:30]   en_US.UTF-8... done
[2012-01-30 16:30]   en_US.ISO-8859-1... done
[2012-01-30 16:30] Generation complete.
[2012-01-30 16:30] upgraded glibc (2.15-3 -> 2.15-4)
[2012-01-30 16:30] upgraded alsa-lib (1.0.24.1-1 -> 1.0.25-1)
[2012-01-30 16:30] installed flac (1.2.1-3)
[2012-01-30 16:30] installed libsndfile (1.0.25-1)
[2012-01-30 16:30] installed libsamplerate (0.1.8-1)
[2012-01-30 16:30] upgraded alsa-utils (1.0.24.2-3 -> 1.0.25-1)
[2012-01-30 16:30] upgraded perl (5.14.2-6 -> 5.14.2-7)
[2012-01-30 16:30] upgraded openssl (1.0.0.f-1 -> 1.0.0.g-1)
[2012-01-30 16:30] upgraded curl (7.23.1-2 -> 7.24.0-1)
[2012-01-30 16:30] upgraded e2fsprogs (1.41.14-2 -> 1.42-1)
[2012-01-30 16:30] upgraded gcc-libs (4.6.2-5 -> 4.6.2-6)
[2012-01-30 16:30] upgraded gcc (4.6.2-5 -> 4.6.2-6)
[2012-01-30 16:30] upgraded glew (1.7.0-1 -> 1.7.0-2)
[2012-01-30 16:30] upgraded gmp (5.0.2-3 -> 5.0.3-1)
[2012-01-30 16:30] upgraded gnutls (3.0.11-1 -> 3.0.12-1)
[2012-01-30 16:30] upgraded gtk-update-icon-cache (2.24.8-2 -> 2.24.9-2)
[2012-01-30 16:30] upgraded gtk2 (2.24.8-2 -> 2.24.9-2)
[2012-01-30 16:30] installed kmod (4-1)
[2012-01-30 16:30] upgraded udev (175-1 -> 179-1)
[2012-01-30 16:30] upgraded iproute2 (3.2.0-1 -> 3.2.0-2)
[2012-01-30 16:30] warning: /etc/rc.conf installed as /etc/rc.conf.pacnew
[2012-01-30 16:30] upgraded initscripts (2012.01.2-1 -> 2012.01.3-1)
[2012-01-30 16:30] upgraded libarchive (3.0.3-2 -> 3.0.3-3)
[2012-01-30 16:30] upgraded mkinitcpio (0.8.0-3 -> 0.8.2-1)
[2012-01-30 16:31] >>> Updating module dependencies. Please wait ...
[2012-01-30 16:31] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2012-01-30 16:31] ==> Building image from preset: 'default'
[2012-01-30 16:31]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2012-01-30 16:31] ==> Starting build: 3.2.2-1-ARCH
[2012-01-30 16:31]   -> Parsing hook: [base]
[2012-01-30 16:31]   -> Parsing hook: [udev]
[2012-01-30 16:31]   -> Parsing hook: [autodetect]
[2012-01-30 16:31]   -> Parsing hook: [pata]
[2012-01-30 16:31]   -> Parsing hook: [scsi]
[2012-01-30 16:31]   -> Parsing hook: [sata]
[2012-01-30 16:31]   -> Parsing hook: [filesystems]
[2012-01-30 16:31]   -> Parsing hook: [usbinput]
[2012-01-30 16:31] ==> Generating module dependencies
[2012-01-30 16:31] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2012-01-30 16:31] ==> Image generation successful
[2012-01-30 16:31] ==> Building image from preset: 'fallback'
[2012-01-30 16:31]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2012-01-30 16:31] ==> Starting build: 3.2.2-1-ARCH
[2012-01-30 16:31]   -> Parsing hook: [base]
[2012-01-30 16:31]   -> Parsing hook: [udev]
[2012-01-30 16:31]   -> Parsing hook: [pata]
[2012-01-30 16:31]   -> Parsing hook: [scsi]
[2012-01-30 16:31]   -> Parsing hook: [sata]
[2012-01-30 16:31]   -> Parsing hook: [filesystems]
[2012-01-30 16:31]   -> Parsing hook: [usbinput]
[2012-01-30 16:31] ==> Generating module dependencies
[2012-01-30 16:31] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2012-01-30 16:31] ==> Image generation successful
[2012-01-30 16:31] upgraded linux (3.1.9-2 -> 3.2.2-1)
[2012-01-30 16:31] upgraded mdadm (3.2.2-4 -> 3.2.3-1)
[2012-01-30 16:31] upgraded pixman (0.24.0-1 -> 0.24.2-1)
[2012-01-30 16:31] upgraded poppler (0.18.2-1 -> 0.18.3-1)
[2012-01-30 16:31] upgraded poppler-glib (0.18.2-1 -> 0.18.3-1)
[2012-01-30 16:31] upgraded sdl (1.2.14-10 -> 1.2.15-1)
[2012-01-30 16:31] upgraded sdl_image (1.2.11-1 -> 1.2.12-1)
[2012-01-30 16:31] upgraded sqlite3 (3.7.9-1 -> 3.7.10-1)
[2012-01-30 16:31] upgraded syslog-ng (3.3.3-1 -> 3.3.4-1)
[2012-01-30 16:31] upgraded unrar (4.1.3-1 -> 4.1.4-1)
[2012-01-30 16:31] upgraded wireless_tools (29-5 -> 29-6)
[2012-01-30 16:31] upgraded xkeyboard-config (2.4.1-2 -> 2.5-1)
[2012-01-30 16:31] upgraded xorg-server-common (1.11.3-1 -> 1.11.4-1)
[2012-01-30 16:31] upgraded xorg-server (1.11.3-1 -> 1.11.4-1)
[2012-01-30 16:31] upgraded xterm (276-1 -> 278-1)
[2012-01-30 16:32] Running 'pacman -S xmoto'
[2012-01-30 16:34] installed ode (0.11.1-2)
[2012-01-30 16:34] installed libxdg-basedir (1.1.1-1)
[2012-01-30 16:34] installed libsigc++ (2.2.10-1)
[2012-01-30 16:34] installed glibmm (2.30.1-1)
[2012-01-30 16:34] installed libxml++ (2.34.2-1)
[2012-01-30 16:34] Warning in file "/usr/share/applications/xarchiver.desktop": usage of MIME type "multipart/x-zip" is discouraged ("multipart" is a media type that probably does not make sense in this context)
[2012-01-30 16:34] installed xmoto (0.5.8-1)
[2012-02-05 20:06] Running 'pacman -Syu'
[2012-02-05 20:06] synchronizing package lists
[2012-02-05 20:08] Running 'pacman -Syu'
[2012-02-05 20:08] synchronizing package lists
[2012-02-05 20:09] Running 'pacman -Syu'
[2012-02-05 20:09] synchronizing package lists

as you can see I am on Kernel version 3.2.2-1 and couldn't update later (last lines). Also dhcpcd is not listed so that might have been a wrong assumption. However wireless-tools got upgraded so that might also be a cause of the problem? (that or the kernel)
I didn't try downgrading yet because I never did it before and I am unsure what to downgrade.

And I tried to add my network to wpa_supplicant.conf but somehow failed to enter the correct configuration (I am using a WEP 128-bit key to connect the router)

network={
ssid="mynetwork"
key_mgmt=NONE
wep_key0="128bit phrase"
wep_tx_keyidx=0
priority=5
}

so after trying your suggested command (I guess there has to be a space after '-c'?) he fails with the message "Too long WEP key0 ..." and "failed to parse wep_key0 ..."
and dhcpcd wlan0 failed with the message "timed out"

Last edited by Triver (2012-02-26 12:05:48)

Offline

#6 2012-02-26 16:28:58

Avant-texte
Member
Registered: 2012-02-13
Posts: 136

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

Triver wrote:

kernel driver in use for Network Controller: ath9k

[2012-01-30 16:31] upgraded linux (3.1.9-2 -> 3.2.2-1)

This might be relevant:
https://bugs.archlinux.org/task/28193

There have been many problems for ath9k users since upgrading to kernel 3.2.6 and migrating to kmod. A few solutions have been posted on Arch BBS. It's a longshot, but maybe they'll help you.

Triver wrote:

I tried to add my network to wpa_supplicant.conf but somehow failed

https://wiki.archlinux.org/index.php/WPA_supplicant

Triver wrote:

I guess there has to be a space after '-c'?

Actually, the spacing should work as is.

Triver wrote:

dhcpcd wlan0 failed with the message "timed out"

If wpa_supplicant fails, dhcp won't have a chance to work.

Last edited by Avant-texte (2012-02-26 16:34:52)

Offline

#7 2012-02-27 16:33:27

Triver
Member
Registered: 2009-03-29
Posts: 71

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

Wow many thanks for the link, I would have never found it big_smile

This made it work again:

Ok what Eskil said is almost correct. I can successfully connect to my ap with
1) modprobe -r ath9k
2) modprobe ath9k nohwcrypt=1 (Eskil used nohwencrypt=1")

for a temporary workaround just add this line to your /etc/modprobe.d/modprobe.conf
options ath9k nohwcrypt=1

however I strongly hope that this will be fixed (if it's not already) in future updates since it worked without that option before.
Btw if someone knows what it does, I would be interested to know wink

I did a quick search but could only find recommendations for ath5k drivers to use this option...

Last edited by Triver (2012-02-27 16:36:20)

Offline

#8 2012-02-27 16:47:12

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

Why are you using WEP? Anyway, the issue is fixed in 3.2.7

Offline

#9 2012-02-27 17:07:21

Triver
Member
Registered: 2009-03-29
Posts: 71

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

You're right, after a system update and a reboot it works out of the box again.

I'm using WEP because I'm in a region where it doesnt really matter how good your encryption method is as long as you have one. Sure I could use WPA(2) but I have had rather bad experience with that in the recent past under linux so I'll stay with WEP for now.

Offline

#10 2012-11-26 11:17:32

Jeffus
Member
From: Israel
Registered: 2012-06-05
Posts: 15

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

I solved the netcfg intermittent error
DHCP IP lease attempt failed
by
updating the netcfg profile with
DHCP_OPTIONS="--noarp"

Arp must have been causing problems on my network.


Learning Arch-ery...

Offline

#11 2013-06-13 12:22:22

HMW
Member
Registered: 2010-11-21
Posts: 12

Re: [SOLVED] 'DHCP IP lease attempt failed' after update

I know, this might be considered necro bumping, if so I apologize in advance.

I just wanted to confirm that the solution above:

Jeffus wrote:

DHCP_OPTIONS="--noarp"

Worked for me too. I am using Intels 3945ABG in case that might be useful to someone.

Offline

Board footer

Powered by FluxBB