Multiple Failover peers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple Failover peers

Peter Fraser
Hi All
I am using isc dhcp version isc-dhcp41-server-4.1.e_7,2 on FreeBSD and working fine. I have a peer failover set up and there have been no issues for a few years now. I now have need to set up a second failover peer for a DR site. I saw a post where someone did this but I have not seen an example config. Does isc-dhcp really support this and if it does could someone who has done this share a config please?

Thanks.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Failover peers

Anderson, Charles R
On Thu, Apr 16, 2015 at 04:15:21PM -0500, Peter Fraser wrote:
> Hi All
> I am using isc dhcp version isc-dhcp41-server-4.1.e_7,2 on FreeBSD and
> working fine. I have a peer failover set up and there have been no issues
> for a few years now. I now have need to set up a second failover peer for a
> DR site. I saw a post where someone did this but I have not seen an example
> config. Does isc-dhcp really support this and if it does could someone who
> has done this share a config please?

Yes, it supports this just fine.  Just create another "failover peer"
block with a different name from your first one, and refer to that
other name for some of your pools.  A pool can only belong to one
"failover peer" relationship.

failover peer "dhcp1-dhcp2" {
        primary;
        address 10.0.1.20;
        port 647;
        peer address 10.0.2.20;
        peer port 647;
        max-response-delay 30;
        max-unacked-updates 10;
        mclt 3600;
        split 128;
        load balance max seconds 3;
}
failover peer "dhcp1-dhcp3" {
        primary;
        address 10.0.1.20;
        port 647;
        peer address 10.0.3.20;
        peer port 647;
        max-response-delay 30;
        max-unacked-updates 10;
        mclt 3600;
        split 128;
        load balance max seconds 3;
}
subnet 10.1.1.0 netmask 255.255.255.0 {
        option routers 10.1.1.1;
        option subnet-mask 255.255.255.0;
        pool {
                failover peer "dhcp1-dhcp2";
                range 10.1.1.129 10.1.1.254;
        }
}
subnet 10.1.2.0 netmask 255.255.255.0 {
        option routers 10.1.2.1;
        option subnet-mask 255.255.255.0;
        pool {
                failover peer "dhcp1-dhcp3";
                range 10.1.2.129 10.1.2.254;
        }
}
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users