dhcp 4.2.0-P2 and LDAP: No subnet declaration for eth0

Richard Pijnenburg richard at softwaredev.nl
Thu Feb 3 20:35:08 UTC 2011

From: dhcp-users-bounces+richard=softwaredev.nl at lists.isc.org [mailto:dhcp-users-bounces+richard=softwaredev.nl at lists.isc.org] On Behalf Of Juergen Northe
Sent: donderdag 3 februari 2011 18:41
To: dhcp-users at lists.isc.org
Subject: dhcp 4.2.0-P2 and LDAP: No subnet declaration for eth0


I have trouble running dhcp with ldap. Starting the service end into
the well known error message  "No subnet declaration for eth0
So I checked the network settings, ldap.conf and dhcp config in the
ldap-tree several times but I can't find the missing or wrong entry in
my configs.
Weeks ago, I had nearly the same config running on Fedora 13 with
dhcpd-4.1x without any problems. But this one makes me crazy:

* Here are the facts:
I compiled and installed dhcpd 4.2.0-p2 --with-ldapcrypto on Centos
5.5 without any erros or warnings and copied the dhcp.schema to ldaps
schema directory.   (with slapd.conf include entry).
uname -a
2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64
x86_64 GNU/Linux

ip  a l
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:xx:yy:zz:6e:5c brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth0

cat /etc/dhcpd.conf
ldap-server     "jh-server254.intra.company.de";
ldap-port       389;
ldap-username   "cn=Manager,dc=company,dc=de";
ldap-password   "xxxxxxxx";
ldap-base-dn    "dc=company,dc=de";
ldap-method     dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

ldap tree
dn: cn=jh-server254.intra.company.de,dc=company,dc=de
objectClass: top
objectClass: dhcpServer
cn: jh-server254.intra.company.de
dhcpServiceDN: cn=DHCP Config,dc=company,dc=de

dn: cn=DHCP Config,dc=company,dc=de
objectClass: top
objectClass: dhcpService
objectClass: dhcpOptions
cn: DHCP Config
dhcpPrimaryDN: cn=jh-server254.intra.company.de,dc=company,dc=de
dhcpServerDN: cn=jh-server254.intra.company.de,dc=company,dc=de
dhcpStatements: default-lease-time 36000
dhcpStatements: max-lease-time 86000
dhcpStatements: one-lease-per-client true
dhcpStatements: ddns-update-style ad-hoc
dhcpStatements: use-host-dec1-names; true

dn: cn=NETZ-172-17-0-0,cn=DHCP Config,dc=company,dc=de
objectClass: top
objectClass: dhcpSharedNetwork
cn: NETZ-172-17-0-0

dn: cn=,cn=NETZ-172-17-0-0,cn=DHCP Config,dc=company,dc=de
objectClass: top
objectClass: dhcpSubnet
objectClass: dhcpOptions
dhcpNetMask: 16
dhcpOption: subnet-mask
dhcpOption: broadcast-address
dhcpOption: domain-name-servers
dhcpOption: netbios-name-servers
dhcpOption: routers
dhcpOption: time-servers
dhcpOption: ntp-servers
dhcpOption: smtp-server
dhcpRange: dynamic-bootp
dhcpStatements: local-address

For me the subnet declaration seems to contain all necessary
instructions. The interface eth0 is up and running.
I have no idea how find out whats wrong with the subnet declaration.
Is there a new 'interface' option ?

Any help or hint would be appreciated  !


Dear Jürgen,


Can you check the logfile "/var/log/dhcp-ldap-startup.log".

There you should be able to see with what the dhcp server is starting up with.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110203/53a7ee2f/attachment.html>

More information about the dhcp-users mailing list