という構成。設定ファイルは以下のような感じ。まずはprimary側。
[primary側の /etc/dhcpd.conf]
ddns-update-style none;
one-lease-per-client true;
option domain-name-servers 192.168.1.100;
option subnet-mask 255.255.255.0;
default-lease-time 900;
max-lease-time 900;
authoritative;
failover peer "hoge" {
primary;
address 192.168.1.10;
port 519;
peer address 192.168.1.20;
peer port 520;
max-response-delay 60;
max-unacked-updates 10;
mclt 600;
split 128;
load balance max seconds 3;
}
include "/etc/dhcpd.master";
で、次はsecondary側。
[secondary側の /etc/dhcpd.conf]
ddns-update-style none;
one-lease-per-client true;
option domain-name-servers 192.168.1.100;
option subnet-mask 255.255.255.0;
default-lease-time 900;
max-lease-time 900;
authoritative;
failover peer "hoge" {
secondary;
address 192.168.1.20;
port 520;
peer address 192.168.1.10;
peer port 519;
max-response-delay 60;
max-unacked-updates 10;
load balance max seconds 3;
}
include "/etc/dhcpd.master";
で、あとは共通部分。
[primary側、secondary側の /etc/dhcpd.master]
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option domain-name-servers 192.168.1.100;
pool {
deny dynamic bootp clients;
failover peer "hoge";
range 192.168.1.101 192.168.1.254;
}
}
みたいな感じで書くとシアワセにDHCPサーバしてくれます☆
Well done!<br>http://cpqatvci.com/bxdc/zjry.html | http://ffqcequp.com/eutb/oxei.html
Good design!<br>http://aedlzjtz.com/yjpb/eksa.html | http://zlwbumvu.com/hkqr/pvob.html