DHCP Server in HA setup

Started by tempes2k, January 24, 2025, 12:51:30 PM

Previous topic - Next topic
Hi,

I have running a HA Setup with two OPNsense Firewalls.

-- Problem:--

When the Second Firewall (Backup Firewall) becomes Master. For example after a simple reboot of Master Firewall(first firewall).
Then the Second Firwall Enables the DHCP Service (starts DHCP service).

In the meantime Firewall1 boots up and has also the DHCPv4 Service enabled.

The issue is that we're having TWO Dhcp servers running.
Is this an expected behaviour ? I expected that only the "Master-Firewall" should have DHCPv4 Service running. or not?



--
Firewall1
Interface IP:     192.168.80.249
Failover peer IP: 192.168.40.248

Firewall2:
Interface IP:     192.168.80.248
Failover peer IP: 192.168.80.248

DHCPv4: Enabled on both
DHCPv4: services started on FW1 ,  stopped: on FW2

---

Who can help on that ?
Who has a working Setup running ?

Thanks


I don't know if this works with KEA DHCP, but at least it works with ISC if the server are configured properly.

In the ISC settings, if stated the "Failover peer IP", the DHCP server should communicate with the other node and do load-balancing. With the "Failover split" option you can additionally change the balance.