Skip to main content
larsbollas
Staff
Staff
August 14, 2024

Technical Tip: FortiGate VRRP cluster with DHCP enabled

  • August 14, 2024
  • 1 reply
  • 1250 views

 

Description This article explains the workaround to process if the DHCP is enabled on both FortiGates in the VRRP cluster.
Scope FortiGate.
Solution

When FortiGate is on a VRRP cluster with another FortiGate (or other device that supports VRRP) it means the DHCP is enabled on both devices. During the event of VRRP failover, there is a chance that the standby VRRP device will lease an overlapping IPv4 address when the standby becomes active.

The ideal setup in a VRRP environment is to have a separate and dedicated DHCP server as layer2 devices can detect multiple DHCP servers in the same network since the DHCP on both devices is independent.

 

If there is no dedicated DHCP server, it is possible to split the DHCP server pool on both FortiGates to avoid leasing overlapping IPv4 addresses in the event of VRRP failover.

 

From GUI:

 

  • FortiGate A:

 

FortiGateA-dhcp.PNG

  • FortiGate-B:

 

FortiGateB-dhcp.PNG

 
  • From CLI:

 

FortiGate-A # show system dhcp server
    config system dhcp server
        edit 1
            set dns-service default
            set default-gateway 192.168.1.3 <----- VRRP gateway IP.
            set netmask 255.255.255.0
            set interface "port2"
                config ip-range
                    edit 1
                        set start-ip 192.168.1.2
                        set end-ip 192.168.1.127
                    next
                end
            next
        end


FortiGate-B # show system dhcp server
    config system dhcp server
        edit 1
            set dns-service default
            set default-gateway 192.168.1.3 <----- VRRP gateway IP.
            set netmask 255.255.255.0
            set interface "port2"
                config ip-range
                    edit 1
                        set start-ip 192.168.1.128
                        set end-ip 192.168.1.254
                    next
                end

 

    1 reply

    New Member
    May 1, 2026

    I am doing this and when running wireshark the other fortigate send dhcp NAKs trying to deny the ip address assigned by the first one, I think this can sometimes delay the ip addressing of a host, is that a expected behaivor?