reset connection linksys router using script?

This is a discussion on reset connection linksys router using script? within the Linux Networking forums, part of the Linux Forums category; Hi all, Once every so often, my linksys router loses the internet connection, but fails to detect it: The internal ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-13-2004
Glenn
 
Posts: n/a
Default reset connection linksys router using script?

Hi all,

Once every so often, my linksys router loses the internet connection,
but fails to detect it:
The internal network still works.
Looking at the router status page, everything is reported as ok
but no traffic to/from internet is possible.

It can be solved by simply disconnecting and reconnecting using the
button on the router webpage. No power cycle is needed.

I suppose this behaviour is due to the internet ADSL-connection.
At another site, I have the same router but with cable internet. There,
the router never hangs, even after interchanging the routers as test.

I would like to have a script do the reconnection automatically:
every 5 minutes (cron) it would ping a external "always-on" site.
if the ping fails, the connection is to be reset.

the problem is I do not know how to translate the connection reset into
a script.

The source code behind the router status page disconnect button:

<input type=button value='Disconnect' onClick='pppoeAction
(this.form,2)'>

and

function pppoeAction(F,I){ F.pppoeAct.value = I; F.submit();}

any help is appreciated.
glenn
--------
router: BEFW11S4 v4 firmware 1.50.10 (=latest)
linux: debian 3.0
Reply With Quote
  #2 (permalink)  
Old 04-13-2004
Christoph Scheurer
 
Posts: n/a
Default Re: reset connection linksys router using script?

On Tue, 13 Apr 2004 08:44:28 GMT
Glenn <reply@inhe.re> wrote:

> Hi all,
>
> Once every so often, my linksys router loses the internet connection,
> but fails to detect it:
> The internal network still works.
> Looking at the router status page, everything is reported as ok
> but no traffic to/from internet is possible.
>
> It can be solved by simply disconnecting and reconnecting using the
> button on the router webpage. No power cycle is needed.
>

Check if you find something like "nailed up connection" or "persistent connection"
to turn on.

Greets

Chris
Reply With Quote
  #3 (permalink)  
Old 04-13-2004
P Gentry
 
Posts: n/a
Default Re: reset connection linksys router using script?

Glenn <reply@inhe.re> wrote in message news:<MPG.1ae5c872e50fd86798968b@news.telenet.be>. ..
> Hi all,
>
> Once every so often, my linksys router loses the internet connection,
> but fails to detect it:
> The internal network still works.
> Looking at the router status page, everything is reported as ok
> but no traffic to/from internet is possible.
>
> It can be solved by simply disconnecting and reconnecting using the
> button on the router webpage. No power cycle is needed.
>
> I suppose this behaviour is due to the internet ADSL-connection.
> At another site, I have the same router but with cable internet. There,
> the router never hangs, even after interchanging the routers as test.
>
> I would like to have a script do the reconnection automatically:
> every 5 minutes (cron) it would ping a external "always-on" site.
> if the ping fails, the connection is to be reset.
>
> the problem is I do not know how to translate the connection reset into
> a script.
>
> The source code behind the router status page disconnect button:
>
> <input type=button value='Disconnect' onClick='pppoeAction
> (this.form,2)'>
>
> and
>
> function pppoeAction(F,I){ F.pppoeAct.value = I; F.submit();}
>
> any help is appreciated.
> glenn
> --------
> router: BEFW11S4 v4 firmware 1.50.10 (=latest)
> linux: debian 3.0


Have you tried ifconfig down followed by ifconfig up? Should
"recycle" your interfaces through the boot sequence. Easier to script
but has the same "problem" -- ie., interrupted connection via cron.
Maybe echo a warning/opt out before the recycle is started?

The PPPoE client resides on the router? Connecting via ethernet port?
Tried a wire trace with Ethereal near "drop" time? Does it reveal
any pre-drop traffic that would indicate a _network_ problem?

You may have seen this or similar:
http://www.dslreports.com/forum/rema...9628~mode=flat

Googling:
linksys BEFW11S4 v4
returned 1100+ hits with only a few sales pages seen.

Sounds like this router does have its problems, but I would double
check for network problems at/from your provider -- many are
oversubscribing in an attempt to make some profits in this business
climate. Some have been accused of "auto-dropping" connections but
that doesn't sound like good business at all. But ...

hth,
prg
email above disabled
Reply With Quote
  #4 (permalink)  
Old 04-14-2004
Glenn
 
Posts: n/a
Default Re: reset connection linksys router using script?

In article <20040413124948.2eef11cb.cyberfarm@rebmatt.ch>,
cyberfarm@rebmatt.ch says...
8<
> >

> Check if you find something like "nailed up connection" or "persistent connection"
> to turn on.
>
> Greets
>
> Chris
>

there is an "keep-alive" option. But this does not work since the router
does not seem to detect the internet connection is out.

thanks for replying
glenn
Reply With Quote
  #5 (permalink)  
Old 04-15-2004
Glenn
 
Posts: n/a
Default Re: reset connection linksys router using script?

In article <facb01db.0404130858.6047d1da@posting.google.com >, rdgentry1
@cablelynx.com says...
8<
> Have you tried ifconfig down followed by ifconfig up? Should
> "recycle" your interfaces through the boot sequence. Easier to script
> but has the same "problem" -- ie., interrupted connection via cron.
> Maybe echo a warning/opt out before the recycle is started?

Unless I'm mistaken, ifconfig down/up would power down/up the adapter
card in the linux machine. As the router is a seperate box from the
linux machine, this would only reset the network connection between the
router and the linux pc. This connection is working: it is the internet
connection that's out.

the setup:
LAN WAN
linux pc <--1--> router <--1--> ADSL Modem <--2--> internet ISP

cables 1 = UTP cat5
cables 2 = phone cable -rj45

the router has four switched ports plus a wireless port on the LAN side.
two other pc's are connected by cable to it and one laptop goes
wireless.
All these machines can communicate amongst themselves but not to the
internet if the problem occurs.

>
> The PPPoE client resides on the router? Connecting via ethernet port?

the PPPoE client resides in the firmware of the router and is totally
seperate from the linux.
the linux does not have anything to do with making the internet
connection. It just see a regular lan connection.

> Tried a wire trace with Ethereal near "drop" time? Does it reveal
> any pre-drop traffic that would indicate a _network_ problem?

I'll look into ethereal. As one of the pc (rather the user) downloads
moives and stuff, it's very possible the router has too many
simultaneaous connections and then decides to go for a coffee.

The purpose of that linux script would be to shorten the coffee break to
a few minutes :)

>
> You may have seen this or similar:
> http://www.dslreports.com/forum/rema...9628~mode=flat

I'll check that out too.

thanks for replying
glenn
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0