[Dnsmasq-discuss] client q: both static and dhcp
john doe
johndoe65534 at mail.com
Sun Jun 27 06:20:53 UTC 2021
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.
> 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
More information about the Dnsmasq-discuss
mailing list