On Sun, Jun 27, 2021 at 2:10 AM john doe <johndoe65...@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@lists.thekelleys.org.uk > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss > -- Carl K
_______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss