<div dir="ltr">Hi all,<div><br></div><div>I'm trying to set up DHCP for ipv4 and ipv6, and met the problem of "subnet_number():inet.c:45: Addr/mask length mismatch", I tried to google for days but did not get proper solution, could someone please help look into it? Appreciate every comment and reply, thanks!</div><div><br></div><div><b>Environment:</b></div><div><ul><li>PC with Ubuntu 14.04, connected to a homeware device.<br></li><li>Internet Systems Consortium DHCP Server 4.3.4<br></li></ul></div><div><br></div><div><br></div><div><b>My steps and log:</b></div><div><div><br></div><div>//It worked well when I started dhcpd for ipv4:</div><div><br></div><div>root@johw-Lenovo:/etc#<span style="background-color:rgb(217,234,211)"> /root/dhcp-4.3.4/server/dhcpd -cf dhcpd.conf eth0 start</span></div><div>Internet Systems Consortium DHCP Server 4.3.4</div><div>Copyright 2004-2016 Internet Systems Consortium.</div><div>All rights reserved.</div><div>For info, please visit <a href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a></div><div>Config file: dhcpd.conf</div><div>Database file: /var/db/dhcpd.leases</div><div>PID file: /var/run/dhcpd.pid</div><div>Wrote 0 leases to leases file.</div><div><br></div><div>No subnet declaration for start (no IPv4 addresses).</div><div>** Ignoring requests on start.  If this is not what</div><div>   you want, please write a subnet declaration</div><div>   in your dhcpd.conf file for the network segment</div><div>   to which interface start is attached. **</div><div><br></div><div>Listening on LPF/eth0/8c:89:a5:ba:66:0a/<a href="http://192.168.6.0/24">192.168.6.0/24</a></div><div>Sending on   LPF/eth0/8c:89:a5:ba:66:0a/<a href="http://192.168.6.0/24">192.168.6.0/24</a></div><div>Sending on   Socket/fallback/fallback-net</div><div><br></div><div>//Got error when it's for ipv6</div><div><br></div><div>root@johw-Lenovo:/etc#<span style="background-color:rgb(217,234,211)"> /root/dhcp-4.3.4/server/dhcpd -6 -cf dhcp6.conf eth0 start</span></div><div>Internet Systems Consortium DHCP Server 4.3.4</div><div>Copyright 2004-2016 Internet Systems Consortium.</div><div>All rights reserved.</div><div>For info, please visit <a href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a></div><div>Config file: /etc/dhcpd.conf</div><div>Database file: /var/db/dhcpd6.leases</div><div>PID file: /var/run/dhcpd6.pid</div><div>Wrote 0 NA, 0 TA, 0 PD leases to lease file.</div><div><span style="background-color:rgb(244,204,204)">subnet_number():inet.c:45: Addr/mask length mismatch.</span></div><div><br></div><div>If you think you have received this message due to a bug rather</div><div>than a configuration issue please read the section on submitting</div><div>bugs on either our web page at <a href="http://www.isc.org">www.isc.org</a> or in the README file</div><div>before submitting a bug.  These pages explain the proper</div><div>process and the information we find helpful for debugging..</div><div><br></div><div>exiting.</div><div>root@johw-Lenovo:/etc# </div></div><div><br></div><div>--------------------------------------------------------------------------</div><div><br></div><div><b>file content of dhcpd.conf</b><br></div><div><br></div><div><div><i>ddns-update-style none;</i></div><div><i><br></i></div><div><i>subnet 192.168.6.0 netmask 255.255.255.0 {</i></div><div><i><br></i></div><div><i>  range 192.168.6.10 192.168.6.20;</i></div><div><i><br></i></div><div><i>  option domain-name-servers 192.168.6.6;</i></div><div><i>  option broadcast-address 192.168.6.255;</i></div><div><i>  option routers 192.168.6.1;</i></div><div><i><br></i></div><div><i>  default-lease-time 320;</i></div><div><i>  max-lease-time 720;</i></div><div><i>  option domain-name "<a href="http://test_redhat.com">test_redhat.com</a>";</i></div><div><i>}</i></div><div><i><br></i></div><div><i>next-server 192.168.6.3;</i></div></div><div><br clear="all"><div><b>file content of dhcpd6.conf</b></div><div><br></div><div><div><i>ddns-update-style none;</i></div><div><i>subnet6 2001::/64 {</i></div><div><i>  range6 2001::10 2001::20;</i></div><div><i>  option dhcp6.name-servers 2001::6;</i></div><div><i>  option dhcp6.domain-search "<a href="http://test.example.com">test.example.com</a>";</i></div><div><i>  default-lease-time 320;</i></div><div><i>  max-lease-time 720;</i></div><div><i>}</i></div><div><i>next-server 2001::3;</i></div></div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="comic sans ms, sans-serif">Thanks,</font><div><font face="comic sans ms, sans-serif">- Reed</font></div></div></div>
</div></div>