I was able to hack around this (limitation?) (using some snippets found in 
earlier mailing list posts) with the following config.  
Please note that this will not work if there is more than one relay being done 
as it will probably be substring(relay6[some integer greater than 
0].option[18].hex,0,all)

**** SNIP ****
        "client-classes": [
            {
                "name": "iid1",
                "test": "substring(relay6[0].option[18].hex,0,all) == 
'Gi0/0/1.240'"
            }
        ],
**** SNIP ****
                "subnet6": [
                    {
                        "valid-lifetime": 600,
                        "preferred-lifetime": 500,
                        "subnet": "2001:0:2:e::/64",
                        "pools": [
                            {
                                "pool": "2001:0:2:e::2-2001:0:2:e::665"
                            },
                            {
                                "pool": "2001:0:2:e::666-2001:0:2:e::666",
                                "client-class": "iid1"
                            },
                            {
                                "pool": 
"2001:0:2:e::667-2001:0:2:e:7fff:ffff:ffff:fffe"
                            }
                        ],
**** SNIP ****



----- Original Message -----
> From: "perl-list" <[email protected]>
> To: "kea-users" <[email protected]>
> Sent: Tuesday, July 6, 2021 9:45:36 AM
> Subject: [Kea-users] DHCPv6: Host reservation by interface-id (18)

> In the DHCPv6 server, is it possible to reserve an IP address by
> interface-id(18)? I tried what I thought might work:

> {
> "Dhcp6": {
> "reservations": [
> {
> "interface-id": "Gi0/0/1.240",
> "ip-addresses": [
> "2001:0:2:8::abcd"
> ]
> }
> ]
> }
> }

> It produced the error message: got unexpected keyword "interface-id" in
> reservations map. The documentation seems to indicate it is only possible to
> make host reservations via duid or hw-address. Is that the current state?
> _______________________________________________
> ISC funds the development of this software with paid support subscriptions.
> Contact us at https://www.isc.org/contact/ for more information.

> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

> Kea-users mailing list
> [email protected]
> https://lists.isc.org/mailman/listinfo/kea-users
_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to