DHCPv6 insert options into lease file

Jan.Lampikari at haminanenergia.fi Jan.Lampikari at haminanenergia.fi
Tue Jan 28 07:55:44 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

Unfortunately either of them did not work. The entries must have been correct though as restarting dhcpd6 did not generate any error messages. It seems that the ones working with IPv4 won't work with IPv6. Any other ideas?

- Jan


________________________________
 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately by e-mail. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This message has been scanned for viruses and dangerous content by F-Secure Anti-Virus for Microsoft Exchange
________________________________


More information about the dhcp-users mailing list