Courseiva
NSE7Chapter 2 of 15Objective 2.1

FortiGate High Availability and Failover

Exam objective 2.1 focuses on configuring and troubleshooting FortiGate high availability clusters. This concept solves the problem of a single firewall failing and taking your entire office, branch or data centre offline. For NSE7, you must understand how two (or more) FortiGates work together as one unit so that traffic never stops, even when hardware breaks.

12 min read
Intermediate
Updated Jul 24, 2026
Editorial oversight: Johnson Ajibi· Security Systems Architect · MSc IT Security · IEEE Senior Member

A simple way to picture FortiGate High Availability and Failover

The Commercial Kitchen Line-Change Analogy

A head chef runs a busy restaurant kitchen. If that chef gets ill or their stove breaks, service stops and customers leave. To fix this, the restaurant hires a second chef with an identical stove, prep station and ingredient rack. Both chefs receive the exact same order slip simultaneously. They both cook the same dish at the same time, but only the head chef plates and serves the meal to the wait staff. The second chef stands by, listening on a headset for any sign of trouble — a burnt pan, a smoke alarm, the head chef collapsing. If the head chef fails, the second chef instantly moves into the serving position without missing a beat. The restaurant never stops serving. The second chef never makes independent decisions; they mirror the head chef's every move until they are needed. This is a FortiGate high-availability cluster. Two identical firewalls, called cluster members, run in lockstep. One is the primary unit, the other is the backup. They synchronise their configurations and session tables over a dedicated heartbeat link, just like the second chef hearing the same order. If the primary fails, the backup takes over the shared virtual IP addresses and active sessions without dropping a single packet. The kitchen keeps cooking. The network stays online.

How It Actually Works

High availability, or HA, is a way to make a network service — in this case, a firewall — always available even when one physical device fails. Think of it as a safety net. Without HA, if your only firewall crashes, every computer, phone and server behind it loses internet access, internal communication and security protection. A single point of failure like that is unacceptable for any business that cannot afford downtime.

A FortiGate HA cluster is a group of two or more FortiGate firewalls that operate as a single logical unit. The cluster has a primary unit (sometimes called the active or master unit) and one or more backup units (often called passive or subordinate units). The primary unit handles all live traffic — it inspects packets, enforces security policies, performs NAT and logs activity. The backup unit sits ready, doing nothing with live traffic, but constantly receiving a copy of the primary's configuration and connection information so it can take over instantly if needed.

The heartbeat link is the dedicated connection between the cluster members. It is a physical cable (often an Ethernet cable) connecting two designated HA interfaces on each FortiGate. Over this link, the units exchange keepalive messages every few hundred milliseconds to confirm the other unit is still alive. If the primary stops sending these heartbeats, the backup assumes the primary has failed and begins acting as the new primary. The heartbeat link also carries configuration synchronisation data, so both units always have the same settings.

Session synchronisation is the process by which the primary shares the state of every active connection with the backup. For example, if a user is streaming a video and the firewall has already inspected and allowed that TCP connection, the backup learns about that session. If the primary fails mid-stream, the backup already knows about that connection and continues forwarding the video packets without asking the user to reconnect. Without session synchronisation, every existing connection would drop, and users would have to re-establish them, causing noticeable interruption.

Failover is the event when the backup takes over because the primary has failed. Failover is triggered by specific conditions, such as:

Loss of heartbeat on all configured HA interfaces

Failure of monitored ports (physical interfaces that the cluster watches for link status)

Manual administration action to force a failover

Device crash or power loss

During failover, the backup unit assumes the shared virtual IP addresses — the IP addresses that hosts on the network use as their default gateway. Because those IPs move from the primary to the backup, client devices do not need to change any settings. They keep sending traffic to the same gateway IP, and the backup now responds.

There are two main HA modes on FortiGate: active-passive (A-P) and active-active (A-A). In active-passive mode, one unit handles all traffic while the other sits idle. This mode is simpler and recommended for most deployments because it avoids complexity around asymmetric routing. In active-active mode, both units handle traffic simultaneously. This increases throughput but requires careful design to prevent traffic from arriving at one firewall and leaving through the other, which can break stateful inspection.

The cluster uses a priority system to decide which unit becomes primary. Each FortiGate has a configurable priority value (higher number = more likely to be primary). If priorities are equal, the unit with the lower serial number wins. Once a primary is elected, it remains primary unless it fails or the administrator initiates a manual failover.

