[Dnsmasq-discuss] DHCPv6 Prefix delegation

Simon Kelley simon at thekelleys.org.uk
Mon Nov 4 14:53:24 GMT 2013


On 02/11/13 18:06, mudrunka at spoje.net wrote:
> Hello,
>
> 1.) i am experimenting with DHCPv6 and possibilities of implementing
> preffix delegation... And i've found that i am not even able to get
> rudimentary DHCPv6 running, i am trying to assign adress (and possibly
> dhcpv6 options) to specified DUID using following config:
>
>
> port=0
> log-dhcp
> log-facility=/tmp/dnsmasq
> dhcp-authoritative
>
> #dhcp-host=id:00:03:00:01:00:0c:42:8d:3b:07,set:lolo,[2001:67c:2190:1a01::1/64],harvie,300
>
> dhcp-host=id:00:03:00:01:00:0c:42:8d:3b:07,set:lolo,[2001:67c:2190:1a01::1],harvie,300
>
>
>
> However it doesn't seem to work at all when i launch dnsmasq -d -C
> /etc/dnsmasq.conf... Client still can't find any DHCPv6 server (while
> ISC-DHCP server works well with -6 option)
>
> Do you have any experiences with DHCPv6? Documentation is bit lousy on
> this topic and i can't even google up any config examples or mentions of
> successful applications of dnsmasq fo DHCPv6 server...


You need a dhcp-range statement to enable the DHCPv6 server (or the 
DHCPv4 server). Even if you don't want to do dynamic address allocation, 
you need to use dhcp-range to declare the subnet and tell dnsmasq to use 
it for static address allocation only, using the "static" keyword.
>
>
> 2.) Also i have wrote following string to compile custom DHCPv6 option
> payload according to RFC:
> https://github.com/Harvie/Programs/blob/master/bash/dhcp-option.sh
>
> And included the result like this:
> dhcp-option-force=tag:lolo,25,00:00:00:00:00:00:01:2C:00:00:01:2C:1A:62:00:00:01:2c:00:00:01:2c:34:30:20:01:06:7c:21:90:1a:01:00:00:00:00:00:00:00:00
>
>
> Is it possible to specify DHCP option with custom option id and in this
> hexadecimal format?

Yes, that's allowed.


Cheers,

Simon.


>
>
> THX
>
> Best regards
> Harvie
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>




More information about the Dnsmasq-discuss mailing list