Koozali.org: home of the SME Server

Disconnection from Modem

Howard Dunn

Disconnection from Modem
« on: September 25, 2003, 04:52:05 PM »
Hi,

I currently use NTL as my ISP (cable) and e-smith 5.6 as my server / gateway. The problem I have is that about every 3/4 days - my modem resets.. Perhaps getting a new IP address (I need to check that).

When this happens - the modem comes back up OK but I have to bounce my e-smith server in order for it to be able to access the internet.

Does anyone know if there is a way around this.?

Regards
Howard

Nathan Fowler

Re: Disconnection from Modem
« Reply #1 on: September 26, 2003, 07:23:30 AM »
Next time, instead of bouncing, try doing:

ifdown ethx
ifup ethx

Where "ethx" is the interface connected to your Cable Modem.

Let me know if that restores connectivity.

Thanks,
Nathan

Howard Dunn

Re: Disconnection from Modem
« Reply #2 on: September 26, 2003, 12:11:39 PM »
Thanks Nathan.

Is there anyway I can get e-smith to automatically check the connectivity and then run these commands if there is a problem..?

Thanks
Howard

Nathan Fowler

Re: Disconnection from Modem
« Reply #3 on: September 26, 2003, 06:44:36 PM »
You/we could create a script that would try to ping the second hop on your route, and if there was 100% packet loss, it would ifdown/ifup your interface.

Then, we could cron-job it to run every X minutes, where X is a number you are comfortable with.

Hope this helped,
Nathan

Howard

Re: Disconnection from Modem
« Reply #4 on: September 26, 2003, 10:14:32 PM »
Excellent.. Sounds like just what I'm looking for..

Being a newbie to e-smith / linux - is there a website with instructions for doing this type of thing?

Thanks again.
Howard

Nathan Fowler

Re: Disconnection from Modem
« Reply #5 on: September 26, 2003, 10:53:20 PM »
Nah, but I can work with you.  Before we get started, lets first make sure that brining the interface down/up restores connectivity.

Howard Dunn

Re: Disconnection from Modem
« Reply #6 on: October 01, 2003, 08:00:14 AM »
HI Nathan,

Sorry about the delay in replying. I will test that bringing the interface up restores connectivity.

Regards
Howard