[Kea-users] One question on the subnet configuration

Xiao, Yu (CCI-Atlanta) yu.xiao at cox.com
Tue Jul 16 21:11:21 UTC 2024


Hi experts,

I configured two client classes for my test RPDs. And I also configured three subnets for three different RPDs. I found that even in the subnet configuration, I have correlated the client-class “RPD_new” for that subnet 3 to use. But in reality, kea just ignored this configuration, and use the client class “RPD” for all 3 subnets. And because my test RPDs satisfied both “RPD” and “RPD_new” client classes, and my test RPD used the configurations in “RPD” instead of “RPD_new”.

Why the configuration “client-class” under “subnet6” won’t take effective as I thought?

    "client-classes": [
        {
            "name": "RPD",
            "test": "substring(option[17].option[2].hex,0,3) == 'RPD'",
            "option-data": [
                {
                    "space": "vendor-4491",
                    "name": "syslog-servers",
                    "code": 34,
                    "data": "2000:109:20:3100:10:0:252:23",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "time-servers",
                    "code": 37,
                    "data": "2000:109:20:3100::37",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "time-offset",
                    "code": 38,
                    "data": "0",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "ccap-cores",
                    "code": 61,
                    "data": "2000:109:20:3100:10:0:254:34",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "vendor-opts",
                    "code": 17,
                    "always-send": true
                }
            ]
        },
        {
            "name": "RPD_new",
            "test": "substring(option[1].hex,0,9) == 0x000400001010D22BC9",
            "option-data": [
                {
                    "space": "vendor-4491",
                    "name": "syslog-servers",
                    "code": 34,
                    "data": "2000:109:20:3100:10:0:252:1",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "time-servers",
                    "code": 37,
                    "data": "2000:109:20:3100::9",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "time-offset",
                    "code": 38,
                    "data": "0",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "ccap-cores",
                    "code": 61,
                    "data": "2000:109:20:3100:0:0:0:4",
                    "always-send": true
                },
                {
                    "space": "vendor-4491",
                    "name": "vendor-opts",
                    "code": 17,
                    "always-send": true
                }
            ]
        }
    ],
# Finally, we list the subnets from which we will be leasing addresses.
    "subnet6": [
        {
            "id": 1,
            "subnet": "2000:109:20:3110::1/64",
            "pools": [
                {
                    "pool": "2000:109:20:3110::1-2000:109:20:3110::10"
                }
             ],
            "relay": {
                "ip-addresses": [ "2000:109:20:3110::1" ]
             },
            "interface": "ens18",
            "client-class": "RPD",
            "allocator": "iterative"
        },
        {
            "id": 2,
            "subnet": "2000:109:20:5320::1/64",
            "pools": [
                {
                    "pool": "2000:109:20: 5320::1-2000:109:20: 5320::10"
                }
             ],
            "relay": {
                "ip-addresses": [ "2000:109:20: 5320::1" ]
             },
            "interface": "ens18",
            "client-class": "RPD",
            "allocator": "iterative"
        },
        {
            "id": 3,
            "subnet": "2000:109:20:2110::1/64",
            "pools": [
                {
                    "pool": "2000:109:20: 2110::1-2000:109:20: 2110::9"
                }
             ],
            "relay": {
                "ip-addresses": [ "2000:109:20: 2110::1" ]
             },
            "interface": "ens18",
            "client-class": "RPD_new",
            "allocator": "iterative"
        }
    ],



Best Regards,
Yu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240716/4a4f2cd9/attachment-0001.htm>


More information about the Kea-users mailing list