DHCPv6 insert options into lease file

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Jan 24 14:07:24 UTC 2014

Jan.Lampikari at haminanenergia.fi wrote:

> Currently with IPv4 the same has been done as follows and we would like to achieve something similar with IPv6 disregarding the lease limit.
> if exists agent.circuit-id {
> log (info, concat("Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to CPE ", option agent.remote-id, " at BST ", option agent.circuit-id));
> }

Does just assigning it to a variable not work ? Not done it myself, but there's been a few comments that if you assign something to a variable then it'll get recorded in the lease. EG
opt82 = option agent.remote-id
should result in opt82 appearing in the lease if it was in the request.

More information about the dhcp-users mailing list