Example FortiGate-6000 HA heartbeat switch configuration
The switch that you use for connecting HA heartbeat interfaces does not have to support IEEE 802.1ad (also known as Q-in-Q, double-tagging), but the switch should be able to forward the double-tagged frames. Fortinet recommends avoiding switches that strip out the inner tag. FortiSwitch D and E series can correctly forward double-tagged frames.
This configuration is not required for FortiGate-6000 HA configurations if you have set up direct connections between the HA heartbeat interfaces. |
This example shows how to configure a FortiGate-6000 to use different VLAN IDs for the HA1 and HA2 HA heartbeat interfaces and then how to configure two ports on a Cisco switch to allow HA heartbeat packets.
This example sets the native VLAN ID for both switch ports to 777. You can use any VLAN ID as the native VLAN ID as long as the native VLAN ID is not the same as the allowed VLAN ID. |
-
On both FortiGate-6000s in the HA configuration, enter the following command to use different VLAN IDs for the HA1 and HA2 interfaces. The command sets the HA1 VLAN ID to 4091 and the HA2 VLAN ID to 4092:
config system ha
set hbdev "ha1" 50 "ha2" 100
set hbdev-vlan-id 4091
set hbdev-second-vlan-id 4092
end
-
Use the
get system ha status
command to confirm the VLAN IDs.get system ha status ... HBDEV stats: F6KF51T018900026(updated 4 seconds ago): ha1: physical/10000full, up, rx-bytes/packets/dropped/errors=54995955/230020/0/0, tx=63988049/225267/0/0, vlan-id=4091 ha2: physical/10000full, up, rx-bytes/packets/dropped/errors=54995955/230020/0/0, tx=63988021/225267/0/0, vlan-id=4092 F6KF51T018900022(updated 3 seconds ago): ha1: physical/10000full, up, rx-bytes/packets/dropped/errors=61237440/230023/0/0, tx=57746989/225271/0/0, vlan-id=4091 ha2: physical/10000full, up, rx-bytes/packets/dropped/errors=61238907/230023/0/0, tx=57746989/225271/0/0, vlan-id=4092 ...
-
Configure the Cisco switch port that connects the HA1 interfaces to allow packets with a VLAN ID of 4091:
interface <name>
switchport mode trunk
switchport trunk native vlan 777
switchport trunk allowed vlan 4091
-
Configure the Cisco switch port that connects the HA2 interfaces to allow packets with a VLAN ID of 4092:
interface <name>
switchport mode trunk
switchport trunk native vlan 777
switchport trunk allowed vlan 4092