Forums

me andi
me andi
Offline
Resolved
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)?
Attachments:
Tuesday, March 02 2021, 04:49 PM
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, March 02 2021, 06:02 PM - #Permalink
    Resolved
    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/dnsmasq.lease 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