Course contents

Module 1: Getting StartedLesson 1.4 (4 of 8 in this module)4 of 43 in the FortiGate Administration course

Zero-touch FortiGate onboarding: DHCP options and FortiDeploy

Onboarding with nobody on site: staged units, DHCP options 240 and 241 with a FortiManager model device, and FortiDeploy, with the production and lab versions and the faults at each step.

Intermediate · 13 min read

Written for FortiOS 7.6 · FortiOS 7.4: not yet reviewed

Production administration

Before this: Onboard a FortiGate, First login and basic setup

You'll learn to compare the staged, DHCP-option and FortiDeploy routes to a managed FortiGate, run the DHCP-option route in the right order for production and lab, and work out why a unit that was powered on has not appeared in FortiManager.

Twelve branches and nobody who can use a console

A company is opening twelve small branches. The FortiGates will be shipped straight to the sites, and the staff there can connect power and a network cable and nothing more. The configuration must reach each unit over the network, and each unit has to find its manager without anyone typing the address. That is the job of zero-touch provisioning, and it moves the work to the days before shipping: the devices are prepared in FortiManager, and the network that each unit lands on is prepared to tell it where the manager is.

Diagram
Three hands-off routes to a managed FortiGate
Three hands-off routes to a managed FortiGate

A unit can be staged at a bench with its manager address already set, it can learn the manager address from a DHCP option at the site, or it can be redirected by Fortinet's cloud service.

Hands-off onboarding
  • Stagedmanager addressset at a bench
  • DHCP option240 or 241 fromthe site's DHCP
  • FortiDeploycloud serviceredirects the unit
The first is not zero-touch at the site but needs no one at the site. The other two need the unit to start from factory defaults.
Diagram
Comparing the three routes
Comparing the three routes
RouteHow the unit learns the managerPrepared beforehandWhat the site must provide
Staged at a benchThe central management setting is already in its configurationEach unit is configured, tested and reset to a known state, then shippedPower, an uplink and an address the unit can use
DHCP option 240 or 241The site's DHCP server hands it the FortiManager address or nameA model device in FortiManager for each serial number, with its templates and packageA DHCP service that supplies the option, and a path to FortiManager on TCP 541
FortiDeployFortinet's cloud service tells it which manager to useThe units registered to the account and pointed at a manager in the portalOutbound Internet access to the service, and a path to FortiManager on TCP 541
Names of options and portals are as Fortinet describes them. Models, versions and licence requirements vary, so confirm each route against the current documentation.

The DHCP-option route, step by step

This is the route that works inside your own networks and in a lab, because the pieces are all things you control: FortiManager, the DHCP server and the unit. The order is fixed by what depends on what. FortiManager must know the unit by serial number before the unit calls, and the DHCP server must be offering the option before the unit asks.

Diagram
Zero-touch with a DHCP option
Zero-touch with a DHCP option

Model the device in FortiManager, assign its templates and package, set the DHCP option, power on the unit, let it match its serial number, then install.

  1. Modelserial,model, ADOM
  2. Assigntemplates,package
  3. OptionDHCP 240or 241
  4. Power onaddress,then manager
  5. Matchserial numberfound
  6. Installconfigurationpushed
The first three steps are prepared before the unit reaches the site. The last three follow once it is powered on.
Diagram
Zero-touch steps, with evidence and faults
Zero-touch steps, with evidence and faults
StepWhat happensEvidenceWhat can stop it
1 ModelAn administrator adds a model device in FortiManager with the serial number, model and firmware, in the right ADOMThe device shows in Device Manager as a model that has not yet connectedA mistyped serial number, or the wrong ADOM or firmware version
2 AssignThe device is given its system template and policy package, so they can be installed when it arrivesThe device shows the template and package assignedA template with an empty variable, or a policy package with a missing mapping
3 OptionThe DHCP server for the site's WAN network offers option 240 with the FortiManager address, or 241 with its nameA DHCP client at that site receives the optionA DHCP server that cannot send custom options, or an option left off the right scope
4 Power onThe unit boots on factory defaults, takes an address by DHCP and reads the optionThe unit shows an address and the manager it learnedNo DHCP, a WAN interface that is not set to DHCP, or a unit that was already configured
5 MatchThe unit opens the management connection on TCP 541 and FortiManager matches its serial number to the model deviceThe device changes from a model to a connected deviceA blocked port, a wrong address in the option, or a serial number that is not modelled
6 InstallFortiManager installs the assigned configuration, or an administrator starts the install, and the unit becomes managedStatus shows connected, and the configuration is in sync after the installAn install that is rolled back because of an object or interface problem
Menu names, status words and the unit's behaviour on first boot are release dependent.
Diagram
Who prepares what
Who prepares what

Before shipping, an administrator models each unit in FortiManager and the network team sets the DHCP option. At the site, the staff connect power and an uplink that has DHCP.

Before shippingmodel devicetemplates, packageDHCP option
At the sitepoweruplink with DHCP
Same split as other zero-touch designs: all typing before the box ships, and power and a cable at the site.

The FortiDeploy route

FortiDeploy is Fortinet's service for registering and provisioning many units without a person on site. The administrator registers the units to a Fortinet account and chooses, in Fortinet's portal, the manager that they should use. At the site the unit takes an address by DHCP, contacts Fortinet's cloud service over the Internet, is told which manager to use, and then connects to that manager. From there the steps match the DHCP-option route: FortiManager matches the serial number and installs the assigned configuration.

Diagram
The FortiDeploy route
The FortiDeploy route

The administrator registers the units to a Fortinet account and chooses their manager in the portal. At the site the unit takes an address by DHCP, is redirected by Fortinet's cloud service, and connects to the manager, which matches its serial number and installs the configuration.

  1. Registerunits to theaccount
  2. Pointchoose themanager
  3. Redirectcloud servicetells the unit
  4. Matchserial found,install
The redirect comes from Fortinet's cloud service, so the site needs outbound Internet access.

Two practical points apply. The unit needs outbound Internet access to the cloud service, so a site that blocks it cannot use this route. And FortiManager has to be reachable by the unit on TCP 541, which for a manager inside your network means a public address or a published port, or a path through a VPN that the unit does not yet have. Which models and versions support FortiDeploy, what it must be bought with and how the portal presents it all vary, so use Fortinet's current guide before building a plan on it.

Production and lab

Diagram
Zero-touch in production and in a lab
Zero-touch in production and in a lab
TopicProductionLab
RouteDHCP option for sites on your own networks, FortiDeploy where you do not control the site's DHCPThe DHCP option, because a lab has its own DHCP server and no Internet redirection is needed
DevicesHardware units, modelled in bulk from a purchase listOne or two virtual units, modelled by hand
Manager addressA name that resolves from the site, and a published TCP 541 pathFMG1 at 10.0.1.31, which is an example address from the course lab
RolloutA pilot site first, then waves, with a rollback planOne unit, reset to factory defaults between attempts
If it failsA console visit, or a spare unit, and the change recordRevert the snapshot and try again
The address 10.0.1.31 is an example. A lab licence can limit what the unit does, as the FAQ explains.
Diagram
Zero-touch in production and in a lab
Zero-touch in production and in a lab

Production uses the DHCP option on networks that you control, or FortiDeploy where you do not control the site's DHCP, and models hardware units in bulk. A lab uses the DHCP option from its own server and models one or two virtual units by hand.

ProductionDHCP option or FortiDeployHardware modelled in bulk
LabDHCP option, own serverOne or two virtual units
The steps are the same. The lab needs no cloud redirection.

In a lab the DHCP server can be a FortiGate itself. The example below makes port2 of a lab FortiGate hand out addresses on an example lab network and send option 240 with the address of FMG1. A unit connected to that network, on factory defaults, takes an address and is told where the manager is.

config system dhcp server edit 1 set interface "port2" set default-gateway 10.0.9.1 set netmask 255.255.255.0 config ip-range edit 1 set start-ip 10.0.9.100 set end-ip 10.0.9.150 next end config options edit 1 set code 240 set type ip set ip "10.0.1.31" next end next end

Example lab configuration, written for a FortiOS release that uses these option keywords. The network 10.0.9.0/24 and the manager address are examples. Option 241 carries a name and uses a text type, so check the keyword for your release. Test with a client before relying on it.

Before trusting the lab scope, check its numbers. The table works through the example values and two typos that break it, using the example addresses from the block above.

Diagram
Checking the lab DHCP scope (computed)
Checking the lab DHCP scope (computed)
CheckResultValue
Addresses in the pool5110.0.9.100 to 10.0.9.150, both ends included
Pool inside the networkYesBoth ends are inside 10.0.9.0/24, which has 254 usable hosts
Gateway outside the poolYes10.0.9.1 is below the pool, so no unit is given it
Manager on the same networkNo10.0.1.31 is outside 10.0.9.0/24, so the unit reaches it through the gateway
Typo: pool end 10.0.10.150Outside the networkThe scope would be rejected or hand out unusable addresses
Typo: option address 10.0.1.13Not FMG1The unit calls the wrong address, and the device stays a model
Example addresses checked by a short script. A real scope also needs a lease time that suits how long units stay on the network.
7.6
The DHCP-option behaviour of the unit on first boot, the state it must be in and the FortiManager screens for a model device are release dependent. This lesson is written for FortiOS and FortiManager 7.6, and the 7.4 differences have not been reviewed.

Reset a tested unit before it ships

A unit that was configured at a bench keeps its settings, including a static WAN address or an old manager address. It will not behave as a new unit when it reaches the site. Reset it to factory defaults, or stage its management setting on purpose, and record which of the two you did.

