Gents, I seem to be having a problem with DHCP option 67 and dnsmasq in that dnsmasq seems to always force the option value into the DHCP header bootfile-name field instead of creating an actual Option. I have a particular DHCP client that does not accept this.
Does anyone know of a way to force dnsmasq to create an actual Option 67? I have tried using the raw option number as well as the 'encap' option of the latest version to no avail. I can reliably make this work under dhcpd, but not under dnsmasq. More details (from Wireshark) follow: -- dnsmasq WireShark (selected) output -- Boot file name: INI=https://10.0.1.251/Audc_CAMA_4FXS.ini,net:gateways -- dnsmasq version information -- [root@server-ecx-nec-1-1 dnsmasq-2.49]# dnsmasq -v Dnsmasq version 2.49 Copyright (C) 2000-2009 Simon Kelley -- dnsmasq.conf (selected) contents -- # Options for the AudioCodes Gateways #dhcp-option=net:gateways,option:tftp-server,ftp://user:pass@server-ecx-nec-1-1/ dhcp-option=net:gateways,option:sip-server,server-ecx-nec-1-1 #dhcp-option=net:gateways,option:bootfile-name,"INI=https://10.0.1.251/Audc_CAMA_4FXS.ini" dhcp-option=67,"INI=https://10.0.1.251/Audc_CAMA_4FXS.ini",net:gateways dhcp-option = encap:67, 67, "INI=https://10.0.1.251/Audc_CAMA_4FXS.ini" # AudioCodes Gateways # Range: 071 -> 079 # Notes: Allocated CAMA, FXO, FXS, in that order if possible. dhcp-host=id:01:00:90:8F:1B:10:7E,10.0.1.71,infinite,net:gateways #dhcp-host=id:01:00:90:8F:1A:F6:F9,10.0.1.72,infinite,net:gateways dhcp-host=id:01:00:90:8F:1D:87:5A,10.0.1.73,infinite,net:gateways dhcp-host=id:01:00:90:8F:1A:F6:F9,gateway-fxs-ac-1-1,10.0.1.72,infinite,net:gateways ------------------------------------------------------------------------------------- -- dhcpd WireShark (selected) output -- Next server IP address: 0.0.0.0 (0.0.0.0) Boot file name not given Option: (t=67,l=59) Bootfile name = "INI=ftp://AudcMp11x:[email protected]/Audc_CAMA_4FXS.ini" Option: (67) Bootfile name Length: 59 Value: 494E493D6674703A2F2F417564634D703131783A41756463... -- dhcpd config information -- # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample # # Recommended Configuration for AudioCodes DHCP Option 67 Provisioning ddns-update-style ad-hoc; default-lease-time 3600; max-lease-time 3600; class "audiocodes" { match if(substring(hardware, 1, 3) = 00:90:8f); } subnet 10.0.1.0 netmask 255.255.255.0 { pool { allow members of "audiocodes"; range 10.0.1.71 10.0.1.79; option routers 10.0.1.251; option subnet-mask 255.255.0.0; option domain-name-servers 10.0.1.251; option bootfile-name "INI=ftp://AudcMp11x:[email protected]/Audc_CAMA_4FXS.ini"; option dhcp-parameter-request-list 1,3,6,51,67; } } Cheers, Justin McAteer
