Failover and "on expiry/release"
Jon Otterholm
jon.otterholm at ide.resurscentrum.se
Tue Jun 10 14:17:04 UTC 2008
Hi.
Having some problems in a failover setup. When I use a failover-config
the "on expiry" and "on release" events doesn't execute - why is that?
The "on commit" event does exec as expected.
Here is my config:
# Begin dhcpd.conf
default-lease-time 120;
option domain-name-servers XXX.XXX.XXX.XXX;
one-lease-per-client true;
max-lease-time 120;
ddns-update-style none;
authoritative;
log-facility local6;
failover peer "r6_2" {
primary; # declare this to be the primary server
address XX.XX.XX.2;
port 647;
peer address XX.XX.XX.3;
peer port 647;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
mclt 1800;
split 128;
}
subnet XX.XX.XX.0 netmask 255.255.252.0 {
option subnet-mask 255.255.252.0;
option routers XX.XX.XX.1;
pool {
failover peer "r6_2";
range XX.XX.XX.10 XX.XX.XX.254;
deny dynamic bootp clients;
allow unknown-clients;
}
}
on commit { log(info, concat("commit", " ", binary-to-ascii(10, 8, ".",
leased-address), " ", concat (
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 1,
1))),2),":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 2,
1))),2),":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 3,
1))),2),":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 4,
1))),2),":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 5,
1))),2),":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 6,
1))),2)
), " ", "'", (option agent.circuit-id), "'"));
}
on expiry { log(info, concat("expiry", " ", binary-to-ascii(10, 8, ".",
leased-address)));
}
on release { log(info, concat("expiry", " ", binary-to-ascii(10, 8, ".",
leased-address)));
}
//Jon
More information about the dhcp-users
mailing list