[Dnsmasq-discuss] Need some indications to patch dnsmasq to bypass /64 limit

2013-11-12 Thread dnsmasq . bertrandb
'llo

My hosting provider give me only a /96 ipv6 adress and I xant put on my host 
some vm with libvirt and dhcp.
I got the message "no dhcpv6 range available ..." since the bridge adress have 
a prefix > 64.
Since the dnsmasq.conf is build by libvirt I think that the solution is to path 
dnsmasq.
But dnsmasq seems tom e quite complex what are the place to patch dhcp6.c and 
radvd.c ?


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


Re: [Dnsmasq-discuss] Need some indications to patch dnsmasq, to bypass /64 limit

2013-11-16 Thread dnsmasq . bertrandb

You should be able to configure DHCPv6 in dnsmasq to handle larger
prefixes. You can't do SLAAC address allocation that way, because it
depends on a 64-bit prefix and a 64-bit EUI-64 id, but DHCP works.

Something like

dhcp-range=,,92

The prefix length MUST match the prefix length configured in the local
inerface.


Thanks for the response i try
I make the modification on /var/lib/libvirt/dnsmasq/reseau.conf and kill up the 
process
so my dnsmasq.conf is :
##WARNING:  THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
##OVERWRITTEN AND LOST.  Changes to this configuration should be made using:
##virsh net-edit default-ipv6
## or other application using the libvirt API.
##
## dnsmasq conf file created by libvirt
strict-order
domain-needed
domain=root.belguise.eu
expand-hosts
local=/root.belguise.eu/
pid-file=/var/run/libvirt/network/default-ipv6.pid
except-interface=lo
bind-dynamic
interface=virbr0
dhcp-range=192.168.122.2,192.168.122.254
dhcp-no-override
dhcp-range=2a00:c70:1:xxx:xxx:xxx:8106:901,2a00:c70:1:xxx:xxx:xxx:8106:f01,97
dhcp-leasefile=/var/lib/libvirt/dnsmasq/default-ipv6.leases
dhcp-lease-max=1790
dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default-ipv6.hostsfile
addn-hosts=/var/lib/libvirt/dnsmasq/default-ipv6.addnhosts
#enable-ra

mybridge is on same prfix
root@root:~# ifconfig virbr0
virbr0Link encap:Ethernet  HWaddr 52:54:00:89:5a:8e
  inet adr:192.168.122.1  Bcast:192.168.122.255  Masque:255.255.255.0
  adr inet6: 2a00:c70:1:xxx:xxx:xxx:8106:/97 Scope:Global

and I got
Nov 16 09:53:51 root dnsmasq-dhcp[2371]: no address range available for DHCPv6 r
equest via virbr0

if I change the prefix in /64 i see an RTR-ADVERT in log
not with /97 (i'd try with /112 too)
I think that dhclient on my vm's send an RTR-SOLLICIT whish is the origin of 
the message and don't send DHCP stuff since there is no reponse to is 
RTR-SOLLICIT

On my vm (debian wheezy) my /etc/network/interfaces is

iface eth0 inet6 dhcp
accept-ra 0
autoconf 0



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


Re: [Dnsmasq-discuss] Need some indications to patch dnsmasq, to exclusive) to bypass /64 limit

2013-11-22 Thread dnsmasq . bertrandb

Le 21/11/2013 13:46, Simon Kelley - si...@thekelleys.org.uk a écrit :
Ok that's work ...
the problem was ...
linvirt doesn't put prefix on dhcp-range
when i made modification on my /var/lib/libvirt/dnsmas/default-ipv6.conf 
file and send the kill -HUp to the process dnsmasq did not réinterpret 
the modified dhcp-range instruction.


If i kill the process and launch /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default-ipv6.conf things are ok.


thanks for your help i'll make a report to libvirt guy "DNSMASQ need 
prefix in dhcp-range for dhcpv6"



On 16/11/13 09:08, dnsmasq.bertra...@dfgh.net wrote:

You should be able to configure DHCPv6 in dnsmasq to handle larger
prefixes. You can't do SLAAC address allocation that way, because it
depends on a 64-bit prefix and a 64-bit EUI-64 id, but DHCP works.

Something like

dhcp-range=,,92

The prefix length MUST match the prefix length configured in the local
inerface.


Thanks for the response i try
I make the modification on /var/lib/libvirt/dnsmasq/reseau.conf and kill
up the process
so my dnsmasq.conf is :
##WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY 
TO BE
##OVERWRITTEN AND LOST. Changes to this configuration should be made 
using:

## virsh net-edit default-ipv6
## or other application using the libvirt API.
##
## dnsmasq conf file created by libvirt
strict-order
domain-needed
domain=root.belguise.eu
expand-hosts
local=/root.belguise.eu/
pid-file=/var/run/libvirt/network/default-ipv6.pid
except-interface=lo
bind-dynamic
interface=virbr0
dhcp-range=192.168.122.2,192.168.122.254
dhcp-no-override
dhcp-range=2a00:c70:1:xxx:xxx:xxx:8106:901,2a00:c70:1:xxx:xxx:xxx:8106:f01,97 



dhcp-leasefile=/var/lib/libvirt/dnsmasq/default-ipv6.leases
dhcp-lease-max=1790
dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default-ipv6.hostsfile
addn-hosts=/var/lib/libvirt/dnsmasq/default-ipv6.addnhosts
#enable-ra

mybridge is on same prfix
root@root:~# ifconfig virbr0
virbr0 Link encap:Ethernet HWaddr 52:54:00:89:5a:8e
inet adr:192.168.122.1 Bcast:192.168.122.255 Masque:255.255.255.0
adr inet6: 2a00:c70:1:xxx:xxx:xxx:8106:/97 Scope:Global

and I got
Nov 16 09:53:51 root dnsmasq-dhcp[2371]: no address range available for
DHCPv6 r
equest via virbr0

if I change the prefix in /64 i see an RTR-ADVERT in log
not with /97 (i'd try with /112 too)
I think that dhclient on my vm's send an RTR-SOLLICIT whish is the
origin of the message and don't send DHCP stuff since there is no
reponse to is RTR-SOLLICIT

On my vm (debian wheezy) my /etc/network/interfaces is

iface eth0 inet6 dhcp
accept-ra 0
autoconf 0




What version of dnsmasq are you using? I just tried this with the 
latest code, and didn't see this error.


Cheers,

Simon.

___
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] DhcpV6 how to send prefixlen and default route

2013-11-23 Thread dnsmasq . bertrandb

Hello,

Alwas some problems with my /97 prefix ...

on the client side dhclient say the prefix is /64
the router advertissement is ok with ridsc6 i see that i have /97 prefix
in dhcp no option for prefixlen seems possible

Is a trick exists ?


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


Re: [Dnsmasq-discuss] DhcpV6 how to send prefixlen and default route (dnsmasq: to exclusive)

2013-11-23 Thread dnsmasq . bertrandb

Le 23/11/2013 15:06, dnsmasq.bertra...@dfgh.net a écrit :

Hello,

Alwas some problems with my /97 prefix ...

on the client side dhclient say the prefix is /64

dhclient hardcode the 64 prefix len :(



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


Re: [Dnsmasq-discuss] DhcpV6 how to send prefixlen and default route (dnsmasq: to exclusive) (dnsmasq: to exclusive)

2013-11-24 Thread dnsmasq . bertrandb

Le 23/11/2013 23:01, dnsmasq.bertra...@dfgh.net a écrit :

Le 23/11/2013 15:06, dnsmasq.bertra...@dfgh.net a écrit :

Hello,

Alwas some problems with my /97 prefix ...

on the client side dhclient say the prefix is /64

dhclient hardcode the 64 prefix len :(



Hello finally my configuration dhcpv6 work fine with dibbler-client on 
debian.

We juste need to add

inactive-mode
strict-rfc-no-routing

at the begin of /etc/dibbler/client.conf  an no inet6 configuration in 
/etc/network/interfaces




___
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 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