User Tools

Site Tools


dhcp_failover

This is an old revision of the document!


DHCP failover

Что почитать

Настройка

gateN# cat dhcpd.general
ddns-update-style none;

log-facility local7;

subnet 127.0.0.0 netmask 255.0.0.0 { }

subnet 172.16.1.0 netmask 255.255.255.0 { }

subnet 192.168.X.0 netmask 255.255.255.0 {
  pool {
    failover peer "dhcp";
    range 192.168.X.40 192.168.X.249;
    deny dynamic bootp clients;
  }
  option routers 192.168.X.254;
  option domain-name "corpX.un";
  option domain-name-servers 192.168.X.1, 192.168.X.2;
  default-lease-time 600;
  max-lease-time 7200;
}
gate1# cat dhcpd.conf
failover peer "dhcp" {
  primary;
  address 192.168.X.1;
  port 519;
  peer address 192.168.X.2;
  peer port 520;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 600;
  split 128;
  load balance max seconds 3;
}
include "/CORRECT/DIR/dhcpd.general";
gate2# cat dhcpd.conf
failover peer "dhcp" {
  secondary;
  address 192.168.X.2;
  port 520;
  peer address 192.168.X.1;
  peer port 519;
  max-response-delay 60;
  max-unacked-updates 10;
}
include "/CORRECT/DIR/dhcpd.general";

Тестирование

FreeBSD

[gateN:~] # cat /var/db/dhcpd/dhcpd.leases
dhcp_failover.1269851422.txt.gz · Last modified: 2013/05/22 13:50 (external edit)