[Kea-users] DHCP disable NETBIOS

Neil Romig courier at countrybusdevon.co.uk
Sat Mar 25 11:34:40 UTC 2023


Darren,

You're right. The "option-data" entry is not needed - I had assumed it would need to go in with the rest of my DHCP option-data entries.

Regards,

Neil.

On Fri, 2023-03-24 at 05:17:22 -0400,  Darren Ankney <darren.ankney at gmail.com> wrote:
> 
> Neil,
> 
> This looks fine.  However, I think you have something extra in here
> that isn't needed.  I think you can do it like this (i could be wrong
> as i have not tested this):
> 
>     "option-def": [
>         {
>             "name": "disable-netbios",
>             "code": 1,
>             "space": "vendor-encapsulated-options-space",
>             "type": "uint32"
>         }
>     ],
>     "client-classes": [
>         {
>             "name": "MSFT_5_0",
>             "test": "option[60].hex == 'MSFT 5.0'",
>             "option-data": [
>                 {
>                     "name": "disable-netbios",
>                     "code": 1,
>                     "space": "vendor-encapsulated-options-space",
>                     "data": "00000002"
>                 },
>                 {
>                    "name": "vendor-encapsulated-options"
>                 }
>             ]
>         }
>     ]
> 
> I don't think you need the extra "option-data" specified outside of
> the class.  You DO need it in the class where you are specifying the
> content of the  option.  Like I said, I could be wrong.
> 
> Thanks,
> 
> -Darren
> 
> On Fri, Mar 24, 2023 at 2:33?AM Neil Romig
> <courier at countrybusdevon.co.uk> wrote:
> > 
> > Hi,
> > 
> > As a new Kea user I have struggled to get to grips with DHCP option 43 and its usage! I'm looking for confirmation that I've done this in the best (or most efficient) way, so any comments would be
> > gratefully received, and perhaps in posting this it will help someone else looking for the "recipe". The config I've added to kea-dhcp4.conf is:
> > 
> >     "option-def": [
> >         {
> >             "name": "disable-netbios",
> >             "code": 1,
> >             "space": "vendor-encapsulated-options-space",
> >             "type": "uint32"
> >         }
> >     ],
> >     "client-classes": [
> >         {
> >             "name": "MSFT_5_0",
> >             "test": "option[60].hex == 'MSFT 5.0'",
> >             "option-data": [
> >                 {
> >                     "name": "disable-netbios",
> >                     "code": 1,
> >                     "space": "vendor-encapsulated-options-space",
> >                     "data": "00000002"
> >                 },
> >                 {
> >                     "name": "vendor-encapsulated-options"
> >                 }
> >             ]
> >         }
> >     ],
> >     "option-data": [
> >         {
> >             "code": 43,
> >             "name": "vendor-encapsulated-options"
> >         },
> >     ],
> > 
> > It looks to be working, and the log file shows the option sent:
> > 
> >       type=043, len=006:,
> >     options:
> >         type=001, len=004: 2 (uint32)
> > 
> > Regards,
> > 
> > Neil.
> > --
> 


More information about the Kea-users mailing list