<div dir="ltr">Perhaps I was not clear in my original question.<div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 2:20 PM, Simon Hobson <span dir="ltr"><<a href="mailto:dhcp1@thehobsons.co.uk" target="_blank">dhcp1@thehobsons.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Fredrik Persson <<a href="mailto:fredrik.p.persson@gmail.com">fredrik.p.persson@gmail.com</a>> wrote:<br>
<br>
> Is there a way to include dynamic information in a "send" to the dhcp server?<br>
><br>
> Something like this (I know that this does not work, but it gives an idea of what I am looking for):<br>
><br>
> interface "eth0" {<br>
>     send <some parameter> $SOME_ENV_VAR;<br>
>     request subnet-mask,<br>
>             broadcast-address,<br>
> /* ... */<br>
> }<br>
<br>
</span>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.<br>
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.<br>
<br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div><br></div>