<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 21, 2020 at 3:01 AM Geert Stappers <<a href="mailto:stappers@stappers.nl">stappers@stappers.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Apr 20, 2020 at 10:27:11PM -0400, Jiawen Chen wrote:<br>
> Hi,<br>
> <br>
...<br>
> <br>
> <br>
> Finally, I'd like to use DHCPv6 and IPv6, using the host-id-only option.<br>
> <br>
> ```<br>
> # Enable IPv6 Router Advertisement.<br>
> enable-ra<br>
> <br>
> # Enable DHCPv6. Serve a range for each VLAN.<br>
> dhcp-range=::0:2,::0:500,constructor:br0,slaac<br>
<br>
note the interface<br>
<br>
<br>
> <br>
> # Assign 192.168.0.150 and [::0:1000] to my living room pc<br>
> dhcp-host=<livingroom_pc_MAC_redacted>,192.168.0.150,[::0:1000],livingroom.internal,12h<br>
> <br>
> # Assign 192.168.0.151 and [::0:1001] to my file server<br>
> dhcp-host=<fileserver_MAC_redacted>,192.168.0.151,[::0:1001],fileserver.internal,12h<br>
> ```<br>
> <br>
> Sadly, the host-id-only notation ([::0:1000]) does not appear permitted<br>
> when dnsmasq parses /etc/hosts.<br>
> <br>
> Any suggestions would be greatly appreciated!<br>
<br>
FWIW I suggest configuration syntax that allows<br>
<br>
dhcp-host=<livingroom_pc_MAC_redacted>,192.168.0.150,[interface(br0)::0:1000],livingroom.internal,12h<br><br></blockquote><div><br></div><div>Thanks for the suggestion - I will try it tonight. Is your suggested notation of \[interface(<interface>)<ipv6_addr>\] documented anywhere? I can't seem to find it on the man page after looking carefully. In particular, the string "interface(" does not appear.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Groeten<br>
Geert Stappers<br>
-- <br>
Silence is hard to parse<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div></div>