Failover issues

Shlomo Dubrowin shlomo at dubrowin.org
Tue May 30 17:31:41 UTC 2006


OK,  So I have failover configured and the primary is giving out leases as
it should.  Now, I want to test the failover.  What I have been doing is
shutting down the service on the primary and expecting the secondary to
automatically take over.  However, in the leases file on the secondary, I'm
seeing that it believes it's own connectivity is down and not that of the
primary.  So, when the primary fails, the secondary thinks it has a problem
with itself and doesn't give out leases.  Any ideas why this isn't working
as expected?
  Shlomo

here are my configs:

------------------------------
Primary dhcpd.conf:
------------------------------
failover peer "dhcp-failover" {
        primary; # declare this to be the primary server
        address 10.153.100.26;
        port 520;
        peer address 10.153.100.27;
        peer port 519;
        max-response-delay 30;
        max-unacked-updates 30;
        load balance max seconds 3;
        mclt 1800;
#       mclt 300;
        split 128;
}

include "/etc/dhcpd.pools";

---------------------------------
Secondary dhcpd.conf:
---------------------------------
failover peer "dhcp-failover" {
        Secondary; # declare this to be the secondary server
        address 10.153.100.27;
        port 519;
        peer address 10.153.100.26;
        peer port 520;
        max-response-delay 30;
        max-unacked-updates 30;
        load balance max seconds 3;
#        mclt 1800;
}

include "/etc/dhcpd.pools";

------------------------------------------
The Shared dhcpd.pools file:
------------------------------------------

# Global Options
authoritative;
ddns-update-style none;
option domain-name "xyz.net";
option domain-name-servers 172.16.202.100, 172.16.202.101;
option netbios-name-servers 10.153.100.17;
option ntp-servers 10.153.100.17;

# 2nd Floor DATA VLAN
subnet 10.153.20.0 netmask 255.255.254.0 {
        option subnet-mask 255.255.254.0;
        option broadcast-address 10.153.21.255;
        option routers 10.153.20.1;
        pool {
                failover peer "dhcp-failover";
                deny dynamic bootp clients;
                max-lease-time 28800; # 30 minutes
                range 10.153.20.3 10.153.21.229;
        }
}


-- 
-----------------------------------------------------------------------
  ,-~~-.___.    ._.
/ |  '     \   | |"""""""""|           Shlomo Dubrowin
(  )         0  | |         |             (Sheldon)
\_/-, ,----'   | |         |
    ====        !_!--v---v--"
    /  \-'~;      |""""""""|            shlomo at dubrowin.org
   /  __/~| ._-""||        |          http://www.dubrowin.org
=(  _____|_|____||________|
-----------------------------------------------------------------------




More information about the dhcp-users mailing list