[Kea-users] Custom option 191 - string
Brian Candler
b.candler at pobox.com
Wed Nov 27 11:23:54 UTC 2019
On 27/11/2019 10:09, chris at slater-walker.net wrote:
> That's it; I need to give this to DHCP clients as a simple ascii text
> string but I can't find a piece of documentation which tells me how to
> do this. My attempts at configuring it always end up with an error.
>
What kind of error - does KEA itself report an error? If so, what does
the error message actually say?
Or does KEA accept it, but your client device doesn't receive the
attribute, or not in the format it expects? In that case, what does
tcpdump show?
> This is what I currently have:
>
> "subnet4": [
> {
> "subnet": "192.168.2.0/24",
> "option-data": [
> {
> "name": "AP-option",
> "code": 191,
> "data": "pool1=192.168.2.249;level=1"
> }
> ],...
> }
>
https://kea.readthedocs.io/en/v1_6_0/arm/dhcp4-srv.html#custom-dhcpv4-options
Try:
"Dhcp4": {
"option-def": [
{
"name": "AP-option",
"code": 191,
"type": "string",
"array": false,
"space": "dhcp4",
}, ...
Then under the subnet:
"option-data": [
{
"name": "AP-option",
"code": 191,
"space": "dhcp4",
"data": "pool1=192.168.2.249;level=1"
}, ...
(Aside: I don't know why the code and space are duplicated in
option-data, even though they've already been defined in option-def, but
that's what the examples show)
HTH,
Brian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20191127/316dbbc6/attachment.htm>
More information about the Kea-users
mailing list