Failover got errer peer holds all free leases

Koichi Mori zko-mori at med.osaka-cu.ac.jp
Fri Jun 22 03:05:00 UTC 2007


Hi all,

I am using dhcp-3.0.1rc14 now then also use failover.
I want to update to 3.1.0rc1, so I am testing another system.
(I made test network system)

I got the proberm in the test. The probrem is client PC took all
pool IP when do the release/renew in secondary server is donw.

I made config files are here;

primary dhcpd.conf:
-------------------------------------------
authoritative;
one-lease-per-client true;

failover peer "test" {
          primary;
          address 192.168.0.1;
          port 10001;
          peer address 192.168.0.2;
          peer port 10001;
          max-response-delay 60;
          max-unacked-updates 10;
          mclt 3600;
          split 128;
          hba ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
              00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00;
          load balance max seconds 3;
}
include "/etc/dhcpd.master";
-------------------------------------------

secondary dhcpd.conf:
-------------------------------------------
one-lease-per-client true;

failover peer "test" {
          primary;
          address 192.168.0.2;
          port 10001;
          peer address 192.168.0.1;
          peer port 10001;
          max-response-delay 60;
          max-unacked-updates 10;
          mclt 3600;
          load balance max seconds 3;
}
include "/etc/dhcpd.master";
-------------------------------------------

primary/secondary dhcpd.master:
-------------------------------------------
  option subnet-mask 255.255.255.0;
  default-lease-time 6000;
  max-lease-time 7200;

subnet 192.168.0.0 netmask 255.255.255.0 {
pool{
  failover peer "test";
  deny dynamic bootp clients;
  option domain-name "hogehoge.ac.jp";
  option routers 192.168.0.254;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.0.255;
  default-lease-time 1200;
  max-lease-time 7200;
  range 192.168.0.160 192.168.164;
        }
}
-------------------------------------------

The test process is here.

1. primary and secondary DHCP servers are UP
2. do renew/release couple of times by client PC.
   got all same IP all the times.
3. shutdown secondary server.
4. do renew/release 4 times by same client PC.
   got all different IP all the times.
5. finary (on 6 times) got the error.
   "peer holds all free leases"

dhcpd.leases saied all IPs
"binding state released;" 

Must be the probrem is the client took diffrent IP when down 
secondary(or primary) DHCP server.
I red "man dhcpd.conf" and search some things. but I coudnt find
how to clear this proberm.

Is this a bug or my config file probrem?

I also test remove failover lines from config files.
result was "got all same IP all the time"
May be my DHCP server working well with out failover.

#OS is: Solaris 8
#DHCP server build from source files.

thank you for reading my poor english;(

-- 
Koichi Mori


More information about the dhcp-users mailing list