failover
Billy Cook
wrcook at clemson.edu
Wed Jun 21 18:42:06 UTC 2006
Hi,
I'm trying to get failover to work but can't get only one server to
respond to requests. I have two servers configured and one client in
my test network. The first time the client asks for a lease only one
server responds and the other has a message in syslog saying that the
peer owns the lease.
Jun 21 14:32:12 dhcp1 dhcpd: uid lease 192.168.254.25 for client
00:06:5b:c4:b3:16 is duplicate on BOBO
Jun 21 14:32:12 dhcp1 dhcpd: DHCPREQUEST for 192.168.254.26
(192.168.254.11) from 00:06:5b:c4:b3:16 via eth0: lease owned by peer
After I do an ifdown eth1 and ifup eth1 on the client both servers
start replying to the client's dhcp requests. Do my configs look
correct?
Thanks,
Billy Cook
Here are my config files:
-----------primary server's dhcpd.conf
------------------------------------------
# Global Settings
authoritative;
pid-file-name "/var/run/dhcpd.pid";
one-lease-per-client on;
ping-check on;
ddns-update-style none;
ddns-updates off;
deny bootp;
default-lease-time 120;
max-lease-time 120;
failover peer "dhcp1" {
primary;
address 192.168.254.10;
port 847;
peer address 192.168.254.11;
peer port 647;
max-response-delay 180;
mclt 30;
#hba ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
# ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff;
split 128;
load balance max seconds 5;
}
#$ test net
shared-network BOBO {
option domain-name-servers 130.127.8.8, 130.127.28.14;
option subnet-mask 255.255.255.0;
subnet 192.168.254.0 netmask 255.255.255.0 {
option routers 192.168.254.1;
option subnet-mask 255.255.255.0;
pool {
allow unknown clients;
range 192.168.254.20 192.168.254.30;
failover peer "dhcp1";
deny dynamic bootp clients;
}
}
}
-------------- secondary server's dhcpd.conf -----------------------------
# Global Settings
authoritative;
pid-file-name "/var/run/dhcpd.pid";
one-lease-per-client on;
ping-check on;
ddns-update-style none;
ddns-updates off;
deny bootp;
default-lease-time 120;
max-lease-time 120;
failover peer "dhcp2" {
secondary;
address 192.168.254.11;
port 647;
peer address 192.168.254.10;
peer port 847;
max-response-delay 180;
load balance max seconds 5;
mclt 30;
}
#$ test net
shared-network BOBO {
option domain-name-servers 130.127.8.8, 130.127.28.14;
option subnet-mask 255.255.255.0;
subnet 192.168.254.0 netmask 255.255.255.0 {
option routers 192.168.254.1;
option subnet-mask 255.255.255.0;
pool {
allow unknown clients;
range 192.168.254.20 192.168.254.30;
failover peer "dhcp2";
deny dynamic bootp clients;
}
}
}
More information about the dhcp-users
mailing list