Option 66 with DD-WRT router

Discussion in '3CX Phone System - General' started by TSDKen, Oct 29, 2013.

Thread Status:
Not open for further replies.
  1. TSDKen

    Joined:
    Sep 29, 2008
    Messages:
    33
    Likes Received:
    0
    I would like to use the 3CX preferred "DHCP Option 66" method of phone provisioning. I am using a DDWRT based router. It offers the DNSMASQ feature which should allow me to use option 66, but I am unsure which code I should add to the "DNSmasq options" This is what I found:

    dhcp-option=66,"192.168.1.33"

    But it appears to be missing any directory info that I assume the phones need for correct provisioning. (shown below in bold)
    http://10.172.0.2:5000/provisioning/%%ProvSubDir%%/cfg{mac}

    Any help which would allow me to use the Option 66 would be greatly appreciated.

    thanks,

    Ken
     
  2. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,362
    Likes Received:
    226
    I'm not sure if this is the answer you are looking for...but when I've used a tftp server, within the sever programme, you specify which directory the files, to be accessed are located. There is usually a default but it can probably be changed. All the device , using the server, need to know, is the IP, and the file name. The Server recognises the request on the specific port, and makes the files available.

    Is that of any help?

    I think that I've use an older version of this one. http://tftpd32.jounin.net/
     
  3. madigan

    Joined:
    Nov 10, 2010
    Messages:
    6
    Likes Received:
    0
    Presumed that you also want to assign fixed IP addresses for every phone you need to list all MAC addresses with their corresponding IP first:
    For example:
    Code:
    dhcp-host=00:04:13:44:55:66,10.10.12.116,86400,net:3CX
    dhcp-host=00:04:13:44:55:77,10.10.12.117,86400,net:3CX
    ...
    Then configure option 66 (actually option 66 is only the server and option 67 points to the file name but you can put both into one option)
    Code:
    dhcp-option=net:3CX, option:tftp-server, http://10.10.12.114:5000/provisioning/%%ProvSubDir%%/cfg{mac}
    %%ProvSubDir%% of course needs to be replaced with the sub folder generated by 3CX (provided you are on Version 12)
    (Don't get confused by "tftp-server"- it's just the DNSMasq name for option 66)

    Hope this helps- I just saw that there seems to be a better DNSMasq documentation now but the above solution was always working fine for me..
     
Thread Status:
Not open for further replies.