[Dnsmasq-discuss] dnsmasq with dhcpv6 and dhcp-host option

Simon Kelley simon at thekelleys.org.uk
Sat Jan 12 10:32:28 GMT 2013


On 12/01/13 06:04, Sheng Yang wrote:
> Hi,
>
> I'd like to using DHCPv6, but I want to assign stateful address in order
> to know which client get which address.
>
> Here is my config for dnsmasq(version 2.63, from debian testing):
>
> domain=xxxx
> dhcp-range=fc00:1234:5678:1234::1,static
> dhcp-host=00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a,fred,[fc00:1234:5678:1234::144],test,infinte
> enable-ra
> interface=eth0
> listen-address=::1
> log-dhcp
> dhcp-option=option6:dns-server,[::]
>
> But when client's dhcp6c ask for address, dnsmasq keeps giving this
> error message:
>
> Jan 12 05:54:33 dnsmasq-dhcp[5383]: no address range available for
> DHCPv6 request via eth0
>
> Here is the ip of eth0:
>
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP qlen 1000
>      link/ether 06:3d:ba:00:00:2b brd ff:ff:ff:ff:ff:ff
>      inet 10.223.161.41/26 <http://10.223.161.41/26> brd 10.223.161.63
> scope global eth0
>      inet6 fc00:1234:5678:1234::1/128 scope global
-----------------------------------^^^^^

>         valid_lft forever preferred_lft forever
>      inet6 fe80::43d:baff:fe00:2b/64 scope link
>         valid_lft forever preferred_lft forever
>

Here's the problem: the prefix length should not be 128, almost 
certainly it should be 64.

Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list