[Kea-users] Vendor specific options (Option 43 + 60)
Bohnenberger, Mark
mark.bohnenberger at bechtle.com
Mon Dec 6 07:25:47 UTC 2021
So I find a solution for the Aruba AP option 43. Aruba APs need to get back the option 60, so that they don't go into the IAP mode. I also want to specify on which subnet the option is working, so I added the only-if-required part
"client-classes":[
{
"name": "<NAME>",
"test": "option[vendor-class-identifier].text == 'ArubaAP'",
"only-if-required": true,
"option-def": [{
"name":"vendor-encapsulated-options",
"code": 43,
"type": "string"
}],
"option-data": [
{
"name":"vendor-encapsulated-options",
"code": 43,
"data": "<CONTROLLER-IP>"
},
{
"name": "vendor-class-identifier",
"data": "ArubaAP"
}
]
},
{
"name": "<NAME>",
"test": "option[vendor-class-identifier].text == 'ArubaAP'",
"only-if-required": true,
"option-def": [{
"name":"vendor-encapsulated-options",
"code": 43,
"type": "string"
}],
"option-data": [
{
"name":"vendor-encapsulated-options",
"code": 43,
"data": "<CONTROLLER-IP>"
},
{
"name": "vendor-class-identifier",
"data": "ArubaAP"
}
]
}
],
{
"subnet": "<SUBNET>",
"require-client-classes": [ "<NAME>" ],
"comment": "<COMMENT>",
"pools": [ { "pool": "<POOL>" } ],
"option-data": [
{
"name": "routers",
"data": "<ROUTER-IP>"
}
]
}
Mark
-----Ursprüngliche Nachricht-----
Von: Todd Gurnett <todd.gurnett at sait.ca>
Gesendet: Mittwoch, 17. November 2021 16:07
An: Bohnenberger, Mark <mark.bohnenberger at bechtle.com>; kea-users <kea-users at lists.isc.org>
Betreff: RE: Vendor specific options (Option 43 + 60)
There is a .. in the pools line; see 10.2.200..239.
Is this in the working config or just a typo in the email?
If in working, I would have expected this to result in a syntax error, but maybe not.
-----Original Message-----
From: Bohnenberger, Mark <mark.bohnenberger at bechtle.com>
Sent: November 17, 2021 12:46 AM
To: Todd Gurnett <todd.gurnett at sait.ca>; kea-users <kea-users at lists.isc.org>
Subject: AW: Vendor specific options (Option 43 + 60)
Yes I have a subnet for the access-point.
{
"subnet": "10.2.200.0/24",
"comment": " TEST DHCP",
"pools": [{"pool": "10.2.200.20 - 10.2.200..239"}],
"client-class": Aruba_AP ",
"option-data": [
{
"name": "routers",
"data": "10.2.200.1"
}
]
}
-----Ursprüngliche Nachricht-----
Von: Todd Gurnett <todd.gurnett at sait.ca>
Gesendet: Dienstag, 16. November 2021 17:50
An: Bohnenberger, Mark <mark.bohnenberger at bechtle.com>; kea-users <kea-users at lists.isc.org>
Betreff: RE: Vendor specific options (Option 43 + 60)
Might be a dumb question, but I have to check. Do you have a subnet for the access point?
-----Original Message-----
From: Bohnenberger, Mark <mark.bohnenberger at bechtle.com>
Sent: November 16, 2021 9:26 AM
To: Todd Gurnett <todd.gurnett at sait.ca>; kea-users <kea-users at lists.isc.org>
Subject: AW: Vendor specific options (Option 43 + 60)
With this config I receive the message "definition for the option 'vendor-encapsulated-options-space.controller_ip' having code '241' does not exist". When I create the global option-def and add the client-class entry to the subnet, KEA will start, but will not address any ip address.
"option-def": [
{
"name": "controller_ip",
"code": 241,
"space": "vendor-encapsulated-options-space",
"type": "ipv4-address",
"array": true }
],
Mark
-----Ursprüngliche Nachricht-----
Von: Kea-users <kea-users-bounces at lists.isc.org> Im Auftrag von Todd Gurnett
Gesendet: Dienstag, 16. November 2021 17:03
An: kea-users <kea-users at lists.isc.org>
Betreff: Re: [Kea-users] Vendor specific options (Option 43 + 60)
This config worked for us.
### client classification ###
{
"name": "Aruba_AP",
"test": "substring(option[60].hex,0,7) == 'ArubaAP' ",
"option-data": [
{
"name": "vendor-encapsulated-options",
"code": 43
},
{
"name": "controller_ip",
"space": "vendor-encapsulated-options-space",
"code": 241,
"csv-format": true,
"data": "10.194.11.200,10.194.11.201"
}
]
}
-----Original Message-----
From: Kea-users <kea-users-bounces at lists.isc.org> On Behalf Of perl-list
Sent: November 16, 2021 8:38 AM
To: kea-users <kea-users at lists.isc.org>
Subject: Re: [Kea-users] Vendor specific options (Option 43 + 60)
You mentioned it is being added to these classes from the log file: ALL, VENDOR_CL_ArubaInstantAP, UNKNOWN
ALL can be ignored. UNKNOWN is a special class that can also be ignored. It is also being added to some autogenerated class of VENDOR_CL_ArubaInstantAP it seems. Perhaps you can make use of that like so:
"client-classes": [
{
"name": "WLAN-Controller-Test",
"test": "member('VENDOR_CL_ArubaInstantAP')",
"option-def": [
{
"code": 43,
"name": "vendor-encapsulated-options",
"type": "string"
}
],
"option-data": [
{
"code": 43,
"name": "vendor-encapsulated-options",
"data": "10.1.1.201"
}
]
},
]
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://urldefense.com/v3/__https://www.isc.org/contact/__;!!J748QdifiTU!2P8INaogS7MJlk2uppGVFxGQ2LGZ_WZu2YkLou2ZprM7C46zfPxN5PhZgIiSk7b_N4zXj9Q$ for more information.
To unsubscribe visit https://urldefense.com/v3/__https://lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!2P8INaogS7MJlk2uppGVFxGQ2LGZ_WZu2YkLou2ZprM7C46zfPxN5PhZgIiSk7b_XsbXrIc$ .
Kea-users mailing list
Kea-users at lists.isc.org
https://urldefense.com/v3/__https://lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!2P8INaogS7MJlk2uppGVFxGQ2LGZ_WZu2YkLou2ZprM7C46zfPxN5PhZgIiSk7b_XsbXrIc$
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://urldefense.com/v3/__https://www.isc.org/contact/__;!!J748QdifiTU!2P8INaogS7MJlk2uppGVFxGQ2LGZ_WZu2YkLou2ZprM7C46zfPxN5PhZgIiSk7b_N4zXj9Q$ for more information.
To unsubscribe visit https://urldefense.com/v3/__https://lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!2P8INaogS7MJlk2uppGVFxGQ2LGZ_WZu2YkLou2ZprM7C46zfPxN5PhZgIiSk7b_XsbXrIc$ .
Kea-users mailing list
Kea-users at lists.isc.org
https://urldefense.com/v3/__https://lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!2P8INaogS7MJlk2uppGVFxGQ2LGZ_WZu2YkLou2ZprM7C46zfPxN5PhZgIiSk7b_XsbXrIc$
More information about the Kea-users
mailing list