<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>I am looking for help with DHCP 3.1.2. I have a failover scenario. Iam getting "peer holds all free leases" message.<br>
<br>Basically, I am trying to go from 3.0.3 to 3.1.2.<br>I stop the 3.0.3 secondary. When the 3.0.3 gets into partner down state I stop also that one.<br>
<br>Then I copy the lease file to 3.1.2 primary. I try to start it. I get the "peer holds all free leases" error message.<br>I check the status of the server and it is in "partner_down" (value 4) and the other in "unknown_state" (value 1).<br>
<br>I would like to ask what can be the issue?<br>When a lease is in free state, who can use it? (primary/secondary)<br>How long does it take to be used by the other one?<br>When a lease is in backup state, who can use it? (primary/secondary)<br>
How long does it take to be used by the other one?<br>What do I have to do, to get the server to respond to discovers? Which state do I need to force? Or how long do I need to wait?<br><br><font style="color: rgb(0, 0, 153);" size="2">I have quite a lot of IPs available in all subnets. I can see that from each subnet IPs are marked only in "free" state, or "backup" state as follows<br>
</font><span style="font-family: courier new,monospace;">lease 10.35.128.145 {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> starts 0 2009/02/08 12:27:50;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ends 0 2009/02/08 12:29:50;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> tstp 1 2009/02/09 12:57:50;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> tsfp 1 2009/02/09 12:57:50;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> cltt 0 2009/02/08 12:27:50;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> binding state free;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> hardware ethernet 76:19:37:01:1d:01;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">lease 10.35.128.230 {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> starts 2 2008/10/28 14:46:51;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> tstp 2 2008/10/28 14:46:51;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> tsfp 2 2008/10/28 14:46:51;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> binding state backup;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"> <br><span style="color: rgb(0, 0, 153);">the pool is defined as follows</span><br style="color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace;">subnet 10.35.128.0 netmask 255.255.224.0 {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> option subnet-mask 255.255.224.0;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> option broadcast-address 10.35.159.255;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> option routers 10.35.128.1;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> pool {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> deny dynamic bootp clients;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> failover peer "boot";</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> range 10.35.128.2 10.35.159.126;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;">
<br>
<span style="color: rgb(0, 0, 153);">So there should be around 8000 free IP addresses.</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">And I have maybe 2000 clients on the subnet. Still when I start the server, it will not responde to discover packets.</span><br style="color: rgb(0, 0, 153);">
<span style="font-family: courier new,monospace;">Mar 27 04:38:35 dhcp-live-02 dhcpd: DHCPDISCOVER from 7a:ea:01:00:e6:01 via <a href="http://10.35.128.1" target="_blank">10.35.128.1</a>: peer holds all free leases </span><br style="font-family: courier new,monospace;">
<br><span style="color: rgb(0, 0, 153);">My conf file on primary is as follows.</span><br style="color: rgb(0, 0, 153);"><span style="font-family: courier new,monospace;">authoritative;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ddns-update-style none;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">omapi-port 7911;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">server-identifier dhcp-live-02;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">failover peer "boot" {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> primary;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> address dhcp-live-02;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> port 647;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> peer address dhcp-live-01;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> peer port 847;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> max-response-delay 60;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> max-unacked-updates 10;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> mclt 1800;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> split 128;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> load balance max seconds 3;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">include "/usr/local/etc/dhcpd.master";</span><br style="font-family: courier new,monospace;">
<br>Am I doing something wrong? Is the lease file of 3.0.3 not compatible to 3.1.2? How to make it compatible?<br>
</blockquote></div><br>