[expert] dhcp lease info

2002-07-05 Thread Bruce Endries

I use a cable modem, and the cable company provides a dynamic 
IP address. I'd like to know a command that will tell me when the 
lease on my IP address is up. The computer uses a standard dhcp 
request when it starts, to get it's IP address.

Any help will be appreciated.






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] dhcp lease info

2002-07-05 Thread Michael Holt

On Fri, 5 Jul 2002, Bruce Endries uttered these words of wisdom:

I use a cable modem, and the cable company provides a dynamic 
IP address. I'd like to know a command that will tell me when the 
lease on my IP address is up. The computer uses a standard dhcp 
request when it starts, to get it's IP address.

Any help will be appreciated.

I think you would have to write some type of script to do that - maybe 
something that would pipe the output of ifconfig to a file then compare it 
and notify you of changes?  I know that www.dyndns.org has some tools that 
deal with having a changing ip (of course, that's what they do).  

I'm curious though, does your ip actually change when the lease is up?  I
have a router that I've been using for about two years with dsl and the
only time my ip actually changes (yes, it's dynamic also) is when there
has been some kind of down time from the either my end or the server side
(verizon).  Other than that my ip has remained the same throughtout.  
From what I understand, DHCP usually gives preferentual treatment to a mac
address which has already had a certain IP address.  

Mike

-- 
Michael Holt
Banning, CA(o_
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com 


  AOL for Dummies is kind of redundant, don't you think?




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] dhcp lease info

2002-07-05 Thread Sridhar Dhanapalan

On Fri, 5 Jul 2002 19:02:37 -0400, Bruce Endries [EMAIL PROTECTED] wrote:
 I use a cable modem, and the cable company provides a dynamic 
 IP address. I'd like to know a command that will tell me when the 
 lease on my IP address is up. The computer uses a standard dhcp 
 request when it starts, to get it's IP address.

I have a similar setup, but I just configured cron to run '/sbin/dhcpcd -d -n -h
username eth0' every 30 minutes. I've gone a couple of years like this with no
problems.

-- 
Sridhar Dhanapalan

Life does not end at 2.4.0. Think of
it more as a no more excuses release.
-- Linus Torvalds



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com