<div dir="ltr"><div dir="ltr"></div><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello!</div><div><br></div><div>I've stumbled upon a weird problem with IPv6 DHCP with DNSMasq.</div><div>I have a /48 IPv6 prefix. For example let it be AAAA:AAAA:AAAA::</div><div>The interface on which DNSMasq receives the DHCP/RA queries is, for example, tap0 (it's for a VPN server) with an assigned address of AAAA:AAAA:AAAA::1/48.<br></div><div>Now I wanted to create a dual DHCP/SLAAC configuration, but instead of making them both on the same prefix, I wanted to split them into subprefixes, i.e.:</div><div>all static DHCPv6 queries would be assigned on AAAA:AAAA:AAAA:1::</div><div>all dynamic DHCPv6 queries would be assigned on AAAA:AAAA:AAAA:2::</div><div>all SLAAC configuration would be done on AAAA:AAAA:AAAA:FF00::</div><div>Each on it's own /64 prefix.</div><div>I've tried to set it up, but it seems that each time I define it like this:</div><div>dhcp-range=tap0,
AAAA:AAAA:AAAA:FF00::,slaac,ra-stateless,ra-only,64 #for SLAAC<br></div><div>
dhcp-range=tap0,
AAAA:AAAA:AAAA:2::,64,1h #for dynamic DHCPv6<br></div><div>I just don't get a lease at all... Which is probably logical.<br></div><div>When I try to specify the actual prefix of 48 instead of 64, I get the error</div><div>"prefix length must be at least 64"</div><div>even for the dynamic DHCPv6 option.</div><div>I've worked around that by assigning IPs to the tap0 interface of</div><div>
AAAA:AAAA:AAAA:FF00::/64</div><div>
AAAA:AAAA:AAAA:1::/64</div><div>
AAAA:AAAA:AAAA:2::/64</div><div>but it really feels like a hack than a real solution.</div><div>Is there any cause why we can't set a prefix-len smaller than 64, to allow configuring different subprefixes differently?</div><div><br></div><div>-Evengard<br></div></div>
</div></div>
</div>