解决方法:
dhcp failover RFC2131 标准(终于还是用上RFC了 ~……~)
主要原理:
1、master slave 同步租约等信息,避免master故障后,dhcp地址分配出现混乱
2、split 128 通过此参数调整,哪些dhcp 请求由master处理,哪些请求由slave处理,避免2台dhcp server 同时分配地址
3、更多的原理以后研究,下班了 ~~~
参考部分配置
failover peer "dhcp-failover" {
primary; # declare this to be the primary server
address 10.x.x.1;
port 647;
peer address 10.x.x.2;
peer port 647;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 5;
mclt 1800;
split 128;
}
subnet 10.100.200.0 netmask 255.255.255.0 {
option domain-name-servers 10.8.128.58,10.8.2.8,10.8.6.8;
option subnet-mask 255.255.255.0;
option routers 10.100.200.254;
pool {
failover peer "dhcp-failover";
range 10.100.200.10 10.100.200.250;
}
}
原文地址:http://blog.51cto.com/11851391/2126567