wiki:DhcpFailover

DHCP failover setup

Master server

include "/usr/local/etc/dhcpd-classes.conf";

ldap-server "127.0.0.1";
ldap-port 389;
ldap-username "cn=root,dc=rionet,dc=cz";
ldap-password "rio33net";
ldap-base-dn "dc=rionet,dc=cz";
ldap-method dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

authoritative;

subnet 172.25.8.0 netmask 255.255.255.248 { }

failover peer "dhcp" {
  primary;
  address 172.25.8.4;           # local host IP address
  port 647;                     # make sure this port is not used by other programs
  peer address 172.25.8.250;    # backup host IP address
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 7200;
  split 128;
  load balance max seconds 5;
}

Slave server

include "/usr/local/etc/dhcpd-classes.conf";

ldap-server "127.0.0.1";
ldap-port 389;
ldap-username "cn=root,dc=rionet,dc=cz";
ldap-password "rio33net";
ldap-base-dn "dc=rionet,dc=cz";
ldap-method dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

authoritative;

failover peer "dhcp" {
   secondary;
   address 172.25.8.250;          # local host IP address
   port 647;                      # make sure this port is not used by other programs
   peer address 172.25.8.4;       # primary host IP address
   peer port 647;
   max-response-delay 60;
   max-unacked-updates 10;
}

subnet 172.25.8.248 netmask 255.255.255.248 { }
Last modified 14 years ago Last modified on Sep 30, 2010, 5:27:47 PM

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.