[Dnsmasq-discuss] dhcp-host problem/questrions
Gene Czarcinski
gene at czarc.net
Wed Dec 19 11:06:43 GMT 2012
I need dsmasq's dhcp service to provide "nailed" (that is, fixed) IPv4
and IPv6 addresses to a NIC on a specific system. My reasons for
needing this are to have a single point where this is specified amd to
keep the general general usefullness while having a fixed address that
can be used fro routing.
For IPv4, I have been using something like:
dhcp-host=00:11:22:33:44:55,aloha,192.168.22.2,12h
and for IPv6, something like:
dhcp-host=alpha,[fd00:10:11:12::2:2],12h
THe dnsmasq man page implies that the following is possible but I have
not tried it:
dhcp-host=00:11:22:33:44:55,alpha,192.168.22.2,12h,[fd00:10:11:12::2:2],12h
or maybe it should be specified as (I am not clear about this and have
not tried it):
dhcp-host=00:11:22:33:44:55,alpha,192.168.22.2,[fd00:10:11:12::2:2],12h
OK for IPv4 with the MAC-address specification, this seems to work very
reliably and I have not had a problem. However for IPv6 where the only
thing used is the host's name, I have had a undesirable incident (cause
unknown) where the IPv6 got a valid IPv6 address assigned by DHCPv6 but
it wass not the "nailed" address while the IPv4 address continue to have
effect.
I believe that once alpha got the wrong IPv6 address, it continued to as
k for it and dnsmasq continued to provide it rather than the "nailed"
address.
Is there a way to for dnsmasq to hand out the "nailed" IPv6 address no
matter what alpha is asking for? If not a guarantee the at least
improve the chance that the right thing is done.
That last example above, is that a good way? Or, do I need to use the
dhcpv6.client-id?
Gene
More information about the Dnsmasq-discuss
mailing list