Re: [Dnsmasq-discuss] Win7 does not lease an IPv6-Address

2012-02-19 Thread Simon Kelley

On 19/02/12 01:41, Conrad Kostecki wrote:

Am 19.02.2012 00:06, schrieb Simon Kelley:

On 18/02/12 23:04, Conrad Kostecki wrote:

Am 19.02.2012 00:00, schrieb Simon Kelley:


Do you have this working with another DHCP server, by any chance?


Hi Simon,
do you have any recommendation for me, which one I can test?


I've not tried the server, but the Dibbler client and relay have
behaved well in my testing and are easy to configure and well
documented. ISC have a dhcpv6 server too.

Cheers,

Simon.


Hi Simon,
i've installed now dibbler and tried so get an ipv6 with Win7. It fails.
Win7 timeouts the same way as with dnsmasq.
Maybe you see, why its failing:

The only error I see, is: Unable to find suitable vendor-specific info
option.
The Log @00:27:15 repeats every few seconds.


2012.02.19 00:27:12 Server NoticeMy pid (28871) is stored in
/var/lib/dibbler/server.pid
2012.02.19 00:27:12 Server NoticeDetected iface tun0/9, MAC=5d:da:74:9d.
2012.02.19 00:27:12 Server NoticeDetected iface ppp0/8, MAC=.
2012.02.19 00:27:12 Server NoticeDetected iface eth2.7/7,
MAC=00:0f:c9:04:fd:01.
2012.02.19 00:27:12 Server NoticeDetected iface sit0/6, MAC=00:00:00:00.
2012.02.19 00:27:12 Server NoticeDetected iface wlan0/5,
MAC=94:0c:6d:be:ed:30.
2012.02.19 00:27:12 Server NoticeDetected iface eth2/4,
MAC=00:0f:c9:04:fd:01.
2012.02.19 00:27:12 Server NoticeDetected iface eth1/3,
MAC=00:0f:c9:04:fd:00.
2012.02.19 00:27:12 Server NoticeDetected iface eth0/2,
MAC=00:0f:c9:04:fc:ff.
2012.02.19 00:27:12 Server NoticeDetected iface lo/1,
MAC=00:00:00:00:00:00.
2012.02.19 00:27:12 Server NoticeParsing /etc/dibbler/server.conf
config file...
2012.02.19 00:27:12 Server Debug 0 per-client configurations
(exceptions) added.
2012.02.19 00:27:12 Server Debug Parsing /etc/dibbler/server.conf done.
2012.02.19 00:27:12 Server Info  0 client class(es) defined.
2012.02.19 00:27:12 Server Debug 1 interface(s) specified in
/etc/dibbler/server.conf
2012.02.19 00:27:12 Server Info  Mapping allow, deny list to class
0:0 allow/deny entries in total.
2012.02.19 00:27:12 Server Info  Interface eth0/2 configuration has
been loaded.
2012.02.19 00:27:12 Server NoticeRunning in stateful mode.
2012.02.19 00:27:12 Server Debug Bulk-leasequery: enabled=no, TCP
port=547, max conns=10, timeout=300
2012.02.19 00:27:12 Server Info  My DUID is
00:01:00:01:16:d2:ed:96:00:0f:c9:04:fd:01.
2012.02.19 00:27:12 Server Info  Loading old address database
(server-AddrMgr.xml), using built-in routines.
2012.02.19 00:27:12 Server Info  DB timestamp:1329607421,
now()=1329607632, db is 211 second(s) old.
2012.02.19 00:27:12 Server Debug Cache:server-cache.xml file:
parsing started, expecting 1 entries.
2012.02.19 00:27:12 Server Debug Cache: Address
2a01:AAA:BBB:0:ed1c:af28:1ca:c9b8 added for client
(DUID=00:01:00:01:15:e9:74:8c:XX:XX:XX:XX:XX:XX).
2012.02.19 00:27:12 Server NoticeCreating multicast (ff02::1:2)
socket on eth0/2 (eth0/2) interface.
2012.02.19 00:27:12 Server NoticeCreating link-local
(fe80::20f:c9ff:fe04:fcff) socket on eth0/2 interface.
2012.02.19 00:27:12 Server Debug Cache: size set to 1048576 bytes, 1
cache entry size is 87 bytes, so maximum 12052 address-client pair(s)
may be cached.
2012.02.19 00:27:12 Server Debug Increased pools usage: currently 0
address(es) are leased.
2012.02.19 00:27:12 Server NoticeAccepting connections. Next event
in 4294967295 second(s).
2012.02.19 00:27:15 Server Debug Received 88 bytes on interface
eth0/2 (socket=4, addr=fe80::25c6:4787:2746:9530.).
2012.02.19 00:27:15 Server Debug FQDN: FQDN option received: fqdn
name=Valkyrie
2012.02.19 00:27:15 Server Warning   Option type 16 not supported yet.
2012.02.19 00:27:15 Server Warning   Option type 16 invalid. Option ignored.
2012.02.19 00:27:15 Server NoticeReceived SOLICIT on
eth0/2,TransID=0x22a04, 5 opts: 8 1 3 39 6, 0 relay(s).
2012.02.19 00:27:15 Server Debug 0 answers buffered. Old reply for
transID=22a04 not found. Generating new answer.
2012.02.19 00:27:15 Server NoticeIA option (with IAADDR suboptions
missing) received. Assigning one address.
2012.02.19 00:27:15 Server Debug Client requested unspecified (::)
address. Hint ignored.
2012.02.19 00:27:15 Server Debug Cache: Cached address for client
(DUID=00:01:00:01:15:e9:74:8c:XX:XX:XX:XX:XX:XX) found:
2a01:AAA:BBB:0:ed1c:af28:1ca:c9b8
2012.02.19 00:27:15 Server Info  Cache: Cached address
2a01:AAA:BBB:0:ed1c:af28:1ca:c9b8 found. Welcome back.
2012.02.19 00:27:15 Server Info  Client requested ::, got
2a01:AAA:BBB:0:ed1c:af28:1ca:c9b8 (IAID=242020425, pref=86400,valid=172800).
2012.02.19 00:27:15 Server Debug Adding client
(DUID=00:01:00:01:15:e9:74:8c:XX:XX:XX:XX:XX:XX) to addrDB.
2012.02.19 00:27:15 Server Debug Adding IA (IAID=242020425) to addrDB.
2012.02.19 00:27:15 Server Debug Adding
2a01:AAA:BBB:0:ed1c:af28:1ca:c9b8 to IA (IAID=242020425) to addrDB.
20

Re: [Dnsmasq-discuss] Win7 does not lease an IPv6-Address

2012-02-19 Thread Conrad Kostecki
Am 19.02.2012 12:28, schrieb Simon Kelley:
> On 19/02/12 01:41, Conrad Kostecki wrote:
>> Am 19.02.2012 00:06, schrieb Simon Kelley:
>>> On 18/02/12 23:04, Conrad Kostecki wrote:
 Am 19.02.2012 00:00, schrieb Simon Kelley:
>
> Do you have this working with another DHCP server, by any chance?

 Hi Simon,
 do you have any recommendation for me, which one I can test?

>>> I've not tried the server, but the Dibbler client and relay have
>>> behaved well in my testing and are easy to configure and well
>>> documented. ISC have a dhcpv6 server too.
>>>
>>> Cheers,
>>>
>>> Simon.
>>>
>> Hi Simon,
>> i've installed now dibbler and tried so get an ipv6 with Win7. It fails.
>> Win7 timeouts the same way as with dnsmasq.
>> Maybe you see, why its failing:
>>
>> The only error I see, is: Unable to find suitable vendor-specific info
>> option.
>
> This comes from someone who has it working: the message is to check
> your radvd config:
>
> -
>
>  [...]
>
Hello Simon,
so do I need to use radvd simultaneously with dnsmasq, in order to get
stateful dhcpv6?
I've now enabled it and some sort of success. Both options
(AdvManagedFlag, AdvOtherConfigFlag) are enabled.
My Win7 gets an IPv6-Address and a DNS-Server for ipv6, but not an
gateway. I guess, I need a correct option6 for gateway, but I don't know
how to name it. Where can I find those option names, as I was using
numbers for ipv4 (like 3 for gateway, or 40 for dns-domain-name).

So far, i've only set:
dhcp-option=option6:dns-server,[2a01:AAA:BBB:0::1],[2001:4860:4860::]
dhcp-option=option6:ntp-server,[2a01:AAA:BBB:0::1]

I've also some troubles with setting static dhcpv6. For my
understanding, I've so set set instead the mac address and duid, but it
seems ignores for me with this line:
dhcp-host=00:01:00:01:15:E9:74:8C:XX:XX:XX:XX:XX:XX,2a01:AAA:BBB:0::2,Valkyrie

Thanks!
Conrad

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


Re: [Dnsmasq-discuss] Win7 does not lease an IPv6-Address

2012-02-19 Thread Simon Kelley
On 19/02/12 13:39, Conrad Kostecki wrote:

>>  [...]
>>
> Hello Simon,
> so do I need to use radvd simultaneously with dnsmasq, in order to get
> stateful dhcpv6?

Yes, it seems you do.

> I've now enabled it and some sort of success. Both options
> (AdvManagedFlag, AdvOtherConfigFlag) are enabled.
> My Win7 gets an IPv6-Address and a DNS-Server for ipv6, but not an
> gateway. I guess, I need a correct option6 for gateway, but I don't know
> how to name it. Where can I find those option names, as I was using
> numbers for ipv4 (like 3 for gateway, or 40 for dns-domain-name).

My understanding is that the gateway comes from the router
advertisements, so it's a radvd thing. There is no DHCPv6 option for
default gateway.

I'm seriously considering adding RA functionality to dnsmasq: just
enough to allow DHCP to work. That should make this sort of thing easier.

You can get a list of all the DHCPv4 options that dnsmasq knows about with

dnsmasq -w dhcp

and the same for DHCPv6 options with

dnsmasq -w dhcp6

The numbers are not the same for DHCPv4 and DHCPv6

> 
> So far, i've only set:
> dhcp-option=option6:dns-server,[2a01:AAA:BBB:0::1],[2001:4860:4860::]
> dhcp-option=option6:ntp-server,[2a01:AAA:BBB:0::1]
> 
> I've also some troubles with setting static dhcpv6. For my
> understanding, I've so set set instead the mac address and duid, but it
> seems ignores for me with this line:
> dhcp-host=00:01:00:01:15:E9:74:8C:XX:XX:XX:XX:XX:XX,2a01:AAA:BBB:0::2,Valkyrie

You are giving a (very long) MAC address there, to set the DUID, you
need to precede it with "id:", so this should be

dhcp-host=id:00:01:00:01:15:E9:74:8C:XX:XX:XX:XX:XX:XX,2a01:AAA:BBB:0::2,Valkyrie
  ^^^

HTH


Simon.




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


[Dnsmasq-discuss] no address range available for DHCPv6

2012-02-19 Thread e9hack
Hi,

I'm trying to check the DHCP6 capability on my ADSL router. I add the following 
options to
the dnsmasq.conf file:
dhcp-range=fec0:0:0:::100,fec0:0:0:::,48h

I get an error message in the log file of the router:
daemon.warn dnsmasq-dhcp[2449]: no address range available for DHCPv6 request 
via br0

It seems that dnsmasq accepts the IPv6 address range:
daemon.info dnsmasq-dhcp[2449]: DHCP, IP range fec0:0:0:::100 -- 
fec0:0:0:::,
lease time 2d

DHCP works in parallel without any problem.

Regards,
Hartmut




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