David Paleino <[email protected]> writes:
> On Sun, 30 May 2010 16:09:15 -0700, Russ Allbery wrote:
>> Here you go:
>>
>> Configuring interface wlan0=wlan0 (inet)
>> run-parts --verbose /etc/network/if-pre-up.d
>> run-parts: executing /etc/network/if-pre-up.d/wireless-tools
>> run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
>>
>> dhclient3 -pf /var/run/dhclient.wlan0.pid
>> -lf /var/lib/dhcp3/dhclient.wlan0.leases wlan0
> The only notable difference here is that wicd is passing a -cf, while ifup
> passes a -lf.
> Can you check the contents
> of /var/lib/dhcp3/dhclient.leases, /var/lib/wicd/dhclient.conf
> and /etc/dhcp3/dhclient.conf?
I think you mean /var/lib/dhcp3/dhclient.wlan0.leases. Attached.
/var/lib/wicd/dhclient.conf and /etc/dhcp3/dhclient.conf are byte-for-byte
identical; I attached a copy of that file as well.
Maybe there's something weird going on with requiring the previous lease
file to get a new lease? That makes no sense to me, but then none of this
really makes much sense to me.
> Analyzing the output of run-parts at pre-up, I see that
> /etc/network/if-pre-up.d/wireless-tools executes more-or-less the same
> set of "iwconfig" commands wicd does. "More-or-less" because it sets
> things based on environment variables, and the output of "set | grep
> ^IF" would be nice to have ;) (*hint*)
wanderer:/root# set | grep ^IF
IFS=$' \t\n'
--
Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>
lease {
interface "wlan0";
fixed-address 68.65.160.233;
option subnet-mask 255.255.248.0;
option routers 68.65.160.1;
option dhcp-lease-time 2520;
option dhcp-message-type 5;
option domain-name-servers 171.64.7.99,171.64.7.77,171.64.7.55;
option dhcp-server-identifier 171.64.7.89;
option netbios-name-servers 171.64.7.155,171.64.7.177;
option domain-name "Stanford.EDU";
renew 1 2010/05/31 05:29:04;
rebind 1 2010/05/31 05:49:04;
expire 1 2010/05/31 05:54:19;
}
lease {
interface "wlan0";
fixed-address 68.65.160.233;
option subnet-mask 255.255.248.0;
option routers 68.65.160.1;
option dhcp-lease-time 2520;
option dhcp-message-type 5;
option domain-name-servers 171.64.7.99,171.64.7.77,171.64.7.55;
option dhcp-server-identifier 171.64.7.89;
option netbios-name-servers 171.64.7.155,171.64.7.177;
option domain-name "Stanford.EDU";
renew 1 2010/05/31 05:46:31;
rebind 1 2010/05/31 06:05:49;
expire 1 2010/05/31 06:11:04;
}
lease {
interface "wlan0";
fixed-address 68.65.160.233;
option subnet-mask 255.255.248.0;
option routers 68.65.160.1;
option dhcp-lease-time 2520;
option dhcp-message-type 5;
option domain-name-servers 171.64.7.99,171.64.7.77,171.64.7.55;
option dhcp-server-identifier 171.64.7.89;
option netbios-name-servers 171.64.7.155,171.64.7.177;
option domain-name "Stanford.EDU";
renew 1 2010/05/31 06:04:22;
rebind 1 2010/05/31 06:23:16;
expire 1 2010/05/31 06:28:31;
}
lease {
interface "wlan0";
fixed-address 68.65.160.233;
option subnet-mask 255.255.248.0;
option routers 68.65.160.1;
option dhcp-lease-time 2520;
option dhcp-message-type 5;
option domain-name-servers 171.64.7.99,171.64.7.77,171.64.7.55;
option dhcp-server-identifier 171.64.7.89;
option netbios-name-servers 171.64.7.155,171.64.7.177;
option domain-name "Stanford.EDU";
renew 1 2010/05/31 06:23:50;
rebind 1 2010/05/31 06:41:07;
expire 1 2010/05/31 06:46:22;
}
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
# few changes must be made to this file, if any.
#
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
#send host-name "andare.fugue.com";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
#alias {
# interface "eth0";
# fixed-address 192.5.5.213;
# option subnet-mask 255.255.255.255;
#}
#lease {
# interface "eth0";
# fixed-address 192.33.137.200;
# medium "link0 link1";
# option host-name "andare.swiftmedia.com";
# option subnet-mask 255.255.255.0;
# option broadcast-address 192.33.137.255;
# option routers 192.33.137.250;
# option domain-name-servers 127.0.0.1;
# renew 2 2000/1/12 00:00:01;
# rebind 2 2000/1/12 00:00:01;
# expire 2 2000/1/12 00:00:01;
#}