LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Router log shows linux machine getting a new lease same ip every 20 minutes (https://www.linuxquestions.org/questions/linux-newbie-8/router-log-shows-linux-machine-getting-a-new-lease-same-ip-every-20-minutes-692574/)

cknowles 12-23-2008 03:51 PM

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???

ronlau9 12-24-2008 10:42 AM

Quote:

Originally Posted by cknowles (Post 3385421)
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 ?

pentode 12-24-2008 11:18 AM

Is this a wireless or wired connection? Sometimes connections are lost when the machine goes into hibernation.

salasi 12-24-2008 03:12 PM

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.


All times are GMT -5. The time now is 05:45 PM.