Subject: Re: DHCP question
To: Courtney R. Spencer <cspencer@mindspring.com>
From: Dan McMahill <dmcmahill@NetBSD.org>
List: port-sparc
Date: 08/03/2005 13:40:48
Courtney R. Spencer wrote:
> On Wed Aug 03, 2005 at 03:18:08PM +0100, Julian Coleman wrote:
>
>>>There is something to configure to ask dhclient to
>>>update also the gateway ?
>>
>>Looking at the manual page for dhclient.conf, maybe something like:
>>
>> interface "le0" {
>> request routers;
>> }
>>
>>would work.
>
>
>
> Would there also be a need to add an enter hook or somesuch so that
> "route delete default" is given?
>
> If the client has a default route from its first request, when it
> enters a new network, the old default route sticks around.
dhclient-script should take care of this. It will delete old routes and
add new ones.
fwiw, I use:
request subnet-mask, broadcast-address, routers,
domain-name-servers;
-Dan