OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: pmhausen on October 23, 2020, 10:41:05 am

Title: DHCP vendor option Unifi controller
Post by: pmhausen on October 23, 2020, 10:41:05 am
Hi all,

I would like to serve a custom option to my LAN, option 43 (vendor specific), hex value 0x0104d91d2d4d.
In isc-dhcpd this can be done like so:
Code: [Select]
option vendor-encapsulated-options 01:04:d9:1d:2d:4d;
Unfortunately the UI does not offer hex as a method to enter values. Am I missing something?

Thanks,
Patrick
Title: Re: DHCP vendor option Unifi controller
Post by: mimugmail on October 23, 2020, 11:22:40 am
String should do it when encoded:
https://forum.opnsense.org/index.php?topic=14593.msg66794#msg66794
Title: Re: DHCP vendor option Unifi controller
Post by: pmhausen on October 23, 2020, 11:46:04 am
With the colons or without? Do you know?
Title: Re: DHCP vendor option Unifi controller
Post by: mimugmail on October 23, 2020, 12:08:16 pm
Not in mind, I usually do Unify with a static dns which also works
Title: Re: DHCP vendor option Unifi controller
Post by: pmhausen on October 23, 2020, 12:22:25 pm
Works with "01:04:D9:1D:2D:4D" - just for the record.

I did not think of just trying "string". In Cisco IOS the encoding is explicitly named "hex", so I thought it was a hex encoded binary value. Thanks!