LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dnsmasq force release/renew of dhcp clients, how? (https://www.linuxquestions.org/questions/linux-newbie-8/dnsmasq-force-release-renew-of-dhcp-clients-how-933535/)

srinivascoolguy 03-08-2012 11:49 PM

dnsmasq force release/renew of dhcp clients, how?
 
Requirement:
I want to force release/renew of dhcp clients(linux) from dnsmasq server. Is there any way to do this.

i would be thankful for suggestions/solutions


SKODA

allend 03-09-2012 12:31 AM

The brutal approach is to stop dnsmasq on the server, then remove the leases you want released/renewed from the dnsmasq.leases file. Restart dnsmasq on the server.
When clients reconnect they will get updated leases as configured in dnsmasq.conf.

srinivascoolguy 03-09-2012 03:09 AM

Thanks allend,
My requirement is dnsmasq should force the clients to request for IP.

Additional Info:
I have a router connected to LINUX PC and got x.x.x.230 IP.
I chabged the DHCPPool range in router, start is x.x.x.2 and end is x.x.x.100.
In this case i wanted to renew the LINUX box IP automatically(with out release/renew in LINUX box manually).

allend 03-09-2012 05:51 AM

Que?
The client has requested and been granted a lease with a timeout. It will not seek to renew the lease until the timeout expires or it is forced to renegotiate the lease.

srinivascoolguy 03-09-2012 06:19 AM

Thank you very much allend...


All times are GMT -5. The time now is 03:47 AM.