<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
span.Shkpostityyli17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:70.85pt 2.0cm 70.85pt 2.0cm}
div.WordSection1
        {}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">We are looking for a solution to record option 18 (Interface-ID) and option 37 (Remote-ID) into the lease file dhcpd6.leases. We would like to see where the prefixes are assigned exactly (To which DSLAM port for example).
 The desired outcome would be to have similar functionality as option 82 provides in IPv4.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">The current setup is as follows:</span></p>
<p class="MsoNormal"><span lang="EN-US">DHCPv6 server <-> DHCPv6 relay <-> DHCPv6 client <-> Host machine</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">With Wireshark we can see the relay inserts both options in the relay-forw message but when the prefix has been assigned they are not saved along with the prefix information into the lease file.
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">The current lease entry contains the following lines:</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">ia-pd “ ……. “ {</span></p>
<p class="MsoNormal"><span lang="EN-US">cltt 4 2014/01/23 09:19:20;</span></p>
<p class="MsoNormal"><span lang="EN-US">iaprefix 2a00:xxxx:xxxx:xxxx::/64 {</span></p>
<p class="MsoNormal"><span lang="EN-US">preferred-life 375;</span></p>
<p class="MsoNormal"><span lang="EN-US">max-life 600;</span></p>
<p class="MsoNormal"><span lang="EN-US">ends 4 2014/01/23 09:29:20;</span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">DHCPv6 server is configured as below:</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">default-lease-time 600;</span></p>
<p class="MsoNormal"><span lang="EN-US">max-lease-time 7200;</span></p>
<p class="MsoNormal"><span lang="EN-US">log-facility local7;</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">subnet6 2a00:xxxx:xxxx:/48 {</span></p>
<p class="MsoNormal"><span lang="EN-US">prefix6 2a00:xxxx:xxxx:xxxx:: 2a00:xxxx:xxxx:xxxx:: /64;</span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Currently with IPv4 the same has been done as follows and we would like to achieve something similar with IPv6 disregarding the lease limit.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">if exists agent.circuit-id {</span></p>
<p class="MsoNormal"><span lang="EN-US">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));</span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">class "CPE" {</span></p>
<p class="MsoNormal"><span lang="EN-US">        spawn with option agent.remote-id;</span></p>
<p class="MsoNormal"><span lang="EN-US">        lease limit 5;</span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">subnet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx {</span></p>
<p class="MsoNormal"><span lang="EN-US">        option routers xxx.xxx.xxx.xxx;</span></p>
<p class="MsoNormal"><span lang="EN-US">        option domain-name-servers xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx;</span></p>
<p class="MsoNormal"><span lang="EN-US">        option broadcast-address xxx.xxx.xxx.xxx;</span></p>
<p class="MsoNormal"><span lang="EN-US">        default-lease-time 86400;</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">pool{</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        allow members of "CPE";</span></p>
<p class="MsoNormal"><span lang="EN-US">                             range xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx;</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US">}</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Any advice is greatly appreciated.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal">- Jan</p>
</div>
<hr>
<font face="verdana" size="2">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</font>
<hr>
</body>
</html>