[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhclient renewal



Camaleón wrote:
On Sat, 07 Jan 2012 12:22:55 -0600, hvw59601 wrote:

hvw59601 wrote:
Camaleón wrote:
On Sat, 07 Jan 2012 10:19:58 -0600, hvw59601 wrote:

The 2wire router from ISP Telmex Infinitum (Mexico) went on the blink
so they gave a new one. It's a Thomson TG585V8.
Hey, we've got a bunch of TG585v7 (for ISDN lines) :-)

One thing that I noticed is that the external IP now changes about
every hour or so, when the internet goes offline and after a minute
or so comes online again.
External (routeable) or internal (local network) IP?
External IP

Mmm, since when "192.168.1.x" is an external IP? :-)


No, that is internal. My external IP is changed every hour or so:

Jan 7 09:18:41 HDBB ddclient[1730]: SUCCESS: updating esquipulas-index.dyndns.org: good: IP address set to 189.188.156.182 Jan 7 09:44:10 HDBB ddclient[1730]: SUCCESS: updating esquipulas-index.dyndns.org: good: IP address set to 189.188.159.254 Jan 7 10:59:15 HDBB ddclient[1730]: SUCCESS: updating esquipulas-index.dyndns.org: good: IP address set to 187.136.115.174 Jan 7 11:54:28 HDBB ddclient[1730]: SUCCESS: updating esquipulas-index.dyndns.org: good: IP address set to 187.136.114.47

Since I got on around 8AM, it is now 1PM, 5 hours, 4 changes.



I see this:

DHCP Lease Time:    0 days, 23:59:49

but it is not configurable. And then I still see in syslog:


I take that back, it *is* configurable,

Sure it is, rembember that I'm seeing the same as you :-P

but 23 hours is fine with me, 1 minute is not.

Let me check my logs... okay, my dhcp client renews the lease every 9 hours although I also have a 24 hours setup in the router. Weird.

Change it to 12 hours maybe? Would I mess things up? I hate to talk to
Telmex because then you have to hide the fact that you are running
Linux and pretend you are Window$ :-(

Your dhcp server (the router) is configured right (it keeps the lease for almost one day), so maybe is your dhcp client which requests for a lease? Look at "/etc/dhcp/dhcpclient.conf" file and search for any "lease" stanza. If it is commented, edit accordingly to enable you can define there your client settings.


That's all commented out. Let me play with it. My feeling is that the short lease times for both devices have to do with the external IP changes.

Hugo


Reply to: