me andi
me andi
0 votes
I know i can add static lease in gui, by adding mac adress and ip adress

How do do it in cli, or which file to edit if i want to make reservation for new client without gui (examle massive reservations)?
Tuesday, March 02 2021, 04:49 PM
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, March 02 2021, 06:02 PM - #Permalink
    2 votes
    /etc/ethers then reload dnsmasq. Not so easy to force the IP change if they already have a lease. You would also have to stop dnsmasq, remove the relevant line in /var/lib/dnsmasq/dnsmasq.leases then restart dnsmasq. Then release and renew on your workstation. You cannot edit /var/lib/dnsmasq/ while dnsmasq is running as it flushes the cache to the file when it stops which would overwrite any changes you'd made.
    The reply is currently minimized Show
Your Reply