You are not logged in.

#1 2010-03-28 00:42:32

cmtptr
Member
Registered: 2008-09-01
Posts: 135

[solved] netcfg: "DHCP IP lease attempt failed"

Today I tried to connect to the wireless router at my mother's house, and was unable to due to the following error:

[corey@sariss network.d]$ sudo NETCFG_DEBUG=yes netcfg mywlan
DEBUG: Loading profile mywlan
DEBUG: Configuring interface wlan0
:: mywlan up                                                      [BUSY] DEBUG: status reported to profile_up as: 
DEBUG: Loading profile mywlan
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up ifup
DEBUG: wireless_up Configuration generated at /tmp/wpa.wlan0/wpa.conf
DEBUG: wireless_up start_wpa wlan0 /tmp/wpa.wlan0/wpa.conf wext 
DEBUG: wireless_up wpa_check
DEBUG: Loading profile mywlan
DEBUG: Configuring interface wlan0
DEBUG: ethernet_iproute_up ifup
DEBUG: ethernet_up dhcpcd -qL -t 10 wlan0
DEBUG: 
 > DHCP IP lease attempt failed. 
DEBUG: Loading profile mywlan
DEBUG: Configuring interface wlan0
DEBUG: Loading profile mywlan
DEBUG: Configuring interface wlan0
DEBUG: ethernet_down if_down
DEBUG: wireless_down stop_wpa wlan0
DEBUG: profile_up connect failed
                                                                         [FAIL] 
[corey@sariss network.d]$

I can connect fine from Windows Vista, and what baffles me is that the profile configuration file for her router is nearly identical to mine (except for the essids and passphrases, of course):

CONNECTION="wireless"
INTERFACE=wlan0
SECURITY="wpa-configsection"
ESSID="mywlan"
IP="dhcp"
CONFIGSECTION='
        ssid="mywlan"
        #psk="***************"
        psk=*************************************************************
        proto=WPA2
        key_mgmt=WPA-PSK
        #pairwise=CCMP
        #group=CCMP
'

I have successfully connected to her network before, but this is the first time I've tried her network since the recent switch to the wpa-configsection method.  She is using a Linksys WRT54G, while mine is a WRT150N.

Since I don't live there, I unfortunately can't troubleshoot this on demand.  However, I was hoping that from this information I might get some suggestions of likely errors and possible fixes that I can try next time I'm there.

Thanks!

MSI MS-1651 laptop
Arch x86_64
Intel Wireless-N WiFi Link 4965AGN

Last edited by cmtptr (2010-04-03 01:49:50)

Offline

#2 2010-03-29 10:46:11

snakebite
Member
From: Norway
Registered: 2009-05-13
Posts: 42

Re: [solved] netcfg: "DHCP IP lease attempt failed"

I've had problems with dhcpcd insisting on re-leasing the last used IP address, even when connecting to a network with a different subnet (in the exact same situation actually). Try a

sudo rm /var/lib/dhcpcd/dhcpcd-wlan0.lease

and see if that solves it. There might be a better way to get around this problem though.

Offline

#3 2010-04-03 01:51:27

cmtptr
Member
Registered: 2008-09-01
Posts: 135

Re: [solved] netcfg: "DHCP IP lease attempt failed"

snakebite wrote:

I've had problems with dhcpcd insisting on re-leasing the last used IP address, even when connecting to a network with a different subnet (in the exact same situation actually). Try a

sudo rm /var/lib/dhcpcd/dhcpcd-wlan0.lease

and see if that solves it. There might be a better way to get around this problem though.

Was there today and tried this, and it worked perfectly.  Thanks very much!  What a strange bug, though?

Offline

#4 2011-05-06 13:06:07

ChrisKempson
Member
Registered: 2011-04-30
Posts: 4

Re: [solved] netcfg: "DHCP IP lease attempt failed"

+1 Was using wifi-select frontend and deleting the file fixed it, thanks!

Offline

Board footer

Powered by FluxBB