LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2017, 06:52 AM   #1
businesscat
Member
 
Registered: Jun 2017
Location: Spain
Distribution: RedHat 6.9 /Centos 8
Posts: 42

Rep: Reputation: Disabled
DHCP failover issue DHCPDISCOVER via eth0: not responding (recovering) and LDAP not specified


Im 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 dont 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
 
Old 06-08-2017, 08:23 AM   #2
businesscat
Member
 
Registered: Jun 2017
Location: Spain
Distribution: RedHat 6.9 /Centos 8
Posts: 42

Original Poster
Rep: Reputation: Disabled
sorry for the duplicate, I miss the message
 
Old 06-08-2017, 08:27 AM   #3
businesscat
Member
 
Registered: Jun 2017
Location: Spain
Distribution: RedHat 6.9 /Centos 8
Posts: 42

Original Poster
Rep: Reputation: Disabled
UPDATE:

Now, after change /etc/dhclient-eth0.conf and /etc/sysconfig/dhcpd the log messages shows the following:


Jun 8 15:15:00 dhcp01 dhcpd: failover peer declaration with no referring pools.
Jun 8 15:15:00 dhcp01 dhcpd: In order to use failover, you MUST refer to your main failover declaration
Jun 8 15:15:00 dhcp01 dhcpd: in each pool declaration. You MUST NOT use range declarations outside
Jun 8 15:15:00 dhcp01 dhcpd: of pool declarations.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP failover issue DHCPDISCOVER via eth0: not responding (recovering) and LDAP error businesscat Linux - Server 1 06-08-2017 07:11 AM
[SOLVED] Configure eth0:0 failover IP on Slackware? kikinovak Slackware 2 07-30-2014 09:49 AM
isc-dhcp-server issue, not broadcasting on eth0:1 Steviepower Linux - Server 2 05-30-2012 04:32 AM
[SOLVED] Can DHCP server issue same IP for wlan0 and eth0 on same machine? linux_ Linux - Networking 6 05-26-2010 11:45 PM
ldap failover ar1 Linux - Networking 0 06-15-2005 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration