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

Juergen Northe juergen.northe at googlemail.com
Thu Feb 3 17:41:19 UTC 2011


Hello,
I have trouble running dhcp with ldap. Starting the service end into
the well known error message  "No subnet declaration for eth0
(172.17.5.254)."
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 172.17.5.254/16 brd 172.17.255.255 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=172.17.0.0,cn=NETZ-172-17-0-0,cn=DHCP Config,dc=company,dc=de
objectClass: top
objectClass: dhcpSubnet
objectClass: dhcpOptions
cn: 172.17.0.0
dhcpNetMask: 16
dhcpOption: subnet-mask 255.255.0.0
dhcpOption: broadcast-address 172.17.255.255
dhcpOption: domain-name-servers 172.17.5.8
dhcpOption: netbios-name-servers 172.17.5.8
dhcpOption: routers 172.17.5.254
dhcpOption: time-servers 172.17.5.1
dhcpOption: ntp-servers 172.17.5.1
dhcpOption: smtp-server 172.17.5.2
dhcpRange: dynamic-bootp 172.17.100.100 172.17.100.200
dhcpStatements: local-address 172.17.5.254

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  !
Regards
Jürgen



More information about the dhcp-users mailing list