[Dnsmasq-discuss] IPv6 host file syntax

dnsmasq.bertrandb at dfgh.net dnsmasq.bertrandb at dfgh.net
Wed Dec 18 09:23:59 GMT 2013



> Message du 17/12/13 19:01
> De : "Shixiong Shang - sparkofwisdom.cloud at gmail.com"
> A : dnsmasq-discuss at lists.thekelleys.org.uk
> Copie à :
> Objet : [Dnsmasq-discuss] IPv6 host file syntax (dnsmasq: to exclusive)
>
> Hi, expert:
>
> I am using dnsmasq as DHCPv6 server and I created host file for my IPv6 DHCP range. The first field is DUID calculated by MAC, followed by hostname, and then IPv6 address.
>
> 00:03:00:06:fa:16:3e:03:63:36,host-2001-db8-3--1.openstacklocal,2001:db8:3::1
> 00:03:00:06:fa:16:3e:95:5f:6a,host-2001-db8-3--2.openstacklocal,2001:db8:3::2
> 00:03:00:06:fa:16:3e:0c:29:d6,host-2001-db8-3--f816-3eff-fe0c-29d6.openstacklocal,2001:db8:3::f816:3eff:fe0c:29d6
>
> However, I cannot find any document to verify whether the above syntax is correct. Would you please clarify?
>
> Thanks!
>
> Shixiong
>



Hello, I'm not an expert ;-) but i use libvirt and i had problem with dhcpv6
by default the dhcp clients use duid-llt begining with 00:01:00:01

My solution (because libvirt doesn't accept mac adresse in ipv6 host) is to impose use of dibbler-client
with in /etc/dibbler/client.conf:
#modifications
inactive-mode
strict-rfc-no-routing
duid-type duid-ll

the dhcp-hostfile generated by libvirt is :
root at root:~# more /var/lib/libvirt/dnsmasq/default-ipv6.hostsfile
52:54:00:4b:c2:02,192.168.122.2,vm1
52:54:00:4b:c2:03,192.168.122.3,vm2
52:54:00:4b:c2:04,192.168.122.4,vm3
52:54:00:4b:c2:05,192.168.122.5,vm4
52:54:00:4b:c2:06,192.168.122.6,vm5
52:54:00:4b:c2:07,192.168.122.7,vm6
52:54:00:4b:c2:08,192.168.122.8,vm7
52:54:00:4b:c2:09,192.168.122.9,vm8
id:00:03:00:01:52:54:00:4b:c2:02,vm1,[2a00:c70:1:xx:xx:xx:xx:101]
id:00:03:00:01:52:54:00:4b:c2:03,vm2,[2a00:c70:1:xx:xx:xx:xx:201]

cheers Bertrand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20131218/19056ac8/attachment.html>


More information about the Dnsmasq-discuss mailing list