Networking Forums

Networking Forums > Computer Networking > Linux Networking > reset connection linksys router using script?

Reply
Thread Tools Display Modes

reset connection linksys router using script?

 
 
Glenn
Guest
Posts: n/a

 
      04-13-2004, 08:44 AM
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
 
 
 
 
Christoph Scheurer
Guest
Posts: n/a

 
      04-13-2004, 10:49 AM
On Tue, 13 Apr 2004 08:44:28 GMT
Glenn <(E-Mail Removed)> 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
 
P Gentry
Guest
Posts: n/a

 
      04-13-2004, 04:58 PM
Glenn <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>. ..
> 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
 
Glenn
Guest
Posts: n/a

 
      04-14-2004, 04:54 PM
In article <(E-Mail Removed)>,
(E-Mail Removed) 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
 
Glenn
Guest
Posts: n/a

 
      04-15-2004, 07:38 AM
In article <(E-Mail Removed) >, 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
doing a hard reset on a linksys router zelnaga@gmail.com Wireless Internet 2 09-12-2006 09:52 PM
Linksys RV082 Router Reset.... sivam Linux Networking 0 01-20-2005 05:16 AM
Wireless Linksys Router Reset--What happened? Mordido Wireless Networks 1 10-08-2004 11:28 AM
reset button on linksys router broke off. Cant find ip it is set at . Yea Wireless Internet 5 10-05-2004 04:53 PM
Linksys Router Scheduled Reset Tony Wireless Internet 6 09-23-2004 08:15 PM



1 2 3 4 5 6 7 8 9 10 11