<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 27, 2021 at 2:10 AM john doe <<a href="mailto:johndoe65534@mail.com">johndoe65534@mail.com</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 6/27/2021 7:03 AM, Dominik wrote:<br>
> Hey Carl,<br>
><br>
> On Sat, 2021-06-26 at 19:16 -0500, Carl Karsten wrote:<br>
>> I'm looking for advice on haveing some boxes to have both dynamic and<br>
>> static IPs.<br>
><br>
> Why use a static IP at all? We have often enough seen people use static<br>
> addresses for the wrong reasons.<br>
><br>
<br>
As I understand it, the OP wants to use DHCP static leases.<br></blockquote><div><br></div><div>No. <br></div><div><br></div><div>I need this for when move put a box on someone else's network. <br></div><div>So I don't have any control over the dhcp server.</div><div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> Consider using only DHCP and<br>
><br>
> (a) use a hostname to access the device. In the end, memorizing some-<br>
> service.lan is more reliable than 192.168.1.149. You may think<br>
<br>
Better to use '.home.arpa' (RFC 8375).<br>
<br>
<br>
With dinamic and static DHCP leases you could do:<br>
<br>
dhcp-range=192.168.23.2,192.168.23.253<br>
<br>
dhcp-host=11:22:33:44:55::66,192.168.23.254<br>
<br>
dnsmask will dish out dinamically IPv4 addresses from 192.168.23.2 to<br>
192.168.23.253 and will asign 192.168.23.254 to host with MAC address<br>
"11:22:33:44:55:66'.<br>
<br>
<br>
Note that the IPs used in 'dhcp-host' don't need to be outside of the range.<br>
<br>
--<br>
John Doe<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="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Carl K<br></span></div></div></div>