Pádraig Brady wrote:
> Hi,
>> I would like some things to happen automatically
> when a dhcp server allocates a new address for a client.
> Is there anyway I can get the trigger to complete,
> before the client gets the ip address from the DHCP server?
I had another few minutes to look at this today.
To clarify the question, I would like to run an external
program on the dhcp server when it allocates an address.
I think I found the answer. ISC DHCP since 3.1.0a1 has:
"A new common configuration executable statement, execute(), has been added.
This permits dhcpd or dhclient to execute a named external program with command
line arguments specified from other configuration language.
Thanks to a patch written by Mattias Ronnblom, gotten to us via Robin Breathe."
Pádraig.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!