Configuration synchronisation ensures that you only make changes on the primary unit. The primary then pushes those changes to all backup units automatically. This includes firewall policies, VPN settings, routing tables, DHCP server configs and NAT rules. You do not need to log into each firewall separately. This consistency is critical: if one unit had different rules, traffic might behave differently after a failover.

Troubleshooting HA involves checking the HA status dashboard, verifying heartbeat link connectivity, reviewing logs for failover events and confirming that session synchronisation is working. Common problems include mismatched firmware versions, incorrect HA interface configuration, blocked heartbeat traffic or incompatible HA modes between units.

For NSE7, you need to know that HA clusters require identical hardware models, the same FortiOS version and consistent licensing. Mixing models or firmware versions will prevent cluster formation or cause unpredictable behaviour.

Flow diagram showing client traffic arriving at the virtual gateway IP, with the primary FortiGate handling all traffic while synchronising sessions to the backup over the heartbeat link.

Walk-Through

1

Hardware verification and cabling

Check that both FortiGates are the same hardware model and running the same FortiOS firmware version. Connect a dedicated Ethernet cable between the designated HA interfaces (e.g., port1 on both units). Do not use a switch; a direct cable is best.

2

Enable HA on the primary unit

Log into the FortiGate that will serve as primary. Go to System > HA. Set the mode to Active-Passive. Set a high priority value (e.g., 200) for the primary and a lower value (e.g., 100) for the backup. Choose the HA interface (the one connected by the direct cable). Enable session-pickup and configuration synchronisation.

3

Connect and configure the backup unit

On the backup unit, perform a factory reset or at least clear its existing configuration. Connect to it and configure the same HA settings, but with a lower priority. Do not attempt to configure policies or interfaces beforehand — the backup will receive everything from the primary after the cluster forms.

4

Form the cluster and verify synchronisation

After saving the HA configuration on both units, they will reboot and attempt to form a cluster. Use the command 'get system ha status' on either unit. You should see both listed as members with one in 'primary' role and the other in 'backup'. Verify that configuration synchronisation has completed by checking the backup unit for the same policies and interface IPs.

5

Test failover

Simulate a failure by disconnecting the primary's monitored interface or powering it off. Observe that the backup becomes primary within seconds and continues forwarding traffic without disruption. Use a continuous ping to a remote host to confirm there is no interruption. Reconnect the original primary and verify it rejoins as backup.

6

Monitored interface configuration

Decide which physical interfaces are critical to network connectivity (e.g., WAN and LAN). Under System > HA > Monitored Interfaces, add those interfaces. If any monitored interface loses link, the cluster will treat it as a failure and trigger failover. Do not monitor every interface to avoid false triggers.

What This Looks Like on the Job

An IT professional manages network security for a company with 500 employees spread across a headquarters and two remote offices. One day, the primary FortiGate at headquarters starts emitting a warning beep — the power supply is failing. The IT team needs to replace it without taking the whole company offline.

Because the team configured an active-passive HA cluster months ago, two FortiGates sit in the rack connected by a short heartbeat cable. Both run identical firmware and share the same configuration. The backup FortiGate has been silently synchronising sessions and configuration from the primary.

At 2:00 PM, the IT engineer opens the FortiGate GUI, navigates to the HA dashboard and confirms the cluster status shows both units as 'members' with the primary handling traffic. They verify that session synchronisation counters are increasing, which confirms live sessions are being copied to the backup. They also check that the monitored ports — WAN1, LAN1 and DMZ — all show green status on both units.

To prepare for the hardware replacement, the engineer performs a controlled failover. They go to the HA settings, find the 'Override' option and set it on the backup unit temporarily, forcing it to become primary. Within a second, all traffic shifts to the backup. The engineer checks that remote office VPN tunnels have re-established and that employees can browse the web, access internal servers and send email. Everything works.

Now the original primary is safely powered down and removed. The engineer installs the replacement FortiGate, connects the heartbeat cable and power, and watches the HA dashboard. The new unit appears as a 'backup' member after configuration synchronisation completes. The engineer then removes the override so the original priority settings apply. If the new unit has a higher priority, it will become primary again; if not, the current primary stays.

