LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-14-2009, 05:37 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Tell DHCP to not rebind its old lease.


DHCP automatically wants to rebind an old lease which, after switching mac addresses, causes it to fail.
Code:
net.eth0           |dhcpcd: version 5.0.6 starting
net.eth0           |dhcpcd: eth0: rebinding lease of XXX.XXX.XXX.XXX
net.eth0           |dhcpcd: eth0: broadcasting for a lease
net.eth0           |dhcpcd: timed out                                     [ !! ]
net.eth0           |* ERROR: net.eth0 failed to start
If I do this two or three times it eventually gets a NAK fail and then broadcasts for a new lease (at which point it gets and new IP address and starts working). Is there a way to make it skip that step altogether and try to get a brand new IP address from the beginning?


edit -- FYI I'm pretty sure the old lease is stored in a file somewhere, it might be sufficient to simple delete the file but I don't know where it's located.

Last edited by 1veedo; 12-14-2009 at 06:05 PM.
 
Old 12-14-2009, 07:05 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
In my OpenSuse it is /var/lib/dhcpcd
 
1 members found this post helpful.
Old 12-15-2009, 05:34 PM   #3
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Yep, removing the file in that directory works. Thanks.
 
Old 06-20-2010, 06:30 PM   #4
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Another way to prevent dhcpcd from renewing its old leases, in gentoo, is USE=-zeroconf.
 
  


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
Using expired DHCP lease phyzazz Linux - Newbie 1 06-05-2008 02:34 PM
DHCP lease same IP prashanlk Linux - Networking 2 01-31-2008 03:22 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Wireless doesn't get DHCP lease novice_iii Mandriva 1 04-17-2006 07:55 AM
Cannot obtain DHCP lease TroelsSmit Linux - Newbie 24 06-18-2005 03:32 AM


All times are GMT -5. The time now is 07:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration