Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Mark on May 08, 2003, 11:24:41 PM

Title: Renewing IP lease.
Post by: Mark on May 08, 2003, 11:24:41 PM
Running 5.1.2 (works just fine thank you) on a home network connected to a Toshiba PCX2500 cable modem. Every week or two the lease expires on the Toshiba modem and is reset automatically. However the SME still thinks its using the old IP and I can't connect to the internet unless I reboot. How do I get the SME to update its IP on eth0? Maybe add a cron job that every hour does a /etc/rc.d/init.d/dhcpd restart??

I've installed ddclient but hat doesn't seem to work since the IP on the SME doesn't change.

Any one else have this problem?

TIA
Title: Re: Renewing IP lease.
Post by: Bill Talcott on May 08, 2003, 11:53:18 PM
Mark wrote:
>
> the IP on the SME doesn't change.

How exactly do you have your network set up? Server-Only with a separate router? In Server-Gateway mode, the external NIC should be getting the public IP address...
Title: Re: Renewing IP lease.
Post by: Bill Talcott on May 08, 2003, 11:58:32 PM
http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0xc563ef70e827d711abdc0090277a778c,00.html

dhcpcd -n
Title: Re: Renewing IP lease.
Post by: Mark on May 09, 2003, 02:03:32 AM
Server is setup as Server Gateway.  The Toshiba cable modem I believe is a router.  The Toshiba cable modem has an external ip as does the SME.  Problem is the Toshiba cable modem's ip gets reset when the lease expires but the SME does not.  Looks like I can rest the SME ip with the dhcpd -n command but I would like a script that senses when the current ip is not functioning than execute the dhcpd -n command.

Thanks!
Title: Re: Renewing IP lease.
Post by: Bill Talcott on May 09, 2003, 08:37:55 PM
You may be able to modify http://www.hlinstruments.com/brian/stayalive/ to monitor the connection, and reset the IP when needed...
Title: 5.1.2 has been end-of-lifed (was Re: Renewing IP lease.)
Post by: Charlie Brady on May 10, 2003, 01:18:52 AM
Mark wrote:
>
> Running 5.1.2 (works just fine thank you)

Just so long as you realise that you have taken responsibility for security updates. Mitel is no longer supporting 5.1.2 or earlier, and I haven't noticed anyone else take up the slack.

Charlie
Title: Re: 5.1.2 has been end-of-lifed (was Re: Renewing IP lease.)
Post by: Mark on May 10, 2003, 10:08:07 AM
I suppose I should update, but don't think that would fix my imediate problem wit the ip lease.  Besides, I'm running 5.1.2 on a P90 with 48 meg. for home use and minimal services.   If I upgrade to 5.6, I'd have to buy new hardware.  But I do hear your message, thanks.
Title: Re: Renewing IP lease.
Post by: Steven on May 12, 2003, 10:58:45 AM
You are right Mark, Upgrading to 5.6 SME won't help, I have this problem aswell, but you think you have it bad... My ISP resets my IP address every 24 hours!
Please let me know if you find a way to fix this, I will continue to try find a fix and will let you know.

Thanks
Steven
Title: Re: Renewing IP lease.
Post by: Mark on May 12, 2003, 07:05:58 PM
I've modidfied the script Bill Talcott pointed to.  Seems to work , logging looks OK, just waiting for external IP to change this week sometime.  Will post when final test passes.