<div dir="ltr">I also have tried without shared network and use link-local address as relay but without success :(<div><font face="monospace">"subnet6": [<br>        {<br>            "subnet": "2001:db8:1200::/48",<br>            "id": 45678,<br>            "interface-id":"Gi8",<br>            "relay": {<br>                "ip-addresses": ["FE80:A1:E8::1"]<br>            },<br>            "pools": [ ],<br>            "pd-pools": [<br>                {<br>                    "prefix": "2001:db8:1200::",<br>                    "prefix-len": 48,<br>                    "delegated-len": 56<br>                }<br>            ],<br>            "reservations":[<br>                {<br>                    "hw-address":"0c:44:e7:8c:c7:00",<br>                    "prefixes": ["2001:db8:1200:900::/56"]<br>                },<br>                {<br>                    "duid":"00:03:00:01:0c:44:e7:56:ac:00",<br>                    "prefixes":["2001:db8:1200:700::/56"]<br>                }<br>            ]<br>        }<br></font></div><div><br></div><div><br></div><div>Any suggestions?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 9 cze 2020 o 18:03 Marcin Romanowski <<a href="mailto:marcin@nicram.net">marcin@nicram.net</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello</div><div>I'm trying to run kea-dhcp6 only for relay agents. As relay agent will be cisco asr. </div><div><br></div><div>Cisco config:</div><div><font face="monospace">! interface to kea dhcp</font></div><div><font face="monospace">interface GigabitEthernet1<br> no ip address<br> negotiation auto<br> ipv6 address FE80::1 link-local<br> ipv6 enable<br> no mop enabled<br> no mop sysid<br>end<br><br>! interface to client side<br>interface GigabitEthernet8<br> no ip address<br> negotiation auto<br> ipv6 address FE80:A1:E8::1 link-local<br> ipv6 enable<br> ipv6 dhcp relay destination FE80::11 GigabitEthernet1 link-address FE80:A1:E8::1<br> ipv6 dhcp relay option vpn<br> no mop enabled<br> no mop sysid<br>end</font><br></div><div><br></div><div>Kea configuration:</div><div><font face="monospace">{<br>"Dhcp6": {<br>    // Add names of your network interfaces to listen on.<br>    "interfaces-config": {<br>        "interfaces": ["ens4"]<br>    },<br>    "control-socket": {<br>        "socket-type": "unix",<br>        "socket-name": "/tmp/kea-dhcp6-ctrl.sock"<br>    },<br>    "lease-database": {<br>        "type": "memfile",<br>        "lfc-interval": 3600<br>    },<br>    "expired-leases-processing": {<br>        "reclaim-timer-wait-time": 10,<br>        "flush-reclaimed-timer-wait-time": 25,<br>        "hold-reclaimed-time": 3600,<br>        "max-reclaim-leases": 100,<br>        "max-reclaim-time": 250,<br>        "unwarned-reclaim-cycles": 5<br>    },<br>    "renew-timer": 1000,<br>    "rebind-timer": 2000,<br>    "preferred-lifetime": 3000,<br>    "valid-lifetime": 4000,<br>    "option-data": [<br>        {<br>            "name": "dns-servers",<br>            "data": "2001:db8:2::45, 2001:db8:2::100"<br>        },<br>        {<br>            "name": "new-posix-timezone",<br>            "data": "EST5EDT4\\,M3.2.0/02:00\\,M11.1.0/02:00"<br>        }<br>    ],<br>    "shared-networks": [<br>        {<br>        "name" : "MySharedNetwork",<br>        "relay": {<br>                    "ip-addresses": ["FE80::1", "FE80::2"]<br>                },<br>        "subnet6": [<br>            {<br>                "subnet": "FE80:A1:E8::/64",<br>                "pools": [ ],<br>                "pd-pools": [<br>                    {<br>                        "prefix": "2001:db8:1200::",<br>                        "prefix-len": 48,<br>                        "delegated-len": 56<br>                    }<br>                ],<br>                "reservations":[<br>                    {<br>                        "hw-address":"0c:44:e7:8c:c7:00",<br>                        "prefixes": ["2001:db8:1200:900::/56"]<br>                    },<br>                    {<br>                        "duid":"00:03:00:01:0c:44:e7:56:ac:00",<br>                        "prefixes":["2001:db8:1200:700::/56"]<br>                    }<br>                ]<br>            }<br>        ]<br>        }<br>    ],<br><br>    "loggers": [<br>    {<br>        "name": "kea-dhcp6",<br>        "output_options": [<br>            {<br>                "output": "/opt/kea/var/log/kea-dhcp6.log"<br>            }<br>        ],<br>        "severity": "DEBUG",<br>        "debuglevel": 99<br>    }<br>  ]<br>}<br>}</font><br></div><div><br></div><div>Problem is with subnet. I try to recongnize from which iterface request has come by specified link-local address FE80:A1:E8::1, this address is used in kea as link-address. When I set subnet as FE80:A1:E8::/64 in log I see that is not there is no subnet available :( but address FE80:A1:E8::1 is included in network FE80:A1:E8::/64</div><div><br></div><div><font face="monospace">2020-06-09 15:47:09.996 DEBUG [kea-dhcp6.dhcpsrv/3422] DHCPSRV_TIMERMGR_RUN_TIMER_OPERATION running operation for timer: reclaim-expired-leases<br>2020-06-09 15:47:09.996 DEBUG [kea-dhcp6.alloc-engine/3422] ALLOC_ENGINE_V6_LEASES_RECLAMATION_START starting reclamation of expired leases (limit = 100 leases or 250 milliseconds)<br>2020-06-09 15:47:09.996 DEBUG [kea-dhcp6.dhcpsrv/3422] DHCPSRV_MEMFILE_GET_EXPIRED6 obtaining maximum 101 of expired IPv6 leases<br>2020-06-09 15:47:09.996 DEBUG [kea-dhcp6.alloc-engine/3422] ALLOC_ENGINE_V6_LEASES_RECLAMATION_COMPLETE reclaimed 0 leases in 0.027 ms<br>2020-06-09 15:47:09.996 DEBUG [kea-dhcp6.alloc-engine/3422] ALLOC_ENGINE_V6_NO_MORE_EXPIRED_LEASES all expired leases have been reclaimed<br>2020-06-09 15:47:09.996 DEBUG [kea-dhcp6.dhcpsrv/3422] DHCPSRV_TIMERMGR_START_TIMER starting timer: reclaim-expired-leases<br>2020-06-09 15:47:15.725 DEBUG [kea-dhcp6.packets/3422] DHCP6_BUFFER_RECEIVED received buffer from fe80::1:547 to fe80::11:0 over interface ens4<br>2020-06-09 15:47:15.725 DEBUG [kea-dhcp6.options/3422] DHCP6_BUFFER_UNPACK parsing buffer received from fe80::1 to fe80::11 over interface ens4<br>2020-06-09 15:47:15.725 DEBUG [kea-dhcp6.packets/3422] DHCP6_PACKET_RECEIVED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: SOLICIT (type 1) received from fe80::1 to fe80::11 on interface ens4<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.packets/3422] DHCP6_QUERY_DATA duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f, packet details: localAddr=[fe80::11]:0 remoteAddr=[fe80::1]:547<br>msgtype=1(SOLICIT), transid=0x2fb59f<br>type=00001, len=00010: 00:03:00:01:0c:44:e7:56:ac:00<br>type=00006, len=00002: 23(uint16)<br>type=00008, len=00002: 0 (uint16)<br>type=00014, len=00000: <br>type=00025(IA_PD), len=00012: iaid=1, t1=1800, t2=2880<br>1 relay(s):<br>relay[0]: msg-type=12(RELAY_FORWARD), hop-count=0,<br>link-address=fe80:a1:e8::1, peer-address=fe80::e44:e7ff:fe56:ac00, 3 option(s)<br>type=00018, len=00005: 01:03:47:69:38<br>type=00037, len=00022: 9 (uint32) 020000000000000A00030001001EE59F0F00 (binary)<br>type=00079, len=00008: 00:01:0c:44:e7:56:ac:00<br><br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.packets/3422] DHCP6_SUBNET_SELECTION_FAILED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: failed to select subnet for the client<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.dhcp6/3422] DHCP6_CLASS_ASSIGNED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: client packet has been assigned to the following class(es): UNKNOWN<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.leases/3422] DHCP6_PROCESS_IA_PD_REQUEST duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: server is processing IA_PD option with iaid=1 and hint=(no hint)<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.options/3422] DHCP6_ADD_STATUS_CODE_FOR_IA duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: adding Status Code to IA with iaid=1: NoPrefixAvail(6) "Sorry, no subnet available."<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.dhcp6/3422] DHCP6_CLASS_ASSIGNED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: client packet has been assigned to the following class(es): ALL, UNKNOWN<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.packets/3422] DHCP6_PACKET_SEND duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: trying to send packet ADVERTISE (type 2) from [fe80::11]:547 to [fe80::1]:547 on interface ens4<br>2020-06-09 15:47:15.726 DEBUG [kea-dhcp6.packets/3422] DHCP6_RESPONSE_DATA responding with packet type 2 data is localAddr=[fe80::11]:547 remoteAddr=[fe80::1]:547<br>msgtype=2(ADVERTISE), transid=0x2fb59f<br>type=00001, len=00010: 00:03:00:01:0c:44:e7:56:ac:00<br>type=00002, len=00014: 00:01:00:01:26:72:47:16:0c:44:e7:40:1e:00<br>type=00023, len=00032: 2001:db8:2::45 2001:db8:2::100<br>type=00025(IA_PD), len=00045: iaid=1, t1=0, t2=0,<br>options:<br>  type=00013, len=00029: NoPrefixAvail(6) "Sorry, no subnet available."<br>1 relay(s):<br>relay[0]: msg-type=13(RELAY_REPLY), hop-count=0,<br>link-address=fe80:a1:e8::1, peer-address=fe80::e44:e7ff:fe56:ac00, 1 option(s)<br>type=00018, len=00005: 01:03:47:69:38<br><br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.packets/3422] DHCP6_BUFFER_RECEIVED received buffer from fe80::1:547 to fe80::11:0 over interface ens4<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.options/3422] DHCP6_BUFFER_UNPACK parsing buffer received from fe80::1 to fe80::11 over interface ens4<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.packets/3422] DHCP6_PACKET_RECEIVED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: SOLICIT (type 1) received from fe80::1 to fe80::11 on interface ens4<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.packets/3422] DHCP6_QUERY_DATA duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f, packet details: localAddr=[fe80::11]:0 remoteAddr=[fe80::1]:547<br>msgtype=1(SOLICIT), transid=0x2fb59f<br>type=00001, len=00010: 00:03:00:01:0c:44:e7:56:ac:00<br>type=00006, len=00002: 23(uint16)<br>type=00008, len=00002: 100 (uint16)<br>type=00014, len=00000: <br>type=00025(IA_PD), len=00012: iaid=1, t1=1800, t2=2880<br>1 relay(s):<br>relay[0]: msg-type=12(RELAY_FORWARD), hop-count=0,<br>link-address=fe80:a1:e8::1, peer-address=fe80::e44:e7ff:fe56:ac00, 3 option(s)<br>type=00018, len=00005: 01:03:47:69:38<br>type=00037, len=00022: 9 (uint32) 020000000000000A00030001001EE59F0F00 (binary)<br>type=00079, len=00008: 00:01:0c:44:e7:56:ac:00<br><br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.packets/3422] DHCP6_SUBNET_SELECTION_FAILED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: failed to select subnet for the client<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.dhcp6/3422] DHCP6_CLASS_ASSIGNED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: client packet has been assigned to the following class(es): UNKNOWN<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.leases/3422] DHCP6_PROCESS_IA_PD_REQUEST duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: server is processing IA_PD option with iaid=1 and hint=(no hint)<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.options/3422] DHCP6_ADD_STATUS_CODE_FOR_IA duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: adding Status Code to IA with iaid=1: NoPrefixAvail(6) "Sorry, no subnet available."<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.dhcp6/3422] DHCP6_CLASS_ASSIGNED duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: client packet has been assigned to the following class(es): ALL, UNKNOWN<br>2020-06-09 15:47:16.730 DEBUG [kea-dhcp6.packets/3422] DHCP6_PACKET_SEND duid=[00:03:00:01:0c:44:e7:56:ac:00], tid=0x2fb59f: trying to send packet ADVERTISE (type 2) from [fe80::11]:547 to [fe80::1]:547 on interface ens4<br></font><br></div><div>I tried to use "interface-id" but cisco does't sent that data so I have to recognize networks.</div><div><br></div><div><br></div><div>How to configure kea-dhcp6 properly to work with link-local address and subnets ?</div><div><br></div><div><br></div><div>Best regards</div><div>Marcin</div><div><br></div><div><br></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Marcin Romanowski / nicraM<br></div><div><img src="https://docs.google.com/uc?export=download&id=1tF66ovI5kS7h-4bp0atR0UMIQMnsAEbm&revid=0B1o0UzQJ45KxQ3VhbEhEQ2szRXV6SEhaS1hpVmx6UWNxV2pFPQ" width="96" height="26"><br><br></div></div></div></div></div>