Skip to main content
iaityahia
Explorer
February 19, 2024
Solved

Setting DHCP Server for PXE boot

  • February 19, 2024
  • 6 replies
  • 10274 views

hello

 

I want to configure the DHCP server of my 80F  firewall, for this purpose I need to set options 60, 66 and 67,especially for options 67 I can't set it via the web interface, it recamnds me to use the CLI console.

i followed this technical tips 

Technical Tip: Configure DHCP option 60, 66 and 67... - Fortinet Community

 

But when I run a command bellow a get  "Attribute 'interface' MUST be set."   and "Command fail. Return code -56", 

config system dhcp server

    edit <>

        set filename {string}

    next

 end

how and where to set the interface attribute, I tried with set interface "interface_name"  ?  but it doesn't work

Best answer by AEK

So I guess you should edit the 3rd, like this:

config system dhcp server

    edit 3

        ...

6 replies

AEK
SuperUser
SuperUser
February 19, 2024

Hello

It is the interface on which this DHCP server config will run.

The easiest is to configure it via GUI then go to CLI, there you will find the configuration ready, then just add what you need to add via CLI.

AEK
iaityahia
iaityahiaAuthor
Explorer
February 19, 2024

yes the interface is UP and running, with GUI, and th DHCP is ready, when I try to set option 67, i have a warning, with CLI it tell me to set interface attribute  

This option may not function correctly. It should be set using the CLI attribute: filename.

Fortigate.png

Bellow my console commande suit 

 

Fortigate # config system dhcp server  Fortigate (server) # Fortigate (server) # edit 1 new entry '1' added  Fortigate (1) # Fortigate (1) # set filename "E:\\RemoteInstall\\Boot\\x64\\wdsnbp.com"  Fortigate (1) # Fortigate (1) # next Attribute 'interface' MUST be set. Command fail. Return code 1  Fortigate (server) # Fortigate (server) # end

 

AEK
SuperUser
SuperUser
February 19, 2024

Please share this output:

show system dhcp server

AEK
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT