Re: [Dnsmasq-discuss] IPv6 host file syntax

2013-12-18 Thread dnsmasq . bertrandb


 Message du 17/12/13 19:01
 De : Shixiong Shang - sparkofwisdom.cl...@gmail.com
 A : dnsmasq-discuss@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@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
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] IPv6 host file syntax

2013-12-18 Thread Shixiong Shang
Got it! Now it works like a charm!

Thanks, Simon! Thanks, Bertrand!!


On Dec 17, 2013, at 4:18 PM, Simon Kelley si...@thekelleys.org.uk wrote:

 On 17/12/13 18:00, Shixiong Shang wrote:
 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
 
 
 If you really want to use DUID, then the hex should have id: in front
 
 id:00:03:00:06:fa:16:3e:03:63:36,..
 
 but calculating DUIDs is dangerous and fragile. The latest dnsmasq releases 
 allow you to use MAC addresses directly.
 
 The IPv6 addresses should have [...] round them
 
 .,[2001:db8:3::1]
 
 Cheers,
 
 Simon.
 
 
 
 However, I cannot find any document to verify whether the above syntax is 
 correct. Would you please clarify?
 
 Thanks!
 
 Shixiong
 
 
 
 
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
 
 
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] IPv6 host file syntax

2013-12-17 Thread Shixiong Shang
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





___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] IPv6 host file syntax

2013-12-17 Thread Simon Kelley

On 17/12/13 18:00, Shixiong Shang wrote:

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



If you really want to use DUID, then the hex should have id: in front

id:00:03:00:06:fa:16:3e:03:63:36,..

but calculating DUIDs is dangerous and fragile. The latest dnsmasq 
releases allow you to use MAC addresses directly.


The IPv6 addresses should have [...] round them

.,[2001:db8:3::1]

Cheers,

Simon.




However, I cannot find any document to verify whether the above syntax is 
correct. Would you please clarify?

Thanks!

Shixiong





___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss