<div dir="ltr"><p dir="auto">Hi,</p><p dir="auto">We have a strange issue using Kea-DHCP 1.8.2 where sometimes the wrong IPv6 subnet is sometimes selected, even when there is a matching relay address.</p><p dir="auto">This usually happens when de device goes offline, and comes back, when we restart the kea-dhcp6 server, the correct subnet is selected again and device comes online.<br></p><p dir="auto">Can somebody clarify /help with this rather strange behavior? </p><p>I've also opened an issue regarding this behavior.</p><p dir="auto">Configuration:</p><p dir="auto">{<br>  "Dhcp6": {<br>  "interfaces-config": {<br>    "interfaces": [ "eth1/xxx:xxx:2::18" ]<br>  },<br>    "calculate-tee-times": true,<br>    "control-socket": {<br>      "socket-name": "/tmp/kea6-ctrl-socket",<br>      "socket-type": "unix"<br>    },<br>    "host-reservation-identifiers": [ "hw-address", "duid" ],<br>    "hostname-char-replacement": "",<br>    "hostname-char-set": "[^A-Za-z0-9.-]",<br>    "lease-database": {                                                                                                                            <br>        "type": "memfile",<br>        "persist": true,<br>        "name": "/var/lib/kea/kea-leases6.csv",<br>        "lfc-interval": 3600<br>    },    <br>    "loggers": [<br>      {<br>        "name": "kea-dhcp6",<br>        "output_options": [<br>          {<br>            "maxsize": 10485760,<br>            "maxver": 8,<br>            "output": "/usr/local/var/log/kea-dhcp6.log"<br>          }<br>        ],<br>      "severity": "DEBUG",<br>      "debuglevel": 99<br>      }<br>    ],<br>    "mac-sources": [ "any" ],<br>    "multi-threading": {<br>      "enable-multi-threading": false,<br>      "packet-queue-size": 64,<br>      "thread-pool-size": 0<br>    },<br>    "client-classes": [<br>        {<br>            "name": "RPD",<br>            "test": "substring(option[17].option[2].hex,0,3) == 'RPD'"<br>        }<br>     ],<br>    "option-data": [<br>      {<br>        "code": 34,<br>        "csv-format": true,<br>        "data": "xxx:9202:2::18",<br>        "space": "vendor-4491",<br>        "always-send" : true<br>      },<br>      {<br>        "code": 37,<br>        "csv-format": true,<br>        "data": "xxx:9202:2::18",<br>        "space": "vendor-4491",<br>        "always-send" : true<br>      },<br>      {<br>        "code": 38,<br>        "csv-format": true,<br>        "data": "3600",<br>        "space": "vendor-4491",<br>        "always-send" : true<br>      }<br>    ],<br>    "option-def": [<br>      {<br>        "array": true,<br>        "code": 34,<br>        "name": "syslog-servers",<br>        "space": "vendor-4491",<br>        "type": "ipv6-address"<br>      },<br>      {<br>        "array": true,<br>        "code": 61,<br>        "name": "ccap-core",<br>        "space": "vendor-4491",<br>        "type": "ipv6-address"<br>      },<br>      {<br>        "array": true,<br>        "code": 37,<br>        "name": "rfc868-servers",<br>        "space": "vendor-4491",<br>        "type": "ipv6-address"<br>      },<br>      {<br>        "array": false,<br>        "code": 38,<br>        "name": "time-offset",<br>        "space": "vendor-4491",<br>        "type": "int32"<br>      }<br>    ],<br>    "preferred-lifetime": 43200,<br>    "valid-lifetime": 86400,<br>    "relay-supplied-options": [ "65" ],<br>    "reservation-mode": "all",<br>    "sanity-checks": {<br>      "lease-checks": "warn"<br>    },<br>    "server-id": {<br>      "enterprise-id": 0,<br>      "htype": 0,<br>      "identifier": "",<br>      "persist": true,<br>      "time": 0,<br>      "type": "LLT"<br>    },<br>    "server-tag": "daa-dhcp6",<br>#    "shared-networks": [ ],<br>    "statistic-default-sample-age": 0,<br>    "statistic-default-sample-count": 20,<br>    "store-extended-info": false,<br><br>    "shared-networks": [<br>    {<br>    "name": "RPDS",<br>    "subnet6": [<br>      {<br>        "id": 1,<br>        "subnet": "xxx:8::/64",<br>        "client-class": "RPD",<br>        "reservations": [<br><br>                  {<br>                    "hw-address": "00:90:50:08:8b:d5",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8bd5" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:4::2,xxx::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br>                  {<br>                    "hw-address": "00:90:50:08:86:1f",<br>                    "ip-addresses": [ "xxx:8::0090:5008:861f" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:4::2,xxx::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br>                  {<br>                    "hw-address": "00:90:50:08:8d:16",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8d16" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:5::2,xxx:1::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br>                  {<br>                    "hw-address": "00:90:50:08:86:20",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8620" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:5::2,xxx:1::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br>                  {<br>                    "hw-address": "00:90:50:08:8d:43",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8d43" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:6::2,xxx:2::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br>                  {<br>                    "hw-address": "00:90:50:08:8b:d7",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8bd7" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:6::2,xxx:2::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br>                  {<br>                    "hw-address": "00:90:50:08:8b:d8",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8bd8" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:7::2,xxx:3::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  },<br><br>                  {<br>                    "hw-address": "00:90:50:08:86:24",<br>                    "ip-addresses": [ "xxx:8::0090:5008:8624" ],<br>                    "option-data": [<br>                                      {<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:7::2,xxx:3::2",<br>                                        "always-send" : true<br>                                      }<br><br>                                   ]<br>                  }<br>     <br>        ],<br><br>        "pools": [<br>                {<br>                        "pool": "xxx:8:666::2-xxx:8:666::fffe"<br>                }<br>        ]<br>      },<br>      {                                                                                                                                                      <br>        "id": 2,                                                                                                                                            <br>        "subnet": "xxx:12::/64",                                                                                                                  <br>        "preferred-lifetime": 43200,                                                                                                                            <br>        "valid-lifetime": 86400,                                                                                                                              <br>        "client-class": "RPD",                                                                                                                              <br>        "option-data": [                                                                                                                                    <br>                                      {                                                                                                                      <br>                                        "name": "ccap-core",                                                                                                <br>                                        "code" : 61,                                                                                                        <br>                                        "space": "vendor-4491",                                                                                              <br>                                        "csv-format": true,                                                                                                  <br>                                        "data": "xxx:2::5",                                                                                              <br>                                        "always-send" : true                                                                                                <br>                                      },                                                                                                                    <br>                                      {                                                                                                                      <br>                                        "name": "syslog-servers",                                                                                            <br>                                        "code": 34,                                                                                                          <br>                                        "space": "vendor-4491",                                                                                              <br>                                        "csv-format": true,                                                                                                  <br>                                        "data": "xxx:9202:2::18"                                                                            <br>                                      },                                                                                                                    <br>                                     {                                                                                                                      <br>                                        "name": "time-servers",                                                                                              <br>                                        "code": 37,                                                                                                          <br>                                        "space": "vendor-4491",                                                                                              <br>                                        "csv-format": true,                                                                                                  <br>                                        "data": "xxx:9202:2::18"                                                                            <br>                                      },                                                                                                                    <br>                                      {                                                                                                                      <br>                                        "name": "time-offset",                                                                                              <br>                                        "code": 38,                                                                                                          <br>                                        "space": "vendor-4491",                                                                                              <br>                                        "data": "3600"                                                                                                      <br>                                      }                                                                                                                      <br>        ],                                                                                                                                                  <br>                                                                                                                                                             <br>        "pools": [                                                                                                                                          <br>                {                                                                                                                                            <br>                        "pool": "xxx:12:666::2-xxx:12:666::fffe"                                                                        <br>                }                                                                                                                                            <br>        ],<br>        "relay": { "ip-addresses": [ "xxx:12::1" ] }<br>                                                                                                                                                   <br>      },<br>      {<br>        "id": 3,<br>        "subnet": "xxx:13::/64",<br>        "preferred-lifetime": 43200,<br>        "valid-lifetime": 86400,<br>        "client-class": "RPD",<br>        "option-data": [<br>                                      {<br>                                        "name": "ccap-core",<br>                                        "code" : 61,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:2::5",<br>                                        "always-send" : true<br>                                      },<br>                                      {<br>                                        "name": "syslog-servers",<br>                                        "code": 34,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:9202:2::18"<br>                                      },<br>                                     {<br>                                        "name": "time-servers",<br>                                        "code": 37,<br>                                        "space": "vendor-4491",<br>                                        "csv-format": true,<br>                                        "data": "xxx:9202:2::18"            <br>                                      },<br>                                      {<br>                                        "name": "time-offset",<br>                                        "code": 38,<br>                                        "space": "vendor-4491",<br>                                        "data": "3600"<br>                                      }<br>        ],<br><br>        "pools": [<br>                {<br>                        "pool": "xxx:13:666::2-xxx:13:666::fffe"<br>                }                                                                                                                                            <br>        ],<br>        "relay": { "ip-addresses": [ "xxx:13::1" ] }                                                                                                                                                    <br>      }<br> <br>    ]<br>   }<br>  ],<br>    "t1-percent": 0.5,<br>    "t2-percent": 0.8<br>  }<br>}</p></div>