Koozali.org: home of the SME Server

Renewing IP Lease

Mark

Renewing IP Lease
« on: May 06, 2003, 06:20:46 AM »
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??

Any one else have this problem?

TIA

Terry

Re: Renewing IP Lease
« Reply #1 on: May 06, 2003, 07:10:57 AM »
You wouldn't want to restart dhcpd, that's what assigning IP's to your local clients.  What you would want to do is service network restart, that will restart both of the interfaces.  There probably is a way to just restart eth0, but I don't know what it is.

Terry

Bill Talcott

Re: Renewing IP Lease
« Reply #2 on: May 06, 2003, 05:44:36 PM »
Terry wrote:
>
> There probably is a way to just restart eth0,
> but I don't know what it is.

# /etc/sysconfig/network-scripts/ifdown eth0
# /etc/sysconfig/network-scripts/ifup eth0

I'm not sure if that actually renews the IP address, but it does take the interface down and bring it back up...

Mark

Re: Renewing IP Lease
« Reply #3 on: May 06, 2003, 08:09:07 PM »
Thanks, tried that but No, did not renew the IP lease.

Mark