Fortinet Document Library

Version:

Version:

Version:


Table of Contents

Cookbook

Download PDF
Copy Link

Configuring the backup FortiGate for HA

  1. Ensure the backup FortiGate is running the same version firmware as the primary FortiGate.
  2. If this is a new FortiGate that has never been used, you can skip this step.

    Reset the backup FortiGate to factory default settings using the following CLI command:

    execute factoryreset

    Note

    If the FortiGates in the cluster will run FortiOS Carrier, apply the FortiOS Carrier license before you apply other licenses and before you configure the cluster. When you apply the FortiOS Carrier license, the FortiGate resets its configuration to factory defaults, requiring you to repeat steps performed before applying the license.

  3. On the backup FortiGate, go to System > Settings and change the Host name to identify this as the backup FortiGate.

  4. Go to System > HA and duplicate the HA configuration of the primary FortiGate (except for Device priority).

    Set Mode to Active-Passive.

    Set the Device Priority to a lower value than the default to ensure this FortiGate is always the backup FortiGate.

    Set the same Group name and Password as the primary FortiGate.

    Check that the same two Heartbeat interfaces (port3 and port4) are selected and the Heartbeat Interface Priority for each is set to 50.

  5. If you changed the cluster group ID of the primary FortiGate, change the cluster group ID for the backup FortiGate to match it, using this CLI command:

    config system ha

    set group-id 25

    end

When you save the HA configuration of the backup FortiGate, if the heartbeat interfaces are connected, the FortiGates will find each other and form an HA cluster. Network traffic might be disrupted when the cluster negotiates the connection.

Configuring the backup FortiGate for HA

  1. Ensure the backup FortiGate is running the same version firmware as the primary FortiGate.
  2. If this is a new FortiGate that has never been used, you can skip this step.

    Reset the backup FortiGate to factory default settings using the following CLI command:

    execute factoryreset

    Note

    If the FortiGates in the cluster will run FortiOS Carrier, apply the FortiOS Carrier license before you apply other licenses and before you configure the cluster. When you apply the FortiOS Carrier license, the FortiGate resets its configuration to factory defaults, requiring you to repeat steps performed before applying the license.

  3. On the backup FortiGate, go to System > Settings and change the Host name to identify this as the backup FortiGate.

  4. Go to System > HA and duplicate the HA configuration of the primary FortiGate (except for Device priority).

    Set Mode to Active-Passive.

    Set the Device Priority to a lower value than the default to ensure this FortiGate is always the backup FortiGate.

    Set the same Group name and Password as the primary FortiGate.

    Check that the same two Heartbeat interfaces (port3 and port4) are selected and the Heartbeat Interface Priority for each is set to 50.

  5. If you changed the cluster group ID of the primary FortiGate, change the cluster group ID for the backup FortiGate to match it, using this CLI command:

    config system ha

    set group-id 25

    end

When you save the HA configuration of the backup FortiGate, if the heartbeat interfaces are connected, the FortiGates will find each other and form an HA cluster. Network traffic might be disrupted when the cluster negotiates the connection.