WDS/Connection Watchdog

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
shunt010
DD-WRT User


Joined: 17 Oct 2006
Posts: 147

PostPosted: Sun Nov 26, 2006 14:11    Post subject: WDS/Connection Watchdog Reply with quote
I'm trying to find out what exactly this feature does.

What I'm trying to do is set up an access point so if for some reason the ethernet goes down or it loses a WDS link then it stops sending it's SSID and waits until it starts working again.

The reason being that I don't want an access point sending a SSID and clients associating if it won't go anywhere, I'd rather it shuts down until it's all ready to go again, then it means clients will try another access point (which may not be so strong, but still has connection to the network rather than having become an "island")

Is this what I want?
Sponsor
botho
DD-WRT User


Joined: 07 Jun 2006
Posts: 95
Location: FRANCE

PostPosted: Sun Nov 26, 2006 15:19    Post subject: Reply with quote
this feature simply ping the "IP" entered every "interval in seconds" entered.
If the ping does not respond then the router is rebooted.

That's all
shunt010
DD-WRT User


Joined: 17 Oct 2006
Posts: 147

PostPosted: Sun Nov 26, 2006 17:21    Post subject: Reply with quote
Ah ok.

I've found the script in the router, which checks the server to see if it's available or not.

This seems to be just what I want.

However, I would like to make a startup script that tries to ping the server (copy of what's currently in the script), and doesn't start sending SSID beacons or allowing clients to associate until it's got a good ping.

Can anyone tell me what the commands are for turning the beacons on and off and stopping/starting to allow clients to associate?

Many thanks,

Sam
botho
DD-WRT User


Joined: 07 Jun 2006
Posts: 95
Location: FRANCE

PostPosted: Sun Nov 26, 2006 18:08    Post subject: Reply with quote
you can play around the "wl" command

"wl -h" for help
shunt010
DD-WRT User


Joined: 17 Oct 2006
Posts: 147

PostPosted: Sun Nov 26, 2006 18:53    Post subject: Reply with quote
Would this seem fair as a startup script then?

The theory being that it would turn the radio off, then enter a loop where it keeps trying to ping until it's got a good ping, then turns the radio on. Would it work as I expect?


WDS_WATCHDOG_IPS=$(nvram get wds_watchdog_ips)

wl radio off
for ip in $WDS_WATCHDOG_IPS
do
if ping -c 1 $ip > /tmp/null
then
echo "$ip ok"
else
keeptrying:
echo "$ip dropped one, retrying in 10..."
sleep 10
if ! ping -c 1 $ip > /tmp/null
then
goto keeptrying
fi
fi
done
wl radio on
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum