[oclug] Auto ifdown / ifup

Bob Lockie rjl at gw.lockie.ca
Thu Feb 1 01:07:02 EST 2001


> 
> 
> Your server may go down from the outside world if you don't initiate a
> connection from the inside peridically.
> 
> If you ping your router every minute, you may find that you stay up.
> 
>     /bin/ping -i 60 router > /dev/null &
> 
> This is because the cable modem stops listneing to the outside world
> unless it thinks you are using your computer.
> 
> Dan
> 
> On Thu, Feb 01, 2001 at 04:07:18PM -0000, Scott Connery wrote:
> > For some reason ... unbeknownst to me, Rogers @ Home likes going down 
> > temporarily o a regular basis (or at least the modem loses connection). When 
> > the net goes down my server (RedHat 7) hickups. Eventhough the IP stays the 
> > same, I cannot access the inetnet until I run "ifdown eth1" and "ifup eth1". 
> > It may be due to a requirment for DHCP authentication, I am not sure.
> > 
> > Is there a way to either:
> > -constantly ping the internet, and if it is down, to run a combination  
> > ifdown / ifup script, when the connection is restored,
> > OR
> > -to reset the timing for the leasing of the DHCP lease. (It may be that 
> > although my IP seems static, the lease still runns out).
> > OR
> > -any other ideas....?

Mine doesn't stop "listening".




More information about the OCLUG mailing list