server1:
failover peer "dhcp-failover" {
primary;
address 10.10.40.21;
port 647;
peer address 10.10.40.22;
peer port 647;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
mclt 1800;
split 128;
}
group {
if exists agent.circuit-id
{
log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to interface ", binary-to-ascii(10, 8, "/", suffix ( option agent.cir
cuit-id, 2)), " , VLAN ", binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2))));
}
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
ddns-updates off;
default-lease-time 60;
max-lease-time 120;
}
option subnet-mask 255.255.255.0;
ddns-rev-domainname "128-191.21.172.in-addr.arpa.";
subnet 172.21.166.0 netmask 255.255.255.0 {
option routers 172.21.166.1;
pool {
failover peer "dhcp-failover";
deny dynamic bootp clients;
allow unknown-clients;
default-lease-time 300;
max-lease-time 600;
range 172.21.166.5 172.21.166.254;
}
}
}
server2:
failover peer "dhcp-failover" {
secondary;
address 10.10.40.22;
port 647;
peer address 10.10.40.21;
peer port 647;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
}
group {
if exists agent.circuit-id
{
log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to interface ", binary-to-ascii(10, 8, "/", suffix ( option agent.cir
cuit-id, 2)), " , VLAN ", binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2))));
}
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
ddns-updates off;
default-lease-time 60;
max-lease-time 120;
}
option subnet-mask 255.255.255.0;
ddns-rev-domainname "128-191.21.172.in-addr.arpa.";
subnet 172.21.166.0 netmask 255.255.255.0 {
option routers 172.21.166.1;
pool {
failover peer "dhcp-failover";
deny dynamic bootp clients;
allow unknown-clients;
default-lease-time 300;
max-lease-time 600;
range 172.21.166.5 172.21.166.254;
}
}
}