Re: dhclient reusing old leases when it shouldn't

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Tue, 13 Sep 2005 00:16:45 -0700 (PDT)
On Tue, 13 Sep 2005, Daniel O'Connor wrote:

> Hi,
> I have a bfe0 and an ath0 interface and I have
> ifconfig_bfe0="DHCP"
> ifconfig_ath0="WPA DHCP"
>
> in rc.conf. I use ath0 at home and bfe0 at work.
>
> I find that when I come to work I end up getting a lease on bfe0 but shortly
> afterwards I find my resolv.conf is stomped with an old lease from ath0 and
> stuff stops working.
>
> It would be nice if there was some higher level which decided what 
> information to use, but I'd settle for dhclient not touching per-machine 
> stuff (resolv.conf, routing etc) unless there is actually a link active on 
> the given interface :)

I have a script that I use to prioritize which interface to start. If the 
wired interface is up, it starts that, and only that. If their is no link on 
the wired interface, it starts up the wireless. I was looking for a way to 
integrate that into our boot scripts when Brooks and Sam started 
roto-tilling them, so I've put that on hold for now. However I still think 
that some kind of functionality like that would be a good thing.

hth,

Doug

-- 

     This .signature sanitized for your protection
Received on Tue Sep 13 2005 - 05:16:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC