<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><title>dhcp 4.2.0-P2 and LDAP: No subnet declaration for eth0</title><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.avgcert, li.avgcert, div.avgcert
        {mso-style-name:avgcert;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> dhcp-users-bounces+richard=softwaredev.nl@lists.isc.org [mailto:dhcp-users-bounces+richard=softwaredev.nl@lists.isc.org] <b>On Behalf Of </b>Juergen Northe<br><b>Sent:</b> donderdag 3 februari 2011 18:41<br><b>To:</b> dhcp-users@lists.isc.org<br><b>Subject:</b> dhcp 4.2.0-P2 and LDAP: No subnet declaration for eth0<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-size:10.0pt'>Hello,<br>I have trouble running dhcp with ldap. Starting the service end into<br>the well known error message  "No subnet declaration for eth0<br>(172.17.5.254)."<br>So I checked the network settings, ldap.conf and dhcp config in the<br>ldap-tree several times but I can't find the missing or wrong entry in<br>my configs.<br>Weeks ago, I had nearly the same config running on Fedora 13 with<br>dhcpd-4.1x without any problems. But this one makes me crazy:<br><br>* Here are the facts:<br>I compiled and installed dhcpd 4.2.0-p2 --with-ldapcrypto on Centos<br>5.5 without any erros or warnings and copied the dhcp.schema to ldaps<br>schema directory.   (with slapd.conf include entry).<br>------------<br>uname -a<br>------------><br>2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64<br>x86_64 GNU/Linux<br><br>------------<br>ip  a l<br>------------><br>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000<br>    link/ether 00:xx:yy:zz:6e:5c brd ff:ff:ff:ff:ff:ff<br>    inet 172.17.5.254/16 brd 172.17.255.255 scope global eth0<br><br>------------<br>cat /etc/dhcpd.conf<br>------------><br>ldap-server     "jh-server254.intra.company.de";<br>ldap-port       389;<br>ldap-username   "cn=Manager,dc=company,dc=de";<br>ldap-password   "xxxxxxxx";<br>ldap-base-dn    "dc=company,dc=de";<br>ldap-method     dynamic;<br>ldap-debug-file "/var/log/dhcp-ldap-startup.log";<br><br>------------<br>ldap tree<br>------------<br>dn: cn=jh-server254.intra.company.de,dc=company,dc=de<br>objectClass: top<br>objectClass: dhcpServer<br>cn: jh-server254.intra.company.de<br>dhcpServiceDN: cn=DHCP Config,dc=company,dc=de<br><br>dn: cn=DHCP Config,dc=company,dc=de<br>objectClass: top<br>objectClass: dhcpService<br>objectClass: dhcpOptions<br>cn: DHCP Config<br>dhcpPrimaryDN: cn=jh-server254.intra.company.de,dc=company,dc=de<br>dhcpServerDN: cn=jh-server254.intra.company.de,dc=company,dc=de<br>dhcpStatements: default-lease-time 36000<br>dhcpStatements: max-lease-time 86000<br>dhcpStatements: one-lease-per-client true<br>dhcpStatements: ddns-update-style ad-hoc<br>dhcpStatements: use-host-dec1-names; true<br><br>dn: cn=NETZ-172-17-0-0,cn=DHCP Config,dc=company,dc=de<br>objectClass: top<br>objectClass: dhcpSharedNetwork<br>cn: NETZ-172-17-0-0<br><br>dn: cn=172.17.0.0,cn=NETZ-172-17-0-0,cn=DHCP Config,dc=company,dc=de<br>objectClass: top<br>objectClass: dhcpSubnet<br>objectClass: dhcpOptions<br>cn: 172.17.0.0<br>dhcpNetMask: 16<br>dhcpOption: subnet-mask 255.255.0.0<br>dhcpOption: broadcast-address 172.17.255.255<br>dhcpOption: domain-name-servers 172.17.5.8<br>dhcpOption: netbios-name-servers 172.17.5.8<br>dhcpOption: routers 172.17.5.254<br>dhcpOption: time-servers 172.17.5.1<br>dhcpOption: ntp-servers 172.17.5.1<br>dhcpOption: smtp-server 172.17.5.2<br>dhcpRange: dynamic-bootp 172.17.100.100 172.17.100.200<br>dhcpStatements: local-address 172.17.5.254<br><br>For me the subnet declaration seems to contain all necessary<br>instructions. The interface eth0 is up and running.<br>I have no idea how find out whats wrong with the subnet declaration.<br>Is there a new 'interface' option ?<br><br>Any help or hint would be appreciated  !<br>Regards<br>Jürgen<br></span><o:p></o:p></p><div align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#ACA899' align=center></div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Dear Jürgen,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Can you check the logfile "</span><span style='font-family:"Calibri","sans-serif"'>/var/log/dhcp-ldap-startup.log".<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>There you should be able to see with what the dhcp server is starting up with.</span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=avgcert><o:p> </o:p></p></div></body></html>