The classes should not have any affect on this issue. Your failover is the problem here. Try adding the split line to the secondary failover declaration. I'm pretty sure this statement is required for both servers.<br>
<br><br><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 9:47 AM, Rene Joergensen <<a href="mailto:rgj@fzr.dk">rgj@fzr.dk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br>
<br>
We have a problem with dhcpd 3.1.1 running in failover.<br>
<br>
As i understand the implementation, when receiving a request, the two<br>
servers calculates who should reply to the request (configured via the<br>
"split" option).<br>
<br>
What we're seeing is that both servers reply on requests which never<br>
reaches the client, maybe because the relay in the Cisco/Alcatel<br>
equipment gets confused.<br>
<br>
But why do both of them reply?<br>
<br>
We use classes to limit the number of leases:<br>
<br>
class "class3" {<br>
match if exists agent.circuit-id;<br>
spawn with option agent.circuit-id;<br>
lease limit 2;<br>
}<br>
<br>
And for circuits with fixed ip, there is a class defined:<br>
<br>
class "TN-222827" {<br>
match if option agent.unknown-6 = "TN-222827";<br>
lease limit 1;<br>
}<br>
<br>
And we then define a pool with the fixed IP, a pool with only one IP in<br>
the range, and deny them in the other pools.<br>
<br>
What we see in the logs:<br>
<br>
Jun 26 14:34:31 choke dhcpd: DHCPREQUEST for <a href="http://194.19.142.187" target="_blank">194.19.142.187</a> from 00:07:e9:af:35:45 via <a href="http://194.19.167.1" target="_blank">194.19.167.1</a><br>
Jun 26 14:34:31 choke dhcpd: DHCPACK on <a href="http://194.19.142.187" target="_blank">194.19.142.187</a> to 00:07:e9:af:35:45 (eeyore) via <a href="http://194.19.167.1" target="_blank">194.19.167.1</a><br>
<br>
Jun 26 14:34:31 serv01 dhcpd: DHCPREQUEST for <a href="http://194.19.142.187" target="_blank">194.19.142.187</a> from 00:07:e9:af:35:45 (eeyore) via <a href="http://194.19.167.1" target="_blank">194.19.167.1</a><br>
Jun 26 14:34:31 serv01 dhcpd: DHCPACK on <a href="http://194.19.142.187" target="_blank">194.19.142.187</a> to 00:07:e9:af:35:45 (eeyore) via <a href="http://194.19.167.1" target="_blank">194.19.167.1</a><br>
<br>
Normally it logs that is loadbalances, but not here.<br>
<br>
Our configuration:<br>
<br>
On the primary dhcpd:<br>
<br>
failover peer "dhcp-failover" {<br>
primary;<br>
address <a href="http://194.19.194.18" target="_blank">194.19.194.18</a>;<br>
port 647;<br>
peer address <a href="http://194.19.194.29" target="_blank">194.19.194.29</a>;<br>
peer port 647;<br>
max-response-delay 30;<br>
max-unacked-updates 10;<br>
mclt 600;<br>
split 128;<br>
load balance max seconds 3;<br>
}<br>
<br>
On the secondary dhcpd:<br>
<br>
failover peer "dhcp-failover" {<br>
secondary;<br>
address <a href="http://194.19.194.29" target="_blank">194.19.194.29</a>;<br>
port 647;<br>
peer address <a href="http://194.19.194.18" target="_blank">194.19.194.18</a>;<br>
peer port 647;<br>
max-response-delay 30;<br>
max-unacked-updates 10;<br>
load balance max seconds 3;<br>
}<br>
<br>
Any ideas why? Is it because of the classes?<br>
<font color="#888888"><br>
--<br>
-René<br>
<br>
</font></blockquote></div><br>