LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2012, 12:49 AM   #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, 01:31 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,429

Rep: Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348
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, 04: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, 06:51 AM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,429

Rep: Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348
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, 07:19 AM   #5
srinivascoolguy
LQ Newbie
 
Registered: Jan 2012
Posts: 6

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:44 AM
how to release/renew dhcp address aleangelico SUSE / openSUSE 2 09-09-2008 08:19 PM
Release and Renew DHCP abridge Linux - Newbie 4 11-11-2006 09:43 PM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 06:09 AM
dhcp release and renew Ratclaws Linux - Networking 1 10-12-2001 02:15 PM


All times are GMT -5. The time now is 11:56 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration