Getting Peer hold all free leases

glenn.satchell at uniq.com.au glenn.satchell at uniq.com.au
Wed Aug 18 05:44:49 UTC 2021


Hi Kraishak

Can you check on each dhcp server that you can reach the failover port 
on the peer? eg:

on server1: telnet server2 <peer-port2>
on server2: telnet server1 <peer-port1>

where port and peer-port are set in the failover stanza of dhcpd.conf. 
If this connects, ie is not blocked by any firewalls, etc, then 
restarting one dhcp service should cause the pools to be balanced.

Could you post the failover clause from dhcpd.conf from both servers?

regards,
Glenn

On 2021-08-18 15:21, Kraishak Mahtha wrote:
> Question to ISC Team,
> 
> Can we manually send a request for the DHCP server from externally to
> do the pool balance for a specific subnet? or sent a force parameter
> in send request to balance specific subnet
> 
> Thanks
> Kraishak
> 
> On Tue, Aug 17, 2021 at 5:41 PM Kraishak Mahtha
> <kraishak.edu at gmail.com> wrote:
> 
>> Hi,
>> I am using ISC DHCP in primary and failover mode and I am getting
>> issue that clients are not getting leases and when I checked for the
>> service logs I see as
>> Primary Logs:
>> ==========
>> Aug 17 17:15:48 dhcp1 dhcpd[12130]: balancing pool f6f5f0
>> 192.168.56.0/24 [1]  total 50  free 0  backup 0  lts 0  max-own
>> (+/-)0
>> Aug 17 17:15:48 dhcp1 dhcpd[12130]: balanced pool f6f5f0
>> 192.168.56.0/24 [1]  total 50  free 0  backup 0  lts 0  max-misbal 0
>> Aug 17 17:15:48 dhcp1 dhcpd[12130]: peer peer-host: Got POOLREQ,
>> answering negatively!  Peer may be out of leases or database
>> inconsistent.
>> 
>> Failover Logs
>> ==========
>> Aug 17 17:14:48 dhcp2 dhcpd[1902]: balancing pool bf05b0
>> 192.168.56.0/24 [1]  total 50  free 50  backup 0  lts -25  max-own
>> (+/-)5  (requesting peer rebalance!)
>> Aug 17 17:14:48 dhcp2 dhcpd[1902]: balanced pool bf05b0
>> 192.168.56.0/24 [1]  total 50  free 50  backup 0  lts -25
>> max-misbal 8
>> pool response: 0 leases
>> 
>> I tried searching the forums and many of them suggested that there
>> might be inconsistency between the configuration file and leases
>> database, I cross verified the configs they are good and regarding
>> the leases file can we manually do any operation to make them in
>> sync ?
>> 
>> I tried checking the status of the primary and failover in the lease
>> file but they are in normal-normal,cat dhcpd.leases | egrep "my
>> state|partner state" | tail -2
>> my state normal at 2 2021/08/17 16:41:09;
>> partner state normal at 2 2021/08/17 17:01:17;
>> 
>> Has anyone faced a similar issue/Any suggestions of how to fix the
>> issue,
>> Can we manually send requests for the DHCP service to do the pool
>> balance and sync the leases for that specific subnet ?
>> 
>> Any help/suggestion would be much appreciated
>> Thanks
>> 
>> Kraishak
> 
> 
> Links:
> ------
> [1] http://192.168.56.0/24
> _______________________________________________
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
> 
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users


More information about the dhcp-users mailing list