<div dir="ltr">Hi All,<div>I have recently started exploring kea-dhcp4, while I am checking for the kea-dhcp failover on chatGPT, It says that failover and HA are two different mechanisms for the kea and here is the sample example for kea-failover config as it provides </div><div># Sample config for failover</div><div>================ </div><div>{</div>    "Dhcp4": {<br>        "control-socket": {<br>            "socket-type": "unix",<br>            "socket-name": "/tmp/kea-dhcp4-ctrl.sock"<br>        },<br>        "lease-database": {<br>            "type": "memfile",<br>            "lfc-interval": 3600<br>        },<br>        "expired-leases-processing": {<br>            "reclaim-timer-wait-time": 10,<br>            "flush-reclaimed-timer-wait-time": 25,<br>            "hold-reclaimed-time": 3600,<br>            "max-reclaim-leases": 100,<br>            "max-reclaim-time": 250,<br>            "unwarned-reclaim-cycles": 10,<br>            "warned-reclaim-cycles": 20<br>        },<br>        "subnet4": [<br>            {<br>                "id": 1,<br>                "subnet": "<a href="http://192.0.2.0/24">192.0.2.0/24</a>",<br>                "pools": [<br>                    {<br>                        "pool": "192.0.2.100 - 192.0.2.200"<br>                    }<br>                ],<br>                "option-data": [<br>                    {<br>                        "name": "routers",<br>                        "data": "192.0.2.1"<br>                    }<br>                ]<br>            }<br>        ],<br>        "hosts-database": {<br>            "type": "memfile",<br>            "persist": true,<br>            "name": "hosts.json"<br>        },<br>        "dhcp-ddns": {<br>            "enable-updates": true,<br>            "qualifying-suffix": "<a href="http://example.com">example.com</a>",<br>            "reverse-ddns": true,<br>            "hostname-char-set": "[a-zA-Z0-9.-]"<br>        },<br>        "valid-lifetime": 300,<br>        "renew-timer": 150,<br>        "rebind-timer": 225,<br>        "interfaces-config": {<br>            "interfaces": ["eth0"]<br>        },<br>        "dhcp-disable": false,<br>        "option-def": [<br>            {<br>                "name": "domain-name-servers",<br>                "code": 6,<br>                "type": "ipv4-address",<br>                "array": true<br>            }<br>        ],<br>        "option-data": [<br>            {<br>                "name": "domain-name-servers",<br>                "data": "192.0.2.2, 192.0.2.3"<br>            }<br>        ],<br>        "failover": {<br>            "name": "dhcp-failover",<br>            "mode": "hot-standby",<br>            "peer-address": "192.0.2.101",<br>            "peer-port": 519,<br>            "max-response-delay": 60,<br>            "max-unacked-clients": 10000,<br>            "load-balance-max-percent": 50,<br>            "load-balance-max-secs": 3600,<br>            "auto-partner-down": true,<br>            "decline-time": 60,<br>            "down-time": 300,<br>            "startup-delay": 10,<br>            "trust-local-time": true,<br>            "heartbeat-interval": 10,<br>            "connect-timeout": 2<br>        }<br>    }<br>}<div>#sample example of HA </div><div>===================</div><div>{<br>    "Dhcp4": {<br>        "valid-lifetime": 3600,<br>        "renew-timer": 600,<br>        "rebind-timer": 1200,<br>        "subnet4": [<br>            {<br>                "subnet": "<a href="http://192.168.0.0/24">192.168.0.0/24</a>",<br>                "pools": [<br>                    {<br>                        "pool": "192.168.0.100 - 192.168.0.200"<br>                    }<br>                ],<br>                "option-data": [<br>                    {<br>                        "name": "domain-name-servers",<br>                        "data": "8.8.8.8, 8.8.4.4"<br>                    },<br>                    {<br>                        "name": "domain-name",<br>                        "data": "<a href="http://example.com">example.com</a>"<br>                    }<br>                ],<br>                "reservations": [<br>                    {<br>                        "hw-address": "00:11:22:33:44:55",<br>                        "ip-address": "192.168.0.10",<br>                        "hostname": "<a href="http://host1.example.com">host1.example.com</a>"<br>                    }<br>                ]<br>            }<br>        ],<br>        "interfaces-config": {<br>            "interfaces": ["eth0", "eth1"]<br>        },<br>        "ha": {<br>            "mode": "hot-standby",<br>            "ip-address": "192.168.0.2",<br>            "shared-secret": "my-secret",<br>            "peer-address": "192.168.0.3"<br>        }<br>    }<br>}<br></div><div><br></div><div>But when I search for the same in the official kea-doc. I don't see any such reference to failover directive or a key-word. Not sure if it is not supported from 2.2.0 version and later or I missed any other docs. Just curious to know if we really have such a difference, and if any one is familiar with this can you please share the reference for it.</div><div><br></div><div>Thanks in Advance </div><div>Kraishak</div><div><br></div></div>