Date: Sat, 11 Jan 2025 09:03:05 +0100 From: Jon Clausen <freebsd-questions@ymmv.dk> To: Gian Piero Carrubba <gpiero@rm-rf.it>, questions@freebsd.org Subject: Re: running dhclient on a statically configured interface? Message-ID: <Z4IluYrPLndyfhlY@c02qx0.local> In-Reply-To: <aklbwvjswajcfcawonxee4xom6sgwbemza7lb7m3xeaqzs2km5@2sdc23bor2mv> References: <Z3wZbbtWuJyv7nEm@c02qx0.local> <D6VAUGQWCPQS.3HF5NEUUMFBG@souji-thenria.net> <Z315ixQ_b7r4Z4Db@c02qx0.local> <aklbwvjswajcfcawonxee4xom6sgwbemza7lb7m3xeaqzs2km5@2sdc23bor2mv>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2025-01-07 22:10:48 (+0100), Gian Piero Carrubba wrote: > * [Tue, Jan 07, 2025 at 07:59:23PM +0100] Jon Clausen: > > Some sort of "script hook" or something, dhclient could be configured to > > hand over the information from the dhcp server over to, so that I could > > create my own tooling to handle whatever the server provides. > > Well, that's how dhclient works. Check /sbin/dhclient-script and the script > parameter in dhclient.conf. ...heh :) I had actually seen the script option in dhclient.conf(5) but had not looked at /sbin/dhclient-script - so thanks for pointing it out. There's probably no way around setting up some "lab conditions" before I start butchering dhclient-script, but from my cursory glance at the script it should be quite feasible to do what I want. So now I have to decide what exactly it *is* that I want... Thanks again br /jon -- YMMV
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Z4IluYrPLndyfhlY>