For each Kea DHCP server, it's possible to add one DHCPv4 and one DHCPv6 failover relationship. Micetro supports two failover server types in a relationship: one primary and one secondary. Therefore, creating failover relationships with backup servers is not supported.
Before adding a failover relationship, you need to enable failover by having two Hooks Libraries on the file system. For more information, refer to High Availability Hooks Library.
You can add a failover relationship either in the Web Application or through the API.
Adding a Kea failover relationship in Micetro
To create a failover relationship in Micetro:
- On the Admin page, select the Service management tab.
- In the left sidebar, under DHCP services, select Kea.
- Select the Kea DHCP server housing the scope for which you want to establish failover configuration, and then use the Action menu or Row … menu to select Manage failover.
- In the dialog, select + Add relationship.
- Enter the necessary information in the provided form:
- Failover name: Specify the name of the failover peer.
- Failover mode: Select the DHCP failover mode to use, such as load balance or hot standby.
- Partner server: Select the partner server for the failover configuration.
- Specify the DHCP version by selecting either DHCPv4 or DHCPv6. Only required if you are using a server with the Kea Control Agent.
- Use dedicated HTTP endpoints for HA peer-to-peer
communication: Check the box to enable the use of
dedicated HTTP endpoints for peer communication. If enabled, Micetro automatically
selects server port + 1 as the port for the peer-to-peer
communication when creating a failover relationship. Since the default
port is
8000, this means the default peer-to-peer port is8001.
Note: For servers using HTTPS, meaning they require TLS certificates, Micetro assumes that the same certificates are used for all servers using the same agent. If your setup requires a different configuration, you will need to manually edit thehigh-availabilitysections in the server configuration.Then select Next.
- Review the failover relationship configuration in the Summary step, and then select Add.
- Select Save.
Adding a failover relationship through API
To create a failover relationship through the API:
The API supports the creation of a failover relationship with the
AddDHCPFailoverRelationship command, which uses the following
parameters:
- Name: The name of the DHCP failover relationship to be created.
- PrimaryServer: The name of the primary DHCP server as it appears in Micetro.
- SecondaryServer: The name of the secondary DHCP server as it appears in Micetro.
- FailoverMode: The DHCP failover mode to use.
- ServiceType: DHCPv4 or DHCPv6. Only required if you are using a server with the Kea Control Agent.