LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   ROCK (https://www.linuxquestions.org/questions/rock-65/)
-   -   DHCP server not loading dhcpd.conf (https://www.linuxquestions.org/questions/rock-65/dhcp-server-not-loading-dhcpd-conf-4175571304/)

EDTejada 02-03-2016 11:26 AM

DHCP server not loading dhcpd.conf
 
Hi,

First of all I am new in setting up a DHCP server, so I before posting here I have search around the web without finding a solution. I have setup a frontend with Rocks 6.2 which has only one ethernet interface. I know that the manual says that I must have two ethernet interfaces, but for now I only have one. Also I found that in this case the physical interface will be used for the public access, and a virtual interface will be used for the private access.
I followed the procedure to set up the virtual interfaces and I manage to connect to the frontend via ssh from my laptop (Using the virtual IP address). The problem is that when I run insert-ethers I get an error saying that the DHCP server is not running. When I tray to start the DHCP server it fails, and the log file gives the following:

Code:

Feb  1 15:34:17 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:34:17 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:34:17 clusterdsp dhcpd: All rights reserved.
Feb  1 15:34:17 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:34:17 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:34:17 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:34:17 clusterdsp dhcpd:                                            ^
Feb  1 15:34:17 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:34:17 clusterdsp dhcpd:
Feb  1 15:34:17 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:34:17 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:34:17 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:34:17 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:34:17 clusterdsp dhcpd:
Feb  1 15:34:17 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:34:17 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:34:17 clusterdsp dhcpd:
Feb  1 15:34:17 clusterdsp dhcpd: exiting.
Feb  1 15:35:32 clusterdsp python: insert-ethers loading plugins: 00-pxecfg 01-dhcpd 05-dns ganglia hostauth partitions sample sge tentakel
Feb  1 15:35:32 clusterdsp rockscommand[5766]: user root called "report host dhcpd localhost"
Feb  1 15:35:32 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:35:32 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:35:32 clusterdsp dhcpd: All rights reserved.
Feb  1 15:35:32 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:35:32 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:35:32 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:35:32 clusterdsp dhcpd:                                            ^
Feb  1 15:35:32 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:35:32 clusterdsp dhcpd:
Feb  1 15:35:32 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:35:32 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:35:32 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:35:32 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:35:32 clusterdsp dhcpd:
Feb  1 15:35:32 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:35:32 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:35:32 clusterdsp dhcpd:
Feb  1 15:35:32 clusterdsp dhcpd: exiting.
Feb  1 15:35:35 clusterdsp python: insert-ethers loading plugins: 00-pxecfg 01-dhcpd 05-dns ganglia hostauth partitions sample sge tentakel
Feb  1 15:35:36 clusterdsp rockscommand[5933]: user root called "report host dhcpd localhost"
Feb  1 15:35:36 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:35:36 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:35:36 clusterdsp dhcpd: All rights reserved.
Feb  1 15:35:36 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:35:36 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:35:36 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:35:36 clusterdsp dhcpd:                                            ^
Feb  1 15:35:36 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:35:36 clusterdsp dhcpd:
Feb  1 15:35:36 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:35:36 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:35:36 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:35:36 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:35:36 clusterdsp dhcpd:
Feb  1 15:35:36 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:35:36 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:35:36 clusterdsp dhcpd:
Feb  1 15:35:36 clusterdsp dhcpd: exiting.
Feb  1 15:37:09 clusterdsp python: insert-ethers loading plugins: 00-pxecfg 01-dhcpd 05-dns ganglia hostauth partitions sample sge tentakel
Feb  1 15:37:09 clusterdsp rockscommand[6514]: user root called "report host dhcpd localhost"
Feb  1 15:37:09 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:37:09 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:37:09 clusterdsp dhcpd: All rights reserved.
Feb  1 15:37:09 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:37:09 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:37:09 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:37:09 clusterdsp dhcpd:                                            ^
Feb  1 15:37:09 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:37:09 clusterdsp dhcpd:
Feb  1 15:37:09 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:37:09 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:37:09 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:37:09 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:37:09 clusterdsp dhcpd:
Feb  1 15:37:09 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:37:09 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:37:09 clusterdsp dhcpd:
Feb  1 15:37:09 clusterdsp dhcpd: exiting.
Feb  1 15:44:09 clusterdsp python: dhcpd is not running.
Feb  1 15:44:18 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:44:18 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:44:18 clusterdsp dhcpd: All rights reserved.
Feb  1 15:44:18 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:44:18 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:44:18 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:44:18 clusterdsp dhcpd:                                            ^
Feb  1 15:44:18 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:44:18 clusterdsp dhcpd:
Feb  1 15:44:18 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:44:18 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:44:18 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:44:18 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:44:18 clusterdsp dhcpd:
Feb  1 15:44:18 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:44:18 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:44:18 clusterdsp dhcpd:
Feb  1 15:44:18 clusterdsp dhcpd: exiting.
Feb  1 15:49:28 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:49:28 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:49:28 clusterdsp dhcpd: All rights reserved.
Feb  1 15:49:28 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:49:28 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:49:28 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:49:28 clusterdsp dhcpd:                                            ^
Feb  1 15:49:28 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:49:28 clusterdsp dhcpd:
Feb  1 15:49:28 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:49:28 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:49:28 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:49:28 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:49:28 clusterdsp dhcpd:
Feb  1 15:49:28 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:49:28 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:49:28 clusterdsp dhcpd:
Feb  1 15:49:28 clusterdsp dhcpd: exiting.
Feb  1 15:53:12 clusterdsp python: dhcpd is not running.
Feb  1 15:53:17 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:53:17 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:53:17 clusterdsp dhcpd: All rights reserved.
Feb  1 15:53:17 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:53:17 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:53:17 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:53:17 clusterdsp dhcpd:                                            ^
Feb  1 15:53:17 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:53:17 clusterdsp dhcpd:
Feb  1 15:53:17 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:53:17 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:53:17 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:53:17 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:53:17 clusterdsp dhcpd:
Feb  1 15:53:17 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:53:17 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:53:17 clusterdsp dhcpd:
Feb  1 15:53:17 clusterdsp dhcpd: exiting.
Feb  1 15:53:28 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 15:53:28 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 15:53:28 clusterdsp dhcpd: All rights reserved.
Feb  1 15:53:28 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 15:53:28 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 15:53:28 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 15:53:28 clusterdsp dhcpd:                                            ^
Feb  1 15:53:28 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 15:53:28 clusterdsp dhcpd:
Feb  1 15:53:28 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 15:53:28 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 15:53:28 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 15:53:28 clusterdsp dhcpd: it work better with this distribution.
Feb  1 15:53:28 clusterdsp dhcpd:
Feb  1 15:53:28 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 15:53:28 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 15:53:28 clusterdsp dhcpd:
Feb  1 15:53:28 clusterdsp dhcpd: exiting.
Feb  1 16:23:25 clusterdsp python: dhcpd is not running.
Feb  1 16:23:41 clusterdsp dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Feb  1 16:23:41 clusterdsp dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Feb  1 16:23:41 clusterdsp dhcpd: All rights reserved.
Feb  1 16:23:41 clusterdsp dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Feb  1 16:23:41 clusterdsp dhcpd: /etc/dhcp/dhcpd.conf line 13: expecting numeric value.
Feb  1 16:23:41 clusterdsp dhcpd: #011#011#011hardware ethernet clusterdsp;
Feb  1 16:23:41 clusterdsp dhcpd:                                            ^
Feb  1 16:23:41 clusterdsp dhcpd: Configuration file errors encountered -- exiting
Feb  1 16:23:41 clusterdsp dhcpd:
Feb  1 16:23:41 clusterdsp dhcpd: This version of ISC DHCP is based on the release available
Feb  1 16:23:41 clusterdsp dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  1 16:23:41 clusterdsp dhcpd: have been made to the base software release in order to make
Feb  1 16:23:41 clusterdsp dhcpd: it work better with this distribution.
Feb  1 16:23:41 clusterdsp dhcpd:
Feb  1 16:23:41 clusterdsp dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  1 16:23:41 clusterdsp dhcpd:    http://bugs.centos.org/
Feb  1 16:23:41 clusterdsp dhcpd:
Feb  1 16:23:41 clusterdsp dhcpd: exiting.
Feb  1 16:23:51 clusterdsp python: dhcpd is not running.

And this is the dhcpd.conf file:

Code:

ddns-update-style none;
subnet 10.1.1.0 netmask 255.255.255.0 {
        default-lease-time 1200;
        max-lease-time 1200;
        option routers 10.1.1.100;
        option subnet-mask 255.255.255.0;
        option domain-name "local";
        option domain-name-servers 10.1.1.100;
        option broadcast-address 10.1.1.255;
        option interface-mtu 1500;
        group "local" {
                host clusterdsp-eth0_0 {
                        hardware ethernet clusterdsp;
                        option host-name "clusterdsp";
                        fixed-address 10.1.1.100;
                        filename "pxelinux.0";
                        next-server 10.1.1.100;
                }
        }
}

I have changed the line 13 (hardware ethernet clusterdsp) to (hardware ethernet "MAC-ADDRESS-OF-ETHERNET-INTERFACE") but when I try to start the dhcpd.conf server it gives the same error, and the log message is the same. I don't know why the DHCP server is not loading the changes I made to the config file, I even restart the server several times with the same problem.

Thanks for your help

Enrique

smallpond 02-03-2016 01:31 PM

I'm not sure how you got the idea that you could put a name where the hardware ethernet address goes, but in almost every distro, when you install software you also install documentation which can be retrieved with the "man" command. In this case the command
Code:

man dhcpd.conf
should print over 2400 lines of documentation which includes examples for every item in the configuration. An example for your case is given below. Add the MAC in the form given and post back if you are still getting an error.

Code:

      group {
        filename "Xncd19c";
        next-server ncd-booter;

        host ncd2 { hardware ethernet 0:c0:c3:88:2d:81; }
        host ncd3 { hardware ethernet 0:c0:c3:00:14:11; }
      }


EDTejada 02-04-2016 05:48 PM

I think I didn't express myself clearly (I tend to forget some things). The dhcpd.conf with the name on it was written by the system during the installation, that's why it lookd weird for me when I opened it at first. I changed that name with the MAC address (already did that before my first post) and got the same error.

Anyhow, I managed to solve the problem. I found that I can't change the config file only, I need to change the entries on the DB of Rocks in order to change some things. So I change the MAC using the commands from rocks and the DHCP server started working. Now I have another problem. The DHCP server is listening an getting DHCP request, I used tcpdump to view the requests, but the server is not assigning IPs to the compute node. I haven't look any further on to that problem, I'll check that tomorrow.

Thanks for your help.

BTW, forgive my English as it is not my native language.


All times are GMT -5. The time now is 04:23 AM.