When the unit does not appear

Diagram
Zero-touch faults
Zero-touch faults
What you seeLikely causeFirst check
The unit has no addressNo DHCP service, or the WAN interface is not set to DHCPLook at the WAN interface mode on the unit and at the DHCP server's leases
The unit has an address but no manager addressThe DHCP server is not sending the option, or it sends it on the wrong scopeCapture a DHCP exchange, or check the options on the scope that served the unit
The unit knows the manager but the device stays a modelTCP 541 is blocked, or the option holds the wrong addressTest the port from the site to the manager and compare the address
The unit connects but is not matchedThe serial number is wrong, or the device was modelled in a different ADOMCompare the serial number printed on the unit with the model device
The unit is matched but the install failsA template variable is empty, or an interface in the package does not exist on the unitRead the install log and the preview in FortiManager
A lab unit stays unregistered with a clean pathA trial or evaluation licence can change what the unit presents to the manager in some versionsRead the release notes, and try a licensed unit before changing the network
Examples of faults and the first check for each. The deeper checks are in the FortiManager troubleshooting lesson.
Diagram
Where a unit stops
Where a unit stops

A unit with no address has a DHCP problem. A unit with an address and no manager has an option problem. A unit that knows the manager but stays a model has a path or an address problem. A unit that connects and is not matched has a serial number problem.

  1. No addressDHCP service, WAN mode
  2. Address, no managerOption 240 or 241 on the scope
  3. Manager known, no connectionTCP 541, address in option
  4. Connected, not matchedSerial number, ADOM
Read the stopping point to find the layer. Each layer assumes the one before it works.

Learn more: Onboard a FortiGateOnboard FortiGates to FortiManagerTroubleshooting FortiManager

Test yourself on zero-touch onboarding

Predict · scenario 1

A branch FortiGate takes an address by DHCP but does not contact FortiManager. A DHCP capture shows no option 240. Where is the fault?

Predict · scenario 2

A unit connects to FortiManager but stays unmatched. The model device was created with a serial number copied from an old order. What do you do?

Predict · scenario 3

A unit was tested at a bench with a static WAN address and then shipped. At the site it does not use the DHCP option. Why?

Predict · scenario 4

A site blocks all outbound Internet traffic except to your own VPN. Which zero-touch route is least likely to work there?

Predict · scenario 5

The lab DHCP scope hands out 10.0.9.100 to 10.0.9.150. How many units can hold a lease at once?

Predict · scenario 6

In the lab example the manager address 10.0.1.31 is outside the 10.0.9.0/24 network. What does the unit need to reach it?

Predict · scenario 7

In the FortiDeploy route, what does the administrator do before the units ship?

Further reading in Fortinet's documentation

Links open the named page in Fortinet's documentation (checked 19 October 2026). RouteLearn is an independent educational resource, not affiliated with or endorsed by Fortinet. Fortinet, FortiGate, FortiOS, FortiManager and FortiGuard are trademarks of Fortinet, Inc. Example output on this page is illustrative.

FAQ

What is zero-touch provisioning for a FortiGate?
It is a way for a unit to find its manager by itself when it is powered on and connected. The unit takes an address by DHCP, learns where FortiManager is, connects, and is matched to a device that an administrator prepared in advance by serial number. The administrator then installs the prepared configuration. Nobody has to log in to the unit at the site.
What are DHCP options 240 and 241 for?
They carry the address of FortiManager to a unit that asks for an address by DHCP. Option 240 is used for an IP address and option 241 for a fully qualified name, as Fortinet describes the feature. Whether a given FortiOS release and model honours them, and in which state the unit must be, is release dependent, so confirm it in the documentation for your version.
Does the unit have to be on its factory configuration?
Zero-touch is meant for a unit that has not been configured, and a unit that already has its own central management settings or a static WAN address may not take the discovery path. If a unit was tested at a bench, reset it to factory defaults before it ships, or stage its central management setting instead of relying on DHCP.
Why might a trial or evaluation FortiGate-VM fail to connect to FortiManager?
In some versions, Fortinet and its community report that a unit on a trial or evaluation licence presents a certificate that FortiManager does not accept by default, so the management connection does not complete even when the network is correct. Whether this affects your versions is release dependent. If a lab unit stays unregistered while the path is clean, check the release notes and the licence terms before changing anything else, and consider a licensed unit for lab work that depends on FortiManager.
Is FortiDeploy the same as the DHCP-option route?
No. With FortiDeploy the unit is directed to its manager by Fortinet's cloud service, using the account that registered it, and it needs outbound Internet access to that service. With the DHCP-option route the local DHCP server supplies the manager address and no cloud service is involved in the redirect. Which models and versions support each, and what FortiDeploy requires you to buy, vary, so check Fortinet's current guides.