Re: [Dnsmasq-discuss] DHCPv6 Prefix delegation

2013-11-04 Thread Simon Kelley

On 02/11/13 18:06, mudru...@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@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 Prefix delegation

2013-11-02 Thread mudrunka

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



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?



THX

Best regards
Harvie

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


Re: [Dnsmasq-discuss] DHCPv6 Prefix delegation

2013-10-08 Thread Simon Kelley

On 07/10/13 22:18, mudru...@spoje.net wrote:

Hello,
is it possible to do prefix delegation using DHCPv6 in dnsmasq?


No.



I'd really like to do this. i am using dnsmasq to successfully serve
network with 2000+ clients, but now i need to support IPv6 too, but all
of these client router devices (running Mikrotik RouterOS) does not
understand DHCPv6 address assignment, they only understand DHCPv6 prefix
delegation (and if they need single address, they just take it from
delegated prefix). And i don't even need such thing as assigning single
address as i have link-local adresses and SLAAC. What i really need is
prefix delegation.

I've tried this:

dhcp-host=id:00:03:00:01:00:0c:42:8c:3b:06,[2001:67c:2142:1a01::1/64],lol,300


and the RouterOS DHCPv6 client completely ignored it... Is it possible
to get prefix delegation feature in dnsmasq?


The original thought was that it wouldn't be required for the sort of 
use-case dnsmasq is designed for. A small router would _receive_ and 
delegation, and then hand out addresses from the range. Given that the 
IETF homenet WG seems to be moving towards recursive PD within a 
homenet, this may have to change. I don't anticipate it happening soon 
enough to solve your immediate problem though. Sorry.




Cheers,

Simon.




Thanks


Best regards
Tomas

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

2013-10-07 Thread mudrunka

Hello,
is it possible to do prefix delegation using DHCPv6 in dnsmasq?

I'd really like to do this. i am using dnsmasq to successfully serve 
network with 2000+ clients, but now i need to support IPv6 too, but all 
of these client router devices (running Mikrotik RouterOS) does not 
understand DHCPv6 address assignment, they only understand DHCPv6 prefix 
delegation (and if they need single address, they just take it from 
delegated prefix). And i don't even need such thing as assigning single 
address as i have link-local adresses and SLAAC. What i really need is 
prefix delegation.


I've tried this:

dhcp-host=id:00:03:00:01:00:0c:42:8c:3b:06,[2001:67c:2142:1a01::1/64],lol,300

and the RouterOS DHCPv6 client completely ignored it... Is it possible 
to get prefix delegation feature in dnsmasq?



Thanks


Best regards
Tomas

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