LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2012, 11:49 PM   #1
srinivascoolguy
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
Unhappy 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
 
Old 03-09-2012, 12:31 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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.
 
Old 03-09-2012, 03:09 AM   #3
srinivascoolguy
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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).
 
Old 03-09-2012, 05:51 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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.
 
1 members found this post helpful.
Old 03-09-2012, 06:19 AM   #5
srinivascoolguy
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you very much allend...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upnp and DHCP - DHPC connections don't renew their upnp settings (upnpd / dnsmasq) joke_dst Linux - Networking 0 05-20-2009 04:44 AM
how to release/renew dhcp address aleangelico SUSE / openSUSE 2 09-09-2008 07:19 PM
Release and Renew DHCP abridge Linux - Newbie 4 11-11-2006 08:43 PM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 05:09 AM
dhcp release and renew Ratclaws Linux - Networking 1 10-12-2001 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration