[Dnsmasq-discuss] IPv6 host-id

Jiawen Chen jiawen at gmail.com
Tue Apr 21 14:47:35 BST 2020


On Tue, Apr 21, 2020 at 3:01 AM Geert Stappers <stappers at stappers.nl> wrote:

> On Mon, Apr 20, 2020 at 10:27:11PM -0400, Jiawen Chen wrote:
> > Hi,
> >
>      ...
> >
> >
> > Finally, I'd like to use DHCPv6 and IPv6, using the host-id-only option.
> >
> > ```
> > # Enable IPv6 Router Advertisement.
> > enable-ra
> >
> > # Enable DHCPv6. Serve a range for each VLAN.
> > dhcp-range=::0:2,::0:500,constructor:br0,slaac
>
> note the interface
>
>
> >
> > # Assign 192.168.0.150 and [::0:1000] to my living room pc
> >
> dhcp-host=<livingroom_pc_MAC_redacted>,192.168.0.150,[::0:1000],livingroom.internal,12h
> >
> > # Assign 192.168.0.151 and [::0:1001] to my file server
> >
> dhcp-host=<fileserver_MAC_redacted>,192.168.0.151,[::0:1001],fileserver.internal,12h
> > ```
> >
> > Sadly, the host-id-only notation ([::0:1000]) does not appear permitted
> > when dnsmasq parses /etc/hosts.
> >
> > Any suggestions would be greatly appreciated!
>
> FWIW  I  suggest configuration syntax that allows
>
>
>  dhcp-host=<livingroom_pc_MAC_redacted>,192.168.0.150,[interface(br0)::0:1000],livingroom.internal,12h
>
>
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.


>
> Groeten
> Geert Stappers
> --
> Silence is hard to parse
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200421/0879e8d9/attachment.html>


More information about the Dnsmasq-discuss mailing list