Problem to set up DHCP for ipv6 - subnet_number():inet.c:45: Addr/mask length mismatch

Reed Xia huaqin2005 at gmail.com
Thu May 26 09:10:21 UTC 2016


Hi all,

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!

*Environment:*

   - PC with Ubuntu 14.04, connected to a homeware device.
   - Internet Systems Consortium DHCP Server 4.3.4



*My steps and log:*

//It worked well when I started dhcpd for ipv4:

root at johw-Lenovo:/etc# /root/dhcp-4.3.4/server/dhcpd -cf dhcpd.conf eth0
start
Internet Systems Consortium DHCP Server 4.3.4
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: dhcpd.conf
Database file: /var/db/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 0 leases to leases file.

No subnet declaration for start (no IPv4 addresses).
** Ignoring requests on start.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface start is attached. **

Listening on LPF/eth0/8c:89:a5:ba:66:0a/192.168.6.0/24
Sending on   LPF/eth0/8c:89:a5:ba:66:0a/192.168.6.0/24
Sending on   Socket/fallback/fallback-net

//Got error when it's for ipv6

root at johw-Lenovo:/etc# /root/dhcp-4.3.4/server/dhcpd -6 -cf dhcp6.conf eth0
start
Internet Systems Consortium DHCP Server 4.3.4
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcpd.conf
Database file: /var/db/dhcpd6.leases
PID file: /var/run/dhcpd6.pid
Wrote 0 NA, 0 TA, 0 PD leases to lease file.
subnet_number():inet.c:45: Addr/mask length mismatch.

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
root at johw-Lenovo:/etc#

--------------------------------------------------------------------------

*file content of dhcpd.conf*

*ddns-update-style none;*

*subnet 192.168.6.0 netmask 255.255.255.0 {*

*  range 192.168.6.10 192.168.6.20;*

*  option domain-name-servers 192.168.6.6;*
*  option broadcast-address 192.168.6.255;*
*  option routers 192.168.6.1;*

*  default-lease-time 320;*
*  max-lease-time 720;*
*  option domain-name "test_redhat.com <http://test_redhat.com>";*
*}*

*next-server 192.168.6.3;*

*file content of dhcpd6.conf*

*ddns-update-style none;*
*subnet6 2001::/64 {*
*  range6 2001::10 2001::20;*
*  option dhcp6.name-servers 2001::6;*
*  option dhcp6.domain-search "test.example.com <http://test.example.com>";*
*  default-lease-time 320;*
*  max-lease-time 720;*
*}*
*next-server 2001::3;*


-- 
Thanks,
- Reed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20160526/708c601b/attachment.html>


More information about the dhcp-users mailing list