DHCPv6 insert options into lease file

Glenn Satchell glenn.satchell at uniq.com.au
Fri Jan 24 14:28:42 UTC 2014


On Sat, January 25, 2014 1:07 am, Simon Hobson wrote:
> 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.

I have this entry in dhcpd.conf:

set vendor-string = option vendor-class-identifier;

and it results in a lease that includes this line:

  set vendor-string = "MSFT 5.0";

This is IPv4, not sure about IPv6, but I think it should be the same.

regards,
-glenn




More information about the dhcp-users mailing list