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.
xshkurti
Staff
Staff
Article Id 258568
Description This article describes how to configure DHCP Option 12 on FortiGate DHCP Server Settings.
Scope All FortiOS.
Solution

From GUI:
First enable the DHCP server under the interface:

 

enable-dhcp.png

 

The second step is to expand the Advanced tab and select the 'Create New' Option:

 

dhcp-options.png

 

To configure option 12, create new option with the following parameters:

 

Option code:  12(Host Name)

Value type: String

Value: hostname   <----- In this case hostname 'test' has been used.

 

dhcp-hostname.PNG

 

After this, option 12 will be provided to users:

 

dhcp-test.PNG

 

From CLI:

 

config system dhcp server

    edit 1
            set domain "lab.local"
            set default-gateway 192.168.199.1
            set netmask 255.255.255.0
            set interface "port8"  <----- In the case it is necessary to select FortiGate port where clients will send DHCP requests.
            config ip-range
               edit 1
                    set start-ip 192.168.199.10
                    set end-ip 192.168.199.254
               next
            end
        config options
            edit 1
               set code 12
               set type string
               set value "test"
            next
        end
        set dns-server1 8.8.8.8
        next
 end

 

Related article:
Technical Tip: How to configure FortiGate as DHCP ... - Fortinet Community

 

 

Contributors