Основной сервер – 192.168.17.251, а вторичный – 192.168.17.250
Основной:
Декларируем секцию failover /etc/dhcp/dhcpd.conf:
failover peer
"dhcp-failover" {
primary; # declare this to be the primary server
address 192.168.17.251;
port 647;
peer address 192.168.17.250;
peer port 647;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
mclt 1800;
split 128;
}
надо размещать перед секцией пула.
Дописывам в секцию пула:
subnet 192.168.17.0 netmask 255.255.255.0 {
pool {
# In order to turn off failover just comment out
# the line below
failover peer "dhcp-failover";
range 192.168.17.41 192.168.17.254;
}
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.17.255;
option routers gw1.OFFICE.LOCAL;
}
Вторичный сервер: /etc/dhcp/dhcpd.conf
failover peer
"dhcp-failover" {
secondary; # declare this to be the secondary server
address 192.168.17.250;
port 647;
peer address 192.168.17.251;
peer port 647;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
}
subnet 192.168.17.0 netmask 255.255.255.0
{
pool {
# In order to turn off failover just comment out
# the line below
failover peer "dhcp-failover";
range 192.168.17.50 192.168.17.199;
}
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.17.255;
option routers gw1.OFFICE.LOCAL;
}
Редактирование динамических DNS зон.
Пауза:
rndc freeze
Редактирование зоны.
Возобновление работы:
rndc thaw
Немає коментарів:
Дописати коментар