<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi folks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m using PicOS L3 switches to relay DHCPv6 requests to a Kea server. My server is set up like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">    "Dhcp6": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">        "interfaces-config": {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">            "interfaces": ["internal/fde1:8a58:60b7:c23c::10"]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">        },<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">        "subnet6":<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">        [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">            {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                "subnet": "2604:2940:8000:8::/64",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                "rapid-commit": true,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                "pools": [ { "pool": "2604:2940:8000:8::/80" } ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                "pd-pools": [<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                    {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                        "prefix": "2604:2940:8000:2800::",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                        "prefix-len": 54,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                        "delegated-len": 60<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                    }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                ],<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">                "reservations": []<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">            },<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">…<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The PicOS relay sends data that looks like this:<br>
<br>
<span style="font-family:"Courier New"">08:57:19.802158 internal In IP6 (flowlabel 0x2c0ee, hlim 63, next-header UDP (17) payload length: 167) 2604:2940:8000:8:0:ffff:ffff:fffe.547 > fde1:8a58:60b7:c23c::10.547: [udp sum ok] dhcp6 relay-fwd (linkaddr=ff02::1:2
 peeraddr=fe80::f4fa:c4ff:fe8c:f5d3 (interface-ID 000007d0...) (Remote-ID 35098 666c336e77...) (relay-message (dhcp6 solicit (xid=9de569 (client-ID hwaddr type 1 f6fac48cf5d3) (IA_NA IAID:3297572307 T1:4294967295 T2:4294967295) (option-request DNS-server vendor-class)
 (elapsed-time 65535) (vendor-class) (IA_PD IAID:3297572307 T1:4294967295 T2:4294967295))))</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It's using the IPv6 address assigned to the VLAN associated with the request as the source of the relayed message (2604:2940:8000:8:0:ffff:ffff:fffe), but does not update the ‘linkaddr’ field with that message. I have not yet been able
 to find a way to adjust the ‘interface-id’ field, so I can’t change that to link to a subnet in Kea. And the value that gets set by PicOS doesn’t seem to be ASCII, so I haven’t found a way to specify that in the subnet declaration in Kea as hex (if that would
 make sense to do).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can adjust the ‘remote-id’ field sent by PicOS (by default it’s omitted, but I have it set in the request above), but I haven’t found a way in Kea to use that as the primary subnet selection criteria. From what I can see, I could use
 that as part of a class to further filter requests once the subnet is selected, but that’s not what I need.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there any way to configure Kea to use the source address of the relay packet or the ‘remote-id’ as the subnet selection criteria? I also have a request open with FS (who own PicOS) to have them adjust the `linkaddr` field, but I don’t
 know if they will do that or how long that will take.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Justin<o:p></o:p></p>
</div>
</body>
</html>