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

Sheng Yang sheng at yasker.org
Sat Jan 12 06:04:17 GMT 2013


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 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 is a part of log of client(dhcp6c):

Jan/12/2013 05:59:39 reset a timer on eth0, state=SOLICIT, timeo=5,
retrans=35102
Jan/12/2013 06:00:14 found an interface eth0 harware 06:6f:aa:00:00:2d
Jan/12/2013 06:00:14 saved generated DUID to /var/lib/dhcpv6/dhcp6c_duid
Jan/12/2013 06:00:14 set client ID
Jan/12/2013 06:00:14 set opt_8
Jan/12/2013 06:00:14 set IA_NA iaidinfo: iaid 754974890 renewtime 0
rebindtime 0
Jan/12/2013 06:00:14 set opt_3
Jan/12/2013 06:00:14 send dst if eth0 addr is ff02::1:2%eth0 scope id is 2
Jan/12/2013 06:00:14 send solicit to ff02::1:2%eth0
Jan/12/2013 06:00:14 DUID is 00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a,
DUID_LEN is 14
Jan/12/2013 06:00:14 removing ID (ID:
00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a)
Jan/12/2013 06:00:14 DUID is , DUID_LEN is 0
Jan/12/2013 06:00:14 reset a timer on eth0, state=SOLICIT, timeo=6,
retrans=73057

BTW, assign IPv6 in range works.

If there is any hint of what can I do next, I would be appreciate!

Thank you!

--Sheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130111/f03333d6/attachment.html>


More information about the Dnsmasq-discuss mailing list