[Kea-users] Class selection with Option 82
Andre Roberge
robergeandre at yahoo.com
Thu Jun 19 20:39:46 UTC 2025
Hi,
I'm having some issues with classifying my client classes with the vlan out of option 82. I'm getting the interface with my vlan using Juniper Network. Is there a way not to get the interface appended to the vlan from a Juniper ?
Here is my client class selection which is working: "client-classes": [ // vlan45 { "name": "vlan45", "test": "substring(option[82].option[1].hex, 12,2) == 0x3435", },
],
Log Eval
2025-06-19T16:38:12.567815-04:00 c3dhcp1 kea-dhcp4: DEBUG [kea-dhcp4.eval.140363547969216] EVAL_DEBUG_SUBSTRING [hwtype=1 b4:e9:b8:2c:cf:8c], cid=[01:b4:e9:b8:2c:cf:8c], tid=0x3b67ca88: Popping length 2, start 12, string 0x67652D302F302F32312E303A3435 pushing result 0x34352025-06-19T16:38:12.567982-04:00 c3dhcp1 kea-dhcp4: DEBUG [kea-dhcp4.eval.140363547969216] EVAL_DEBUG_HEXSTRING [hwtype=1 b4:e9:b8:2c:cf:8c], cid=[01:b4:e9:b8:2c:cf:8c], tid=0x3b67ca88: Pushing hex string 0x34352025-06-19T16:38:12.568735-04:00 c3dhcp1 kea-dhcp4: DEBUG [kea-dhcp4.eval.140363547969216] EVAL_DEBUG_EQUAL [hwtype=1 b4:e9:b8:2c:cf:8c], cid=[01:b4:e9:b8:2c:cf:8c], tid=0x3b67ca88: Popping 0x3435 and 0x3435 pushing result 'true'2025-06-19T16:38:12.568858-04:00 c3dhcp1 kea-dhcp4: INFO [kea-dhcp4.dhcpsrv.140363547969216] EVAL_RESULT [hwtype=1 b4:e9:b8:2c:cf:8c], cid=[01:b4:e9:b8:2c:cf:8c], tid=0x3b67ca88: Expression vlan45 evaluated to true
Juniper Config dhcp-relay { relay-option-82 { circuit-id { use-vlan-id; } } forward-only; server-group { c3dhcp { 10.14.3.10; } } active-server-group c3dhcp; group all { interface irb.45; } }
Thank You
Andre Robergerobergeandre at yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250619/6673f0bd/attachment.htm>
More information about the Kea-users
mailing list