Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Howard Dunn 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
-
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
-
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
-
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
-
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
-
Nah, but I can work with you. Before we get started, lets first make sure that brining the interface down/up restores connectivity.
-
HI Nathan,
Sorry about the delay in replying. I will test that bringing the interface up restores connectivity.
Regards
Howard