Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Not applicable

DHCP Server Options - Problems adding server options

FG60 Firmware 3.0MR3 Patch12 build0416. Im trying to add options 66 and 67 to the DHCP server config to do some autoconfigs on a couple of VOIP handsets. We do the same thing on another linux based DHCP server and it works a treat. Settings we' re trying to add: Option 1: Code: 66 Option: <INSERT URL HERE> Option 2: Code: 67 Option: <INSERT FILENAME HERE> Yes im putting in real URLs and filenames above. Ive just obsficated it for here. When I try and add the config via GUI or CLI it errors out with: GUI: Input value is invalid. CLI: (internal_dhcp_ser.)# set option1 66 <INSERT URL HERE> Found invalid hexdecimal character node_check_object fail! for option1 <INSERT URL HERE> value parse error before ' <INSERT URL HERE>' Command fail. Return code -651 Now referring to the CLI reference it says that the value needs to be a hex number! Does that mean I need to convert my strings to hexadecimal? Any got something like this to work and can provide some insight?
5 REPLIES 5
jasonb_FTNT
Staff
Staff

Yes you have to use hexdec for this to work. ASCII to HEX Program for FortiGate DHCP options - by Martin Hoz (c) 2007 by Fortinet, Inc. WARNING: This is a NOT officially supported tool. USE IT AT YOUR OWN RISK. ====================================== String to be converted (shorter than 100 bytes): http://www.fortinet.com/link.vo ip The original string is: ===>http://www.fortinet.com/link.voip<=== The converted string is: ===>687474703a2f2f7777772e666f7274696e65742e636f6d2f6c6 96e6b2e766f6970<=== You may copy the string above directly to the " Option" Section on the DHCP Server meno of FortiGate' s FortiOS: (Service->DHCP->Service->(interface)->Servers->(Server_Name) ------ Note this program is not supported by Fortinet Use at your own risk Anybody who wants it, send me a private message
Not applicable

Yes you have to use hexdec for this to work.
Thank you. You wouldnt believe the amount if time ive spent pouring over the docs and KBs and PDFs trying to find the solution. Where does one actually get this ' hexdec' tool from though? Ive done some quick searchs on docs and support and got no hits.
Not applicable

Anybody who wants it, send me a private message
Tried to. Forums said I wasnt allowed to. Can you mail it through to support@faredge.com.au?
jasonb_FTNT
Staff
Staff

I can' t seem to upload files via the forum. Looks like that functionality is disabled. Send me an PM with your email address.
Not applicable

Dont bother posting the app. You can use the converter at http://www.mikezilla.com/exp0012.html Then just remove the % it inserts. Just tested this and it works a treat. Thanks for you assistance Jason.
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors