[Dnsmasq-discuss] Using IPv6 DHCP

Sean Boran sean at boran.com
Tue Sep 25 09:10:43 BST 2012


Hi,

I'm doing sdome DHCPv6 tests and have a few questions :-)

First is it is possible to disable v4 respond, and only respond to v6
requests? When testing I dont want to disturb a v4 dhcp already
running.  (e.g. should I set listen-address to my IPv6 address?)

Secondly, I'm having issues assigning v6 addresses.

compiled dnsmasq-2.63, config:
--
domain=mydomain.net
dhcp-range=2001:918:ffcb:199::10, 2001:918:ffcb:199::20, ra-stateless, 24h
dhcp-sequential-ip
enable-ra
dhcp-option=option6:dns-server,[::]
log-dhcp
--


Sep 25 09:28:23 sisdns6 dnsmasq[7746]: reading /var/run/dnsmasq/resolv.conf
Sep 25 09:28:23 sisdns6 dnsmasq[7746]: using nameserver A.B.C.D#53
Sep 25 09:28:23 sisdns6 dnsmasq[7746]: exiting on receipt of SIGTERM
Sep 25 09:28:25 sisdns6 dnsmasq[8850]: started, version 2.63rc6 cachesize 150
Sep 25 09:28:25 sisdns6 dnsmasq[8850]: compile time options: IPv6
GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack
Sep 25 09:28:25 sisdns6 dnsmasq-dhcp[8850]: IPv6 router advertisement enabled
Sep 25 09:28:25 sisdns6 dnsmasq-dhcp[8850]: stateless DHCPv6 on
2001:918:ffcb:199::10
Sep 25 09:28:25 sisdns6 dnsmasq-dhcp[8850]: SLAAC on
2001:918:ffcb:199:: prefix valid 1d


Requests come in, but addresses are not assigned. "No addresses available".
Example for a windows client:
..
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 vendor class: 311
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 client provides
name: myhost.mydomain.net
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 DHCPSOLICIT(eth0)
00:01:00:01:17:e2:05:13:d4:be:d9:23:32:c2
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 requested
options: 24:domain-search, 23:dns-server, 17:vendor-opts,
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 requested options: 39:FQDN
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 tags: eth0
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 sent size: 14
option:  1 client-id  00:01:00:01:17:e2:05:13:d4:be:d9:23:32:c2
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 sent size: 14
option:  2 server-id  00:01:00:01:17:f2:f6:90:00:50:56:83:3a:d4
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 sent size: 40
option:  3 ia-na  IAID=265600729 T1=0 T2=0
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 nest size: 24
option: 13 status  2 No addresses available
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 sent size: 16
option: 23 dns-server  2001:918:ffcb:199:193d:a91a:88fe:8c27
Sep 25 09:31:56 sisdns6 dnsmasq-dhcp[8850]: 13135453 sent size: 15
option: 39 FQDN  myhost

..
.. Logs from a ubuntu 12.04 client: request
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 available DHCP
range: 2001:918:ffcb:199::10 -- 2001:918:ffcb:199::20
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 DHCPSOLICIT(eth0)
00:01:00:01:00:50:10:5a:de:08
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 requested options:
24:domain-search, 39:FQDN, 23:dns-server,
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 requested options:
31:sntp-server
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 tags: eth0
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 sent size: 10
option:  1 client-id  00:01:00:01:00:50:10:5a:de:08
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 sent size: 14
option:  2 server-id  00:01:00:01:17:f2:f6:90:00:50:56:83:3a:d4
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 sent size: 40
option:  3 ia-na  IAID=1451433281 T1=0 T2=0
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 nest size: 24
option: 13 status  2 No addresses available
Sep 25 09:56:03 sisdns6 dnsmasq-dhcp[8850]: 3080805 sent size: 16
option: 23 dns-server  2001:918:ffcb:199:193d:a91a:88fe:8c27
Sep 25 09:56:05 sisdns6 dnsmasq-dhcp[8850]: 3080805 available DHCP
range: 2001:918:ffcb:199::10 -- 2001:918:ffcb:199::20
Sep 25 09:56:05 sisdns6 dnsmasq-dhcp[8850]: 3080805 DHCPSOLICIT(eth0)
00:01:00:01:00:50:10:5a:de:08
Sep 25 09:56:05 sisdns6 dnsmasq-dhcp[8850]: 3080805 requested options:
24:domain-search, 39:FQDN, 23:dns-server,
Sep 25 09:56:05 sisdns6 dnsmasq-dhcp[8850]: 3080805 requested options:
31:sntp-server
Sep 25 09:56:05 sisdns6 dnsmasq-dhcp[8850]: 3080805 tags: eth0

Sniffing the Ubuntu client request on the wire:
10:02:02.036555 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:02.040024 IP6 fe80::250:56ff:fe83:3ad4 > ff02::1:ff13:c87c:
ICMP6, neighbor solicitation, who has fe80::dde1:2ad5:6f13:c87c,
length 32
10:02:02.041424 IP6 fe80::dde1:2ad5:6f13:c87c > ff02::1:ff83:3ad4:
ICMP6, neighbor solicitation, who has fe80::250:56ff:fe83:3ad4, length
32
10:02:02.041440 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:02.041451 IP6 fe80::250:56ff:fe83:3ad4 >
fe80::dde1:2ad5:6f13:c87c: ICMP6, neighbor advertisement, tgt is
fe80::250:56ff:fe83:3ad4, length 32
10:02:02.041965 IP6 fe80::dde1:2ad5:6f13:c87c >
fe80::250:56ff:fe83:3ad4: ICMP6, neighbor advertisement, tgt is
fe80::dde1:2ad5:6f13:c87c, length 32
10:02:02.672228 IP6 :: > ff02::1:ff83:1d41: ICMP6, neighbor
solicitation, who has fe80::250:56ff:fe83:1d41, length 24
10:02:03.041871 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.043013 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:03.044028 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.044337 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:03.045383 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.045686 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:03.046698 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.046998 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:03.048616 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.048925 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:03.049672 IP6 fe80::dde1:2ad5:6f13:c87c.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.049975 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::dde1:2ad5:6f13:c87c.dhcpv6-client: dhcp6 advertise
10:02:03.772838 IP6 fe80::250:56ff:fe83:1d41.mdns > ff02::fb.mdns: 0
PTR (QM)? _sane-port._tcp.local. (39)
10:02:03.886696 IP6 fe80::250:56ff:fe83:1d41.dhcpv6-client >
ff02::1:2.dhcpv6-server: dhcp6 solicit
10:02:03.887526 IP6 fe80::250:56ff:fe83:3ad4 > ff02::1:ff83:1d41:
ICMP6, neighbor solicitation, who has fe80::250:56ff:fe83:1d41, length
32
10:02:03.888419 IP6 fe80::250:56ff:fe83:1d41 >
fe80::250:56ff:fe83:3ad4: ICMP6, neighbor advertisement, tgt is
fe80::250:56ff:fe83:1d41, length 32
10:02:03.888435 IP6 fe80::250:56ff:fe83:3ad4.dhcpv6-server >
fe80::250:56ff:fe83:1d41.dhcpv6-client: dhcp6 advertise
10:02:03.960064 IP6 fe80::250:56ff:fe83:1d41.mdns > ff02::fb.mdns: 0
[4q] [7n] ANY (QM)? sisubuntu12._udisks-ssh._tcp.local. ANY (QM)?
sisubuntu12.local. ANY (QM)?
1.4.d.1.3.8.e.f.f.f.6.5.0.5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa.
ANY (QM)? sisubuntu12 [00:50:56:83:1d:41]._workstation._tcp.local.
(330)
10:02:04.024909 IP6 fe80::250:56ff:fe83:1d41.mdns > ff02::fb.mdns: 0*-
[0q] 4/0/0 PTR _udisks-ssh._tcp.local., PTR sisubuntu12
[00:50:56:83:1d:41]._workstation._tcp.local., PTR
_workstation._tcp.local., PTR sisubuntu12._udisks-ssh._tcp.local.
(170)

Thanks in advance,

Sean



More information about the Dnsmasq-discuss mailing list