You are not logged in.

#1 2015-03-27 18:33:19

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,279

Cooperating primary and secondary dhcp servers?

Does anyone know if it is possible to run a dhcpd4 server ( from the dhcp package) on two different machines on the same network, such that if the primary dhcp server fails that you get a seamless failover to the secondary server?  I guess it would need the lease database to be shared between the two machines somehow, but any pointers to links or info on how to do it would be appreciated.

Thanks.


Mike C

Offline

#2 2015-03-27 19:19:37

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: Cooperating primary and secondary dhcp servers?

dhcpd should include the required components to implement that. With '"dhcpd" failover' I found e.g.
https://kb.isc.org/article/AA-00502/0/A … lover.html

Last edited by progandy (2015-03-27 19:23:49)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2015-03-27 19:35:34

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,279

Re: Cooperating primary and secondary dhcp servers?

progandy wrote:

dhcpd should include the required components to implement that. With '"dhcpd" failover' I found e.g.
https://kb.isc.org/article/AA-00502/0/A … lover.html

Thank you for that link - it is very useful - so now I need to go and do some reading!

Edit: Also useful is: http://www.furorteutonicus.eu/2013/05/0 … pberry-pi/

Last edited by mcloaked (2015-03-27 19:41:28)


Mike C

Offline

#4 2015-03-27 20:59:23

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,279

Re: Cooperating primary and secondary dhcp servers?

It isn't clear that these schemes would work in the situation that for a local LAN each MAC is given a unique ip address when requesting an address from either primary or secondary DHCP server, if for example the primary is down, via a table of stanzas in the dhcpd.conf file. In the envisaged scheme each dhcp server would have the same set of stanzas so that any client booting up and needing its address is given the same ip address irrespective of which dhcp server responds to the initial request for an address.

Last edited by mcloaked (2015-03-27 21:26:11)


Mike C

Offline

Board footer

Powered by FluxBB