The team documents the exact serial numbers, firmware versions and HA configuration parameters for future troubleshooting. They also set up SNMP alerts so the network monitoring system sends a notification if a failover occurs unexpectedly at 3 AM.

In a real-world break-fix scenario, without HA, the IT team would need to:

Announce a scheduled maintenance window to all employees

Shut down the firewall, causing total network outage

Physically swap the hardware and restore the configuration from backup

Bring the firewall up and test connectivity, potentially losing hours of productivity

With HA, there is no downtime, no announcements and no loss of active connections. The business continues operating as if nothing happened. The IT professional's actual job in this scenario is proactive planning: choosing HA mode, sizing the heartbeat link correctly, setting up monitored interfaces and testing failover regularly.

How NSE7 Actually Tests This

The NSE7 exam tests FortiGate HA in depth. You must understand both theory and configuration steps. Expect multiple-choice questions that present a scenario — a broken cluster, an unexpected failover or a configuration mismatch — and require you to identify the root cause or correct remedy.

Trap patterns the exam loves:

Heartbeat interface misconfiguration: The exam presents a cluster that formed but fails over randomly. The trick is that the heartbeat link is connected to a switch, not a direct cross-over cable, and other traffic uses the same switch, causing heartbeat packets to drop under load. Correct answer: use a dedicated direct cable or a dedicated VLAN with higher priority.

Priority and override confusion: Questions describe a scenario where a new FortiGate with higher priority is added, but it does not become primary. The trap: if the existing primary has an override enabled, it stays primary regardless of priority. The correct answer requires you to check the override setting.

Session synchronisation failure: A failover occurs, but all TCP sessions drop. The exam expects you to recognise that session synchronisation was not configured, or that the 'session-pickup' setting was disabled. Without it, sessions are not copied to the backup.

Firmware mismatch: Two FortiGates with the same model but different FortiOS versions cannot form a cluster. The exam tests this by offering plausible-sounding solutions like 'update the backup unit first' which is wrong — both must match exactly before the cluster is formed.

HA modes: You must be able to explain the difference between active-passive and active-active, including when to use each. Active-passive is safer and simpler; active-active offers higher throughput but risks asymmetric routing. The exam may ask which mode to recommend for a firewall in transparent mode or with NAT policies.

Monitored interfaces: If a monitored port goes down, the cluster treats that as a failure and triggers failover. The exam tests whether you understand that not all interfaces need to be monitored — only those that provide critical connectivity. Monitoring every interface can cause unnecessary failovers.

Specific commands and GUI paths to memorise:

'get system ha status' shows the current cluster state, priority and role of each unit.

'diagnose sys ha status' provides detailed session synchronisation and heartbeat statistics.

The HA configuration is under 'System > HA' in the GUI.

'config system ha' in the CLI.

Key exam topics:

Understand the three types of HA failover triggers: heartbeat failure, monitored interface failure, and manual override.

Know that session synchronisation requires the 'session-pickup' setting enabled on both units.

Remember that the heartbeat link must be a dedicated layer-2 connection, ideally a direct cable, not routed.

Know that HA clusters require identical hardware models and firmware versions.

Understand that virtual MAC addresses are used to prevent ARP caching issues during failover.

Be able to interpret 'diagnose sys ha dump' output to find why a cluster is not forming.

The exam will sometimes include a diagram of a network with two FortiGates, a switch, and a router, and ask where the heartbeat cable should connect. The correct answer is: directly between the two FortiGates, not through the switch.

Key Takeaways

An HA cluster uses two or more FortiGates, but only the primary handles live traffic in active-passive mode, while the backup stays synchronised and ready to take over.

Session synchronisation copies active connection states from primary to backup so that failover does not drop existing TCP sessions.

The heartbeat link must be a direct layer-2 connection, typically a dedicated Ethernet cable, to ensure fast and reliable keepalive detection.

A FortiGate HA cluster requires identical hardware models and matching FortiOS firmware versions to form and operate correctly.

Failover can be triggered by heartbeat loss, monitored interface down condition, or manual administrator override.

Configuration synchronisation means you only configure the primary unit; all changes are automatically pushed to backup units.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Active-Passive HA

Only the primary unit processes traffic; backup is idle

Simpler to configure and troubleshoot

Recommended for most deployments, especially with stateful inspection

Active-Active HA

Both units process traffic simultaneously

Higher potential throughput but complex to configure

Requires careful design to avoid asymmetric routing issues

