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.
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.
- Stagedmanager addressset at a bench
- DHCP option240 or 241 fromthe site's DHCP
- FortiDeploycloud serviceredirects the unit
| Route | How the unit learns the manager | Prepared beforehand | What the site must provide |
|---|---|---|---|
| Staged at a bench | The central management setting is already in its configuration | Each unit is configured, tested and reset to a known state, then shipped | Power, an uplink and an address the unit can use |
| DHCP option 240 or 241 | The site's DHCP server hands it the FortiManager address or name | A model device in FortiManager for each serial number, with its templates and package | A DHCP service that supplies the option, and a path to FortiManager on TCP 541 |
| FortiDeploy | Fortinet's cloud service tells it which manager to use | The units registered to the account and pointed at a manager in the portal | Outbound Internet access to the service, and a path to FortiManager on TCP 541 |
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.
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.
- Modelserial,model, ADOM
- Assigntemplates,package
- OptionDHCP 240or 241
- Power onaddress,then manager
- Matchserial numberfound
- Installconfigurationpushed
| Step | What happens | Evidence | What can stop it |
|---|---|---|---|
| 1 Model | An administrator adds a model device in FortiManager with the serial number, model and firmware, in the right ADOM | The device shows in Device Manager as a model that has not yet connected | A mistyped serial number, or the wrong ADOM or firmware version |
| 2 Assign | The device is given its system template and policy package, so they can be installed when it arrives | The device shows the template and package assigned | A template with an empty variable, or a policy package with a missing mapping |
| 3 Option | The DHCP server for the site's WAN network offers option 240 with the FortiManager address, or 241 with its name | A DHCP client at that site receives the option | A DHCP server that cannot send custom options, or an option left off the right scope |
| 4 Power on | The unit boots on factory defaults, takes an address by DHCP and reads the option | The unit shows an address and the manager it learned | No DHCP, a WAN interface that is not set to DHCP, or a unit that was already configured |
| 5 Match | The unit opens the management connection on TCP 541 and FortiManager matches its serial number to the model device | The device changes from a model to a connected device | A blocked port, a wrong address in the option, or a serial number that is not modelled |
| 6 Install | FortiManager installs the assigned configuration, or an administrator starts the install, and the unit becomes managed | Status shows connected, and the configuration is in sync after the install | An install that is rolled back because of an object or interface problem |
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.
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.
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.
- Registerunits to theaccount
- Pointchoose themanager
- Redirectcloud servicetells the unit
- Matchserial found,install
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
| Topic | Production | Lab |
|---|---|---|
| Route | DHCP option for sites on your own networks, FortiDeploy where you do not control the site's DHCP | The DHCP option, because a lab has its own DHCP server and no Internet redirection is needed |
| Devices | Hardware units, modelled in bulk from a purchase list | One or two virtual units, modelled by hand |
| Manager address | A name that resolves from the site, and a published TCP 541 path | FMG1 at 10.0.1.31, which is an example address from the course lab |
| Rollout | A pilot site first, then waves, with a rollback plan | One unit, reset to factory defaults between attempts |
| If it fails | A console visit, or a spare unit, and the change record | Revert the snapshot and try again |
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.
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
endExample 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.
| Check | Result | Value |
|---|---|---|
| Addresses in the pool | 51 | 10.0.9.100 to 10.0.9.150, both ends included |
| Pool inside the network | Yes | Both ends are inside 10.0.9.0/24, which has 254 usable hosts |
| Gateway outside the pool | Yes | 10.0.9.1 is below the pool, so no unit is given it |
| Manager on the same network | No | 10.0.1.31 is outside 10.0.9.0/24, so the unit reaches it through the gateway |
| Typo: pool end 10.0.10.150 | Outside the network | The scope would be rejected or hand out unusable addresses |
| Typo: option address 10.0.1.13 | Not FMG1 | The unit calls the wrong address, and the device stays a model |
Reset a tested unit before it ships
When the unit does not appear
| What you see | Likely cause | First check |
|---|---|---|
| The unit has no address | No DHCP service, or the WAN interface is not set to DHCP | Look at the WAN interface mode on the unit and at the DHCP server's leases |
| The unit has an address but no manager address | The DHCP server is not sending the option, or it sends it on the wrong scope | Capture a DHCP exchange, or check the options on the scope that served the unit |
| The unit knows the manager but the device stays a model | TCP 541 is blocked, or the option holds the wrong address | Test the port from the site to the manager and compare the address |
| The unit connects but is not matched | The serial number is wrong, or the device was modelled in a different ADOM | Compare the serial number printed on the unit with the model device |
| The unit is matched but the install fails | A template variable is empty, or an interface in the package does not exist on the unit | Read the install log and the preview in FortiManager |
| A lab unit stays unregistered with a clean path | A trial or evaluation licence can change what the unit presents to the manager in some versions | Read the release notes, and try a licensed unit before changing the network |
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.
- No addressDHCP service, WAN mode
- Address, no managerOption 240 or 241 on the scope
- Manager known, no connectionTCP 541, address in option
- Connected, not matchedSerial number, ADOM
Learn more: Onboard a FortiGateOnboard FortiGates to FortiManagerTroubleshooting FortiManager
Test yourself on zero-touch onboarding
A branch FortiGate takes an address by DHCP but does not contact FortiManager. A DHCP capture shows no option 240. Where is the fault?
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?
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?
A site blocks all outbound Internet traffic except to your own VPN. Which zero-touch route is least likely to work there?
The lab DHCP scope hands out 10.0.9.100 to 10.0.9.150. How many units can hold a lease at once?
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?
In the FortiDeploy route, what does the administrator do before the units ship?