I´m triying to configure a DHCP server. But when the host1 is active, if I try to up the dhcp service on the host2. fails...
If I not add coments (disable) in the failover configuration part, the messages log shows:
Jun 8 07:31:12 dhcp01 dhcpd: DHCPDISCOVER from XXXXXXXXXXXXX (USER) via eth0: not responding (recovering)
And, when I start the host1 (the newest) it shows:
Jun 8 07:09:57 dhcp01 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Jun 8 07:09:57 dhcp01 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Jun 8 07:09:57 dhcp01 dhcpd: All rights reserved.
Jun 8 07:09:57 dhcp01 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Jun 8 07:09:57 dhcp01 dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Jun 8 07:09:57 dhcp01 dhcpd: Wrote 1158 leases to leases file.
Jun 8 07:09:57 dhcp01 dhcpd: Listening on LPF/eth0/00:50:56:9b:b2:86/10.58.72.0/21
Jun 8 07:09:57 dhcp01 dhcpd: Sending on LPF/eth0/00:50:56:9b:b2:86/10.58.72.0/21
Jun 8 07:09:57 dhcp01 dhcpd: Sending on Socket/fallback/fallback-net
Jun 8 07:09:57 dhcp01 dhcpd: failover peer alamopeer: I move from recover to startup
Have anyone any idea? I think is the part of the failover...I don´t know how dhcp speaks about
ldap
configuration in the failover:
dhcpd.conf file on host1:
Code:
ddns-update-style interim;
ignore client-updates;
authoritative;
#option option-150 code 150 = text ;
option dhcp-server-identifier 10.58.79.232;
option dhcp-server-identifier 10.58.79.233;
failover peer "alamopeer" {
primary;
address [HOST1];
port 1068;
peer address [HOST2];
peer port 1069;
max-response-delay 180;
max-unacked-updates 10;
mclt 600;
split 120;
load balance max seconds 3;
}
subnet 10.58.72.0 netmask 255.255.248.0 {
option routers 10.58.79.230;
option subnet-mask 255.255.248.0;
option nis-domain "DOMAIN.es";
option domain-name "DOMAIN.es";
option domain-name-servers 10.59.172.46, 10.59.173.47;
#option time-offset -18000; # Eastern Standard Time
option ntp-servers 10.59.172.46;
option netbios-name-servers HOST1.ine.es;
option netbios-node-type 8;
#min-lease-time 43200;
#default-lease-time 86400;
#default-lease-time 259200;
default-lease-time 2592000;
#max-lease-time 86400;
#max-lease-time 259200;
max-lease-time 2592000;
one-lease-per-client true;
pool {
range 10.58.72.1 10.58.72.253;
range 10.58.73.1 10.58.73.253;
range 10.58.74.1 10.58.74.253;
range 10.58.75.1 10.58.75.253;
range 10.58.76.1 10.58.76.150;
deny dynamic bootp clients;
}
}
dhcpd.conf file on host 2:
Code:
ddns-update-style interim;
ignore client-updates;
authoritative;
#option option-150 code 150 = text ;
#log-facility local4;
option dhcp-server-identifier [IP HOST 2] ;
option dhcp-server-identifier [IP HOST 1];
failover peer "alamopeer" {
secondary;
address [IP HOST 2];
port 1069;
peer address 10.58.79.233;
peer port 1068;
max-response-delay 180;
max-unacked-updates 10;
#mclt 600;
#split 120;
load balance max seconds 3;
}
subnet 10.58.72.0 netmask 255.255.248.0 {
option routers 10.58.79.230;
option subnet-mask 255.255.248.0;
option nis-domain "DOMAIN.es";
option domain-name "DOMAIN.es";
option domain-name-servers 10.59.172.46, 10.59.173.47;
#option time-offset -18000; # Eastern Standard Time
option ntp-servers 10.59.172.46;
option netbios-name-servers [HOST1];
option netbios-node-type 8;
#min-lease-time 43200;
#default-lease-time 86400;
#default-lease-time 259200;
default-lease-time 2592000;
#max-lease-time 86400;
#max-lease-time 259200;
max-lease-time 2592000;
one-lease-per-client true;
pool {
range 10.58.72.1 10.58.72.253;
range 10.58.73.1 10.58.73.253;
range 10.58.74.1 10.58.74.253;
range 10.58.75.1 10.58.75.253;
range 10.58.76.1 10.58.76.150;
##range 10.58.77.1 10.58.77.199;
failover peer "alamopeer";
deny dynamic bootp clients;
}
}
For the moment, host1 is active and it works...but in host2 dhcp is disabled.
Aclarations:
-the OS is rhel 6.9 -the host1 has been migrated of other diferent host. Installing the dhcpd rhel package and copying the dhcpd.conf (changing the host1 data).
-the host1 only have the DHCP package and webmin (not ldap)
-in the host2 NO shows LDAP messages.
Thank you so much