Login  Register

Re: Is there any way to include dynamic info in the DHCP REQUEST?

Posted by Fredrik Persson on Jun 04, 2015; 12:23pm
URL: http://isc-dhcp-users.193.s1.nabble.com/Is-there-any-way-to-include-dynamic-info-in-the-DHCP-REQUEST-tp140p142.html

Perhaps I was not clear in my original question.

Yes, this is a linux system. I know that there is a script (dhclient-script) that is run when the lease is aquired but I want to send things to the dhcp server in the request. And the thing I want to send is read (in ways not related to the question) from the system during boot.

On Thu, Jun 4, 2015 at 2:20 PM, Simon Hobson <[hidden email]> wrote:
Fredrik Persson <[hidden email]> wrote:

> Is there a way to include dynamic information in a "send" to the dhcp server?
>
> Something like this (I know that this does not work, but it gives an idea of what I am looking for):
>
> interface "eth0" {
>     send <some parameter> $SOME_ENV_VAR;
>     request subnet-mask,
>             broadcast-address,
> /* ... */
> }

Is this a Linux/Unix like system ? I know on GNU/Linux systems, the ISC client is typically called by a script, and also calls a script to configure the OS when it gets a lease or the lease expires.
Depending on how dynamic the information needs to be, then you can configure the client to add customer options - and if you configure the scripts correctly, to do something with options returned. You may have issues changing the information - you may have to detect the change, and restart the client for it to take effect.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users