[Dnsmasq-discuss] client q: both static and dhcp

Carl Karsten carl at nextdayvideo.com
Sun Jun 27 07:17:20 UTC 2021


On Sun, Jun 27, 2021 at 2:10 AM john doe <johndoe65534 at mail.com> wrote:

> On 6/27/2021 7:03 AM, Dominik wrote:
> > Hey Carl,
> >
> > On Sat, 2021-06-26 at 19:16 -0500, Carl Karsten wrote:
> >> I'm looking for advice on haveing some boxes to have both dynamic and
> >> static IPs.
> >
> > Why use a static IP at all? We have often enough seen people use static
> > addresses for the wrong reasons.
> >
>
> As I understand it, the OP wants to use DHCP static leases.
>

No.

I need this for when move put a box on someone else's network.
So I don't have any control over the dhcp server.


> > Consider using only DHCP and
> >
> > (a) use a hostname to access the device. In the end, memorizing some-
> > service.lan is more reliable than 192.168.1.149. You may think
>
> Better to use '.home.arpa' (RFC 8375).
>
>
> With dinamic and static DHCP leases you could do:
>
> dhcp-range=192.168.23.2,192.168.23.253
>
> dhcp-host=11:22:33:44:55::66,192.168.23.254
>
> dnsmask will dish out dinamically IPv4 addresses from 192.168.23.2 to
> 192.168.23.253 and will asign 192.168.23.254 to host with MAC address
> "11:22:33:44:55:66'.
>
>
> Note that the IPs used in 'dhcp-host' don't need to be outside of the
> range.
>
> --
> John Doe
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>


-- 
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210627/c7be6a3f/attachment-0001.htm>


More information about the Dnsmasq-discuss mailing list