[Dnsmasq-discuss] Trying to Send Option 43 with a 2 byte code
David Thelen
dt at arrcus.com
Thu Jul 11 18:07:42 BST 2019
I am trying to mimic the following ISC option space definition
option space arrcus_opt code width 2 length width 2 hash size 17;
option arrcus_opt.config-url code 35 = text;
option arrcus_opt.script-url code 36 = text;
host SeastoneXP-SpineB {
hardware ethernet <MAC_ADDRESS>;
fixed-address <MGMT_IP_ADDRESS>;
option default-url = <ONL_IMAGE>;
vendor-option-space arrcus_opt;
option arrcus_opt.script-url = "<URL_TO_BOOT_SCRIPT>";
option host-name <HOSTNAME>;
}
However I am struggling to get this to work in dnsmasq I think its because the code with is 2 bytes. I have even tried the full hex, which in my case would be:
dhcp-option=43,00:24:00:24:68:74:74:70:3a:2f:2f:31:30:2e:39:2e:31:30:31:2e:32:30:37:3a:34:34:34:34:2f:73:72:69:2d:74:65:73:74:2e:70:79
which does work, but wondering if there is a more graceful way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190711/e70bbc85/attachment.html>
More information about the Dnsmasq-discuss
mailing list