Session-Pickup Enabled

Active session states are synchronised to backup in real time

Failover happens transparently to users

Uses additional CPU and bandwidth on heartbeat link

Session-Pickup Disabled

No session states are copied to backup

All existing TCP connections drop during failover

Simpler configuration and lower overhead during normal operation

Direct Heartbeat Cable

Lowest latency and highest reliability

No risk of switch failure disrupting heartbeat

Simple cabling — just one Ethernet cable between units

Heartbeat Through Switch

Heartbeat shares network infrastructure with other traffic

Switch failure causes loss of both heartbeat and connectivity

Requires dedicated VLAN to avoid interference, adding complexity

Monitored Interfaces

If a monitored interface loses link, failover is triggered

Useful for detecting upstream path failures

Must be configured selectively to avoid false triggers

Unmonitored Interfaces

Interface link status is ignored for failover decisions

Failover only occurs on heartbeat loss or crash

Simpler to set up but risk of traffic blackholing if interface fails

Watch Out for These

Mistake

Both units in an active-passive HA cluster handle traffic simultaneously, just at lower speed.

Correct

In active-passive mode, only the primary unit handles traffic. The backup does nothing with live traffic until failover occurs.

People confuse active-passive with load balancing. Active-passive is about redundancy, not performance. The backup is idle to guarantee instant takeover without resource contention.

Mistake

HA clusters automatically load balance outgoing traffic across both FortiGates.

Correct

HA clusters in active-passive mode do not load balance. Even with session synchronisation, all traffic goes through one unit. Active-active mode can balance but is much harder to configure correctly.

Marketing materials sometimes highlight HA as a way to increase capacity, but the primary goal is availability, not performance scaling. Beginners assume more hardware means more throughput.

Mistake

If the primary fails, all existing connections drop and users must log in again.

Correct

With session synchronisation properly configured, existing connections survive failover without interruption. Users do not experience any disruption.

Beginners assume a firewall reboot kills all connections, and they forget that session state is synchronised to the backup in real time.

Mistake

You can configure HA between any two FortiGate models as long as the firmware version matches.

Correct

HA clusters require identical hardware models and the same FortiOS firmware version. Mixing models is not supported and will prevent cluster formation.

People see that both run FortiOS and assume any model works together. But the hardware architecture, memory and processing capabilities differ, so synchronisation fails.

Mistake

The heartbeat link can be a regular Ethernet cable through a switch with no special configuration.

Correct

The heartbeat link should be a direct cable between the two HA interfaces, or at minimum a dedicated VLAN on a switch with no other traffic. Sharing the heartbeat link with production traffic can cause instability and false failovers.

It seems convenient to use an existing switch, but heartbeat packets are time-sensitive and can be delayed by heavy traffic, causing the backup to incorrectly assume the primary is dead.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

Can I use different FortiGate models in the same HA cluster?

No. FortiGate HA clusters require identical hardware models. Mixing models like a 100F and 200F is not supported and will prevent cluster formation or cause instability.

What happens to the cluster if the heartbeat cable breaks?

Both units will detect loss of heartbeat and each will try to become the primary, causing a split-brain scenario. This can result in duplicate IP addresses on the network and traffic disruption. Always monitor the heartbeat link and use redundant heartbeat interfaces if possible.

Do I need to configure the same policies on both FortiGates?

No, configuration synchronisation handles that automatically. You configure policies only on the primary unit. The primary pushes the configuration to all backup units. Never configure the backup directly for firewall policies.

Will my users notice a failover?

If session synchronisation is properly configured, users should not notice any disruption to existing connections. The failover takes less than a second. However, if session-pickup is disabled, all TCP sessions drop and users may need to refresh or reconnect.

How many FortiGates can I put in an HA cluster?

FortiGate supports up to two units in an HA cluster for most models. Some high-end models support up to four units. Check the specific model's datasheet for the supported cluster size.

What is the difference between HA and load balancing?

HA focuses on availability — keeping the network up if one device fails. Load balancing distributes traffic across multiple devices to increase performance. FortiGate HA in active-passive mode does not load balance; only one unit handles traffic. Active-active mode can provide both, but is more complex.

Terms Worth Knowing

Keep going

You've finished FortiGate High Availability and Failover. Continue through the NSE7 study guide to build a complete picture of the exam.

Done with this chapter?