Is there any way to include dynamic info in the DHCP REQUEST?
Simon Hobson
dhcp1 at thehobsons.co.uk
Thu Jun 4 12:20:09 UTC 2015
Fredrik Persson <fredrik.p.persson at gmail.com> 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.
More information about the dhcp-users
mailing list