<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default" style="font-size:12.8px">Maddes,</div><div class="gmail_default" style="font-size:12.8px"> This looks very similar to a question I asked a few days ago... <a href="http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011677.html" target="_blank">http://lists.<wbr>thekelleys.org.uk/pipermail/<wbr>dnsmasq-discuss/2017q3/011677.<wbr>html</a></div><div class="gmail_default" style="font-size:12.8px"><br></div><div class="gmail_default" style="font-size:12.8px">dnsmasq DHCPv6 server only seems to be issuing leases on the ULA prefix and not on the GUA prefix when both types of addresses are configured on an interface. If I remove the ULA from the network interface then leases are issued from the GUA range.</div><div class="gmail_default" style="font-size:12.8px"><br></div><div class="gmail_default" style="font-size:12.8px">I am awaiting a reply to my question.</div><div class="gmail_default" style="font-size:12.8px"><br></div><div class="gmail_default" style="font-size:12.8px">David</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 18, 2017 at 9:38 AM, M. Buecher <span dir="ltr"><<a href="mailto:maddes+dnsmasq@maddes.net" target="_blank">maddes+dnsmasq@maddes.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello dnsmasq fellows,<br>
Hello Simon,<br>
<br>
I want to assign additional static DHCPv6 global unicast addresses (GUA) to some machines (mainly servers).<br>
Yet I have failed to do so with dnsmasq.<br>
<br>
The GUA prefix [1] is advertised by my router "AVM FRITZ!Box 7490" [3].<br>
Its Router Advertisement (RA) has M-, O- and A-flag set. Priority is middle.<br>
And it is the standard gateway for Internet connections.<br>
<br>
dnsmasq 2.76 is running on a Raspberry with Raspbian 8 "Jessie" [4].<br>
It is the only DNSv4/v6 server in the LAN and serves the local domain.<br>
All other requests are forwarded by dnsmasq via IPv4 to the DNS relay of the router, this way those requests are resolved by the ISP's DNS servers.<br>
It also advertises the Unique Local Addresses (ULA) [2] for the LAN via RA and assigns addresses via DHCPv6 only.<br>
The host with dnsmasq (Raspberry) has a GUA via SLAAC by the router's RA.<br>
<br>
Test machine is Windows 10 with latest updates.<br>
It got its ULA via DHCPv6 from dnsmasq and has a GUA via SLAAC by the router's RA.<br>
Additionally a second GUA is present due to Windows' IPv6 privacy extensions for outgoing connections.<br>
*But* it doesn't have it's static GUA from dnsmasq!<br>
<br>
Am I missing something in my dnsmasq configuration (see below)?<br>
Or do I have to configure the clients in another way?<br>
Any other enhancements for my configuration?<br>
<br>
<br>
By the way:<br>
Does dnsmasq also send a RA for the second/GUA dhcp range? How can I avoid this?<br>
I would prefer to handle RA settings per dhcp-range via tags.<br>
<br>
<br>
Configuration:<br>
1. File /etc/default/dnsmasq (Debian specific)<br>
#DOMAIN_SUFFIX=`dnsdomainname`<br>
#DNSMASQ_OPTS="--conf-file=/et<wbr>c/dnsmasq.alt"<br>
ENABLED=1<br>
CONFIG_DIR=/etc/dnsmasq.d,.dpk<wbr>g-dist,.dpkg-old,.dpkg-new<br>
IGNORE_RESOLVCONF=yes<br>
<br>
2. dnsmasq configuration<br>
# IPv4 options: router, dns, ntp<br>
dhcp-option=tag:lan4,3,10.0.0.<wbr>254<br>
dhcp-option=tag:lan4,6,0.0.0.0<br>
dhcp-option=tag:lan4,42,10.0.0<wbr>.254<br>
<br>
# IPv6 options: dns, domain<br>
dhcp-option=option6:dns-server<wbr>,[fd00::]<br>
dhcp-option=tag:ula6,option6:d<wbr>omain-search,local.domain<br>
<br>
dhcp-authoritative<br>
domain-needed<br>
strict-order<br>
no-resolv<br>
localise-queries<br>
bogus-priv<br>
expand-hosts<br>
local-service<br>
domain=local.domain<br>
local=/local.domain/<br>
addn-hosts=/etc/hosts.static<br>
addn-hosts=/etc/hosts.block<br>
stop-dns-rebind<br>
rebind-localhost-ok<br>
dhcp-broadcast=tag:needs-broad<wbr>cast<br>
<br>
server=10.0.0.254<br>
<br>
### IPv4 range<br>
dhcp-range=set:lan4,10.0.0.100<wbr>,10.0.0.199,255.255.255.0,12h<br>
<br>
### IPv6 ranges<br>
dhcp-range=set:ula6,fd7a:d:e:f<wbr>::1:0,fd7a:d:e:f::1:ffff,64,12<wbr>h<br>
dhcp-range=set:gua6,2003:a:b:c<wbr>00::1:0,2003:a:b:c00::1:ffff,s<wbr>tatic,64,12h<br>
enable-ra<br>
<br>
dhcp-host=00:50:56:39:1d:3e,10<wbr>.0.0.50,[::32],test-machine<br>
<br>
<br>
Kind regards<br>
Maddes<br>
<br>
<br>
[1] Telekom native IPv6 Internet connection<br>
IPv6 prefix: 2003:a:b:c00::/56 (c|00 = 256 subnets possible)<br>
IPv6 adresses: 2003:a:x:y:1:2:3:4 (External IPv6 address from ISP subnet)<br>
<br>
[2] Unique Local Addresses<br>
ULA: fd7a:d:e:f::/64<br>
<br>
[3] Router AVM FRITZ!Box 7490<br>
FRITZ!OS: 06.83 (German)<br>
DHCPv6 for LAN: Off<br>
Standard-Gateway for Internet: On<br>
DNS via RA: Off (RFC 5006)<br>
RA: Enabled with M and O flag, SLAAC allowed (=A flag); DNS not advertised<br>
<a href="https://en.avm.de/service/fritzbox/fritzbox-7490/overview/" rel="noreferrer" target="_blank">https://en.avm.de/service/frit<wbr>zbox/fritzbox-7490/overview/</a><br>
<a href="https://en.avm.de/products/fritzbox/fritzbox-7490/" rel="noreferrer" target="_blank">https://en.avm.de/products/fri<wbr>tzbox/fritzbox-7490/</a><br>
<br>
[4] Raspberry Pi 2<br>
OS: Raspbian, Derivative of Debian 8 "Jessie", build from Raspberry Pi Foundation<br>
<a href="https://www.raspberrypi.org/products/raspberry-pi-2-model-b/" rel="noreferrer" target="_blank">https://www.raspberrypi.org/pr<wbr>oducts/raspberry-pi-2-model-b/</a><br>
<a href="https://www.raspberrypi.org/downloads/raspbian/" rel="noreferrer" target="_blank">https://www.raspberrypi.org/do<wbr>wnloads/raspbian/</a><br>
<a href="https://www.raspbian.org/" rel="noreferrer" target="_blank">https://www.raspbian.org/</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelle<wbr>ys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk<wbr>/mailman/listinfo/dnsmasq-disc<wbr>uss</a><br>
</blockquote></div><br></div>