LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-23-2008, 03:51 PM   #1
cknowles
LQ Newbie
 
Registered: Dec 2008
Distribution: suse 10.2
Posts: 1

Rep: Reputation: 0
Router log shows linux machine getting a new lease same ip every 20 minutes


My linux machine running suse 10.2 seems to be requesting a new ip lease every 20 minutes - it gets the same ip address every time but this seems to not be quite right as neither one of my 3 other XP & Vista machines do this & my router log is filling up daily. Do I need to change a setting somewhere???
 
Old 12-24-2008, 10:42 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by cknowles View Post
My linux machine running suse 10.2 seems to be requesting a new ip lease every 20 minutes - it gets the same ip address every time but this seems to not be quite right as neither one of my 3 other XP & Vista machines do this & my router log is filling up daily. Do I need to change a setting somewhere???
Assuming you're using a etehernet card how is configured ?
 
Old 12-24-2008, 11:18 AM   #3
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Is this a wireless or wired connection? Sometimes connections are lost when the machine goes into hibernation.
 
Old 12-24-2008, 03:12 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Yes (probably).

Whichever end gives out the leases (is that the router?) sets a max valid time for that lease. The first thing to do is to check that out; if it is set to 20 minutes, which is on the low side, but not completely unreasonable, the question may be why are your other machines seem to be ignoring it.

then you'll also need to look at the config for dhcp client.

something like

Code:
locate dhcp | grep -i conf
will give you a number of candidates; you'll just have to find the right one.

In there you'll probably see a stanza like
Code:
## Type:        integer
## Default:     ""
#
# Lease time to request ( -l option)
#
# Specifies (in seconds) the lease that is suggested to the server.
# The default is infinite. For a mobile computer you probably want to
# set this to a lower value.
#
DHCLIENT_LEASE_TIME=""
from there, either you have an explicit low time set, which you should increase or you don't have any timeout set and you should set an appropriate value.
 
  


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
LXer: Turn Your Linux Machine into an Application Server in 10 Minutes LXer Syndicated Linux News 0 12-10-2008 06:00 PM
dhcpdiscover not picking up lease from router NorthWind Linux - Wireless Networking 6 12-12-2007 01:30 PM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 01:25 AM
Router Crashing every 15 minutes djgenesis Linux - Networking 8 07-21-2005 04:31 AM
DHCP won't renew lease without reset of router! amped Linux - Networking 9 03-23-2004 10:37 PM


All times are GMT -5. The time now is 08:32 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