FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Not applicable
Article Id 196388

Description
It may be required to configure a FortiGate DHCP server that gives out a separate 'option' as well as IP information.  For example, in an environment that must support PXE boot with Windows images.
Solution

The option number and code will be application specific.  The related application documentation should be checked to determine the values to use for the service that is required.  Option codes are represented in HEX values.

After converting the required option code to HEX, the setup is done in CLI:
config system dhcp server
edit <dhcpservername>
set option1 <option_code> [<option_hex>]
end
<option_code> should be a number between 1 and 255, <option_hex> should be in HEX.

For example, to configure option 252 with value http://192.168.1.1/wpad.dat, the command line would be:
set option1 252 687474703a2f2f3139322e3136382e312e312f777061642e646174

ascii = http://192.168.1.1/wpad.dat
hex = 687474703a2f2f3139322e3136382e312e312f777061642e646174
or
ascii = ftpservers=192.168.21.30,country=1,language=1
hex = 667470736572766572733d3139322e3136382e32312e33302c636f756e7472793d312c6c616e67756167653d31

Additional information can be found in the FortiGate CLI Administration Guide.



Contributors