You are not logged in.

#1 2010-08-19 01:01:26

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

[SOLVED] Unable to get dhcp lease when connecting to a different AP

I connect to the AP at home. All is fine. I go to work and try to connect to the AP there. I get an error saying the dhcp lease fails. I 'rm /var/lib/dhcpcd/dhcpcd-wlan0.lease' and try again and it works. Then it starts again when I need to connect back to the other AP.

Basically I need to add 'rm /var/lib/dhcpcd/dhcpcd-wlan0.lease' to run after netcfg disconnects the profile.


Notes: There was a forum post about this months ago, I also created a bug report; someone closed it with a comment of "works for me". I connect with netcfg, using net-profiles, netcfg-menu, and netcfg profilename, depending on the circumstance. It doesn't matter which is used. Both profiles are based on the wireless-wpa template in /etc/network.d/examples and there are no errors in them.

Last edited by Sjoden (2010-08-19 22:23:23)

Offline

#2 2010-08-19 01:58:38

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: [SOLVED] Unable to get dhcp lease when connecting to a different AP

you can add this command by adding the line in your wlan0 profile

PRE_UP="rm /var/lib/dhcpcd/dhcpcd-wlan0.lease"

you can read the wiki entry for more info.

http://wiki.archlinux.org/index.php/Netcfg

Offline

#3 2010-08-19 22:22:41

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: [SOLVED] Unable to get dhcp lease when connecting to a different AP

I've looked at that page dozens of times and never thought of that.

It works perfectly, thanks!

Offline

Board footer

Powered by FluxBB