[OpenWrt-Devel] Recommended settings ip6 DNS server / dnsmasq

Stefan Lippers-Hollmann s.l-h at gmx.de
Mon Aug 17 16:11:53 EDT 2015


On 2015-08-17, Jean-Michel Pouré - GOOZE wrote:
> Dear Steven,
> Thanks for this kind response.
> > " addr inet6: 2a01:e35:87d8:xxxx::953/128 Scope:Global"
> OK, I cannot find the lease in Luci, but here is /tmp/hosts/odhcpd

LuCI should show it on Status/ Overview, quite to the bottom under 
"DHCPv6 Leases".

> # br-lan 0004901071a15f278795aa0dd83bde8bzzzz 49874f74 - 1439881026 953
> 128 2a01:e35:87d8:xxxx::953/128
> Is my duid 0004901071a15f278795aa0dd83bde8bzzzz?

Yes, but you need to restart odhcpd(IPv6) (and dnsmasq(IPv4) after 
changing /etc/config/dhcp, doing that clears /tmp/hosts/odhcpd as a 
side effect.

> > At some point using the mac-address (option mac) should work here
> > as well but it might be broken currently. I will put it on my todo.

This is basically a question I was planning to ask, right now (as in 
trunk r46589 on a TP-Link TL-WDR4300) it seems that specifying the
duid is necessary. 

For my personal situation (virtual machines (kvm) for testing differing 
stateless systems, I give each of the VM definitions a static MAC/ IPv4
mapping and DNS entry - but I can't guess the duid for different OS 
images in advance), it would be great if it were possible to omit the 
duid and use the MAC address exclusively.

> I used:
> config host                     
>         option name 'sony-vaio'
>         option ip 'xxxxxxxx'          
>         option mac '54:42:49:87:xx:xx'           
> config host
>         option duid '0004901071a15f278795aa0dd83bde8bzzzz'
>         option hostid '3'    

What works for me, is this

config host
	option name 'foobar'
	option mac 'BC:5F:F4:XX:XX:XX'
	option ip ''
	option duid '00020000ab119da6fe0cXXXXXXXX'
	option hostid '100700'
	option dns '1'

The dns option should be optional, but is very convenient for me; I make 
quite heavy use of local (forward- and reverse) local DNS entries for
physical and virtual systems.

> and it does not work. The assigned address is still
> 2a01:e35:87d8:xxxx::953

Most likely because you didn't restart odhcpd - or eventually because
you split it into two config sections (I'm not sure if that's valid).

	Stefan Lippers-Hollmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150817/eef27f67/attachment.sig>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list