Re: HEADSUP: OpenBSD dhclient incoming

From: Milan Obuch <bsd_at_dino.sk>
Date: Thu, 16 Jun 2005 06:42:40 +0200
On Thursday 16 June 2005 05:19, M. Warner Losh wrote:
> In message: <200506151140.56908.current_at_dino.sk>
>
>             Milan Obuch <current_at_dino.sk> writes:
> : On Wednesday 15 June 2005 08:30, M. Warner Losh wrote:
> : ...
> :
> : > ifconfig fxp0 1.2.3.4/24
> : >
> : > will kill dhclient every time for me.
> :
> : Well, I would consider this a feature, not a bug, and a convenient one.
> : It happens on me from time to time that I have DHCP configured on one
> : interface, then after move to another place I issue 'ifconfig fxp0 ....'
> : and some time after network suddenly stops working due to dhclient
> : running and deleting my manually entered setting.
> : Where there also 'ifconfig fxp0 DHCP' for consistency...
> : I know this could be easily done with some scripting, but I could not
> : resist :)
>
> The problem that I have with it is that if I then unplug and plug the
> cable in (say press-ganging my laptop into service to test static IP
> addresses) causes dhclient to run again.  I'm not sure that's a bug,
> but it is a behavior change from the old dhclient.  It is doing what I
> told it to do, but much more enthusiastically.  I'm not sure what to
> suggest to fix it, however...
>

I am not sure I got your point.

I think unplugging and plugging network cable in should not cause any change 
whether dhclient runs or interface is statically configured, nor should it 
depend on whether interface is configured from boot script or manually.
As an alternative, from user's perspective equal, would be kill dhclient on 
unplugging and starting it again on plugging cable, but this looks to me as 
unnecessary complication.

I did not test this behaviour on my -current yet, though. Maybe I do not know 
all events coming into play here, either.

Milan
Received on Thu Jun 16 2005 - 02:42:54 UTC

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