1
High availability / DHCPD is stuck in recover state
« on: January 28, 2021, 02:31:34 pm »
Hello people,
I have CARP enabled in my lab setup. It works just fine except for DHCP server on LAN - it just won't start. OPNsense version is 20.7.8. The nodes are configured as follows:
Primary: 192.168.1.10/24
Secondary: 192.168.1.20/24
Virtual IP: 192.168.1.1/24
DHCP scope: 192.168.1.100-199
Primary dhcpd.conf :
Secondary dhcpd.conf:
After starting dhcpd service, both nodes enter recover state. Log entries say
DHCPv4/Leases tab on both nodes says
Please help. Thanks!
I have CARP enabled in my lab setup. It works just fine except for DHCP server on LAN - it just won't start. OPNsense version is 20.7.8. The nodes are configured as follows:
Primary: 192.168.1.10/24
Secondary: 192.168.1.20/24
Virtual IP: 192.168.1.1/24
DHCP scope: 192.168.1.100-199
Primary dhcpd.conf :
Code: [Select]
option domain-name "localdomain";
option ldap-server code 95 = text;
option arch code 93 = unsigned integer 16; # RFC4578
option pac-webui code 252 = text;
default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
failover peer "dhcp_lan" {
primary;
address 192.168.1.10;
port 519;
peer address 192.168.1.20;
peer port 520;
max-response-delay 10;
max-unacked-updates 10;
split 128;
mclt 600;
load balance max seconds 3;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
pool {
deny dynamic bootp clients;
failover peer "dhcp_lan";
range 192.168.1.100 192.168.1.199;
}
option routers 192.168.1.1;
}
Secondary dhcpd.conf:
Code: [Select]
option domain-name "localdomain";
option ldap-server code 95 = text;
option arch code 93 = unsigned integer 16; # RFC4578
option pac-webui code 252 = text;
default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
failover peer "dhcp_lan" {
secondary;
address 192.168.1.20;
port 520;
peer address 192.168.1.10;
peer port 519;
max-response-delay 10;
max-unacked-updates 10;
load balance max seconds 3;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
pool {
deny dynamic bootp clients;
failover peer "dhcp_lan";
range 192.168.1.100 192.168.1.199;
}
option routers 192.168.1.1;
}
After starting dhcpd service, both nodes enter recover state. Log entries say
Code: [Select]
dhcpd[99045] failover peer dhcp_lan: I move from startup to recover
DHCPv4/Leases tab on both nodes says
Code: [Select]
My State: recover
Peer State: unknown-state
Please help. Thanks!