<div dir="ltr">Hi Graham,<div><br></div><div>Thanks for helping look into my problem!</div><div><br></div><div>You remind me that dhcpd only refer to the file /etc/dhcpd.conf, while dhcpd6.conf was not used actually.</div><div><br></div><div>After trying for times, I think I may resolve this problem in a weird way..</div><div><br></div><div>1. Write the following texts to /etc/dhcpd.conf</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">ddns-update-style none;<br>subnet6 2001::/64 {<br> range6 2001::10 2001::20;<br> option dhcp6.name-servers 2001::6;<br> option dhcp6.domain-search "<a href="http://test.example.com">test.example.com</a>";<br> default-lease-time 320;<br> max-lease-time 720;<br>}<br>#next-server 2001::3;</blockquote></div><div><br></div><div>2. Cd to /etc, and execute the following:</div><div><br></div><div>/root/dhcp-4.3.4/srver/dhcpd<b> -6</b> -cf dhcpd.conf eth0</div><div><br></div><div>And will have logs:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Internet Systems Consortium DHCP Server 4.3.4<br>Copyright 2004-2016 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit <a href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>Config file: /etc/dhcpd.conf<br>Database file: /var/db/dhcpd6.leases<br>PID file: /var/run/dhcpd6.pid<br>Wrote 0 NA, 0 TA, 0 PD leases to lease file.<br>Bound to *:547<br>Listening on Socket/5/eth0/2001::/64<br>Sending on Socket/5/eth0/2001::/64<br>No subnet6 declaration for dhcp.conf (no IPv6 addresses).<br>** Ignoring requests on dhcp.conf. If this is not what<br> you want, please write a subnet6 declaration<br> in your dhcpd.conf file for the network segment<br> to which interface dhcp.conf is attached. **<br><br>No subnet6 declaration for –cf (no IPv6 addresses).<br>** Ignoring requests on –cf. If this is not what<br> you want, please write a subnet6 declaration<br> in your dhcpd.conf file for the network segment<br> to which interface –cf is attached. **</blockquote></div><div><br></div><div>3. Replace /etc/dhcpd.conf with the following content:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">ddns-update-style none;<br>subnet 192.168.6.0 netmask 255.255.255.0 {<br> range 192.168.6.10 192.168.6.20;<br> option domain-name-servers 192.168.6.6;<br> option broadcast-address 192.168.6.255;<br> option routers 192.168.6.1;<br> default-lease-time 320;<br> max-lease-time 720;<br> option domain-name "<a href="http://test_redhat.com">test_redhat.com</a>";<br>}<br>next-server 192.168.6.3;</blockquote></div><div><br></div><div>4. cd to /etc and execute the following </div><div><br></div><div>/root/dhcp-4.3.4/server/dhcpd -cf dhcpd.conf eth0<br></div><div><br></div><div>5. Will have logs:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Internet Systems Consortium DHCP Server 4.3.4<br>Copyright 2004-2016 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit <a href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>Config file: dhcpd.conf<br>Database file: /var/db/dhcpd.leases<br>PID file: /var/run/dhcpd.pid<br>Wrote 1 leases to leases file.<br>Listening on LPF/eth0/8c:89:a5:ba:66:0a/<a href="http://192.168.6.0/24">192.168.6.0/24</a><br>Sending on LPF/eth0/8c:89:a5:ba:66:0a/<a href="http://192.168.6.0/24">192.168.6.0/24</a><br>Sending on Socket/fallback/fallback-net</blockquote></div><div><br></div><div>My ubuntu with this DHCP is connected to a homeware device, I checked the device's console and can see it works, it get both of IPv4 address and IPv6.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 26, 2016 at 9:00 PM, Graham Clinch <span dir="ltr"><<a href="mailto:g.clinch@lancaster.ac.uk" target="_blank">g.clinch@lancaster.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Reed,<br>
<br>
There seems to be some copy-paste confusion here with the various file names and command lines.<br>
<br>
For IPv4<br>
> root@johw-Lenovo:/etc#/root/dhcp-4.3.4/server/dhcpd -cf dhcpd.conf eth0 start<br>
[...]<br>
> Config file: dhcpd.conf<br>
[...]<br>
> *file content of dhcpd.conf*<br>
<br>
<br>
but for IPv6:<br>
> root@johw-Lenovo:/etc#/root/dhcp-4.3.4/server/dhcpd -6 -cf dhcp6.conf eth0 start<br>
[...]<br>
> Config file: /etc/dhcpd.conf<br>
[...]<br>
> *file content of dhcpd6.conf*<br>
<br>
So for IPv4, your command line is to read from 'dhcpd.conf', and dhcpd outputs that it's reading from that path, and then you report the content of (presumably) that file.<br>
<br>
But for IPv6, you command line is to read from 'dhcp6.conf', dhcpd outputs that it's reading from /etc/dhcpd.conf (a different path - the default one compiled into the dhcpd binary?), and you report the content of a file named 'dhcpd6.conf' (note additional d).<br>
<br>
I suggest you start by rechecking all the file names and command lines, since dhcpd is definitely not opening a file with a '6' in the name.<br>
<span class="HOEnZb"><font color="#888888"><br>
Graham<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>