Fortinet Document Library

Version:


Table of Contents

FortiGate-VM on VMware ESXi

Resources

Upgrade Path Tool
  • Select version:
  • 6.0
6.0.0
Download PDF
Copy Link

High Availability

FortiGate-VM High Availability (HA) supports having two VMs in an HA cluster on either the same physical platform or different platforms. The primary consideration is that all of the interfaces involved, be able to communicate efficiently over TCP/IP connection sessions.

Heartbeat

There are two options for setting up the HA heartbeat: unicast and broadcast. Broadcast is the default HA heartbeat configuration. However, the broadcast configuration may not be ideal for FortGate VM because it may require special settings on the host. In most cases, the unicast configuration would be preferred.

The differences between the unicast heartbeat setup the broadcast heartbeat setup are:

  • The unicast method does not change the FortiGate-VM interface MAC addresses to virtual MAC addresses.
  • Unicast HA only supports two FortiGate VMs.
  • Unicast HA heartbeat interfaces must be connected to the same network and you must add IP addresses to these interfaces.

Unicast

The unicast settings are configured in the CLI of the FortiGate-VM. The syntax is as follows:

config system ha

set unicast-hb {enable/disable}

set unicast-hb-peerip {IP address of the peer's heartbeat interface}

end

Setting

Description

unicast-hb Enable or disable (the default) unicast HA heartbeat.
unicast-hb-peerip The IP address of the HA heartbeat interface of the other FortiGate VM in the HA cluster.

Broadcast

Broadcast HA heartbeat packets are non-TCP packets that use Ethertype values 0x8890, 0x8891, and 0x8890. These packets use automatically assigned link-local IPv4 addresses in the 169.254.0.x range for HA heartbeat interface IP addresses.

For FortiGate-VMs to support a broadcast HA heartbeat configuration, you must configure the virtual switches that connect heartbeat interfaces to operate in promiscuous mode and support MAC address spoofing.

In addition, you must configure the VM platform to allow MAC address spoofing for the FortiGate-VM data interfaces. This is required because in broadcast mode, the FGCP applies virtual MAC addresses to FortiGate data interfaces, and these virtual MAC addresses mean that matching interfaces of the FortiGate-VM instances in the cluster will have the same virtual MAC addresses.

To configure a virtual switch that connects heartbeat interfaces:

  1. In the vSphere client, select your VMware server, and then select the Configuration tab.
  2. In Hardware, select Networking.
  3. Select Properties of the virtual switch.
  4. In the Properties window, select vSwitch, and then select Edit.
  5. Select the Security tab, set Promiscuous Mode to Accept, and then select OK.
  6. Select Close.

You must also configure the virtual switches connected to other FortiGate-VM interfaces to allow MAC address changes and accept forged transmits. This is required because the FGCP sets virtual MAC addresses for all FortiGate-VM interfaces and the same interfaces on the different FortiGate-VM instances in the cluster will have the same virtual MAC addresses.

To configure a virtual switch that connects FortiGate-VM interfaces:

  1. In the vSphere client, select your VMware server, and then select the Configuration tab.
  2. In Hardware, select Networking.
  3. Select Properties of the virtual switch.
  4. Set MAC Address Changes to Accept.
  5. Set Forged Transmits to Accept.

Resources

High Availability

FortiGate-VM High Availability (HA) supports having two VMs in an HA cluster on either the same physical platform or different platforms. The primary consideration is that all of the interfaces involved, be able to communicate efficiently over TCP/IP connection sessions.

Heartbeat

There are two options for setting up the HA heartbeat: unicast and broadcast. Broadcast is the default HA heartbeat configuration. However, the broadcast configuration may not be ideal for FortGate VM because it may require special settings on the host. In most cases, the unicast configuration would be preferred.

The differences between the unicast heartbeat setup the broadcast heartbeat setup are:

  • The unicast method does not change the FortiGate-VM interface MAC addresses to virtual MAC addresses.
  • Unicast HA only supports two FortiGate VMs.
  • Unicast HA heartbeat interfaces must be connected to the same network and you must add IP addresses to these interfaces.

Unicast

The unicast settings are configured in the CLI of the FortiGate-VM. The syntax is as follows:

config system ha

set unicast-hb {enable/disable}

set unicast-hb-peerip {IP address of the peer's heartbeat interface}

end

Setting

Description

unicast-hb Enable or disable (the default) unicast HA heartbeat.
unicast-hb-peerip The IP address of the HA heartbeat interface of the other FortiGate VM in the HA cluster.

Broadcast

Broadcast HA heartbeat packets are non-TCP packets that use Ethertype values 0x8890, 0x8891, and 0x8890. These packets use automatically assigned link-local IPv4 addresses in the 169.254.0.x range for HA heartbeat interface IP addresses.

For FortiGate-VMs to support a broadcast HA heartbeat configuration, you must configure the virtual switches that connect heartbeat interfaces to operate in promiscuous mode and support MAC address spoofing.

In addition, you must configure the VM platform to allow MAC address spoofing for the FortiGate-VM data interfaces. This is required because in broadcast mode, the FGCP applies virtual MAC addresses to FortiGate data interfaces, and these virtual MAC addresses mean that matching interfaces of the FortiGate-VM instances in the cluster will have the same virtual MAC addresses.

To configure a virtual switch that connects heartbeat interfaces:

  1. In the vSphere client, select your VMware server, and then select the Configuration tab.
  2. In Hardware, select Networking.
  3. Select Properties of the virtual switch.
  4. In the Properties window, select vSwitch, and then select Edit.
  5. Select the Security tab, set Promiscuous Mode to Accept, and then select OK.
  6. Select Close.

You must also configure the virtual switches connected to other FortiGate-VM interfaces to allow MAC address changes and accept forged transmits. This is required because the FGCP sets virtual MAC addresses for all FortiGate-VM interfaces and the same interfaces on the different FortiGate-VM instances in the cluster will have the same virtual MAC addresses.

To configure a virtual switch that connects FortiGate-VM interfaces:

  1. In the vSphere client, select your VMware server, and then select the Configuration tab.
  2. In Hardware, select Networking.
  3. Select Properties of the virtual switch.
  4. Set MAC Address Changes to Accept.
  5. Set Forged Transmits to Accept.