WDS WAtchdog

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


Joined: 25 Sep 2009
Posts: 594

PostPosted: Sun Jan 01, 2012 7:52    Post subject: WDS WAtchdog Reply with quote
Alright so i have Linksys E3000 which is my main router and 2 Netgear WNDR3300in WDS which are working perfectly now. I enabled WDS watchdog on both netgear and set it to ping "192.168.1.1" which is the E3000's IP address, so it should reboot if it looses connection.

I have questions which i'm not to sure about.

1.) Should i enable WDS watchdog on the Main Router as well and have it ping one or both netgear?

A few times i was forced to reboot the main router just so the other one would connect which is why i'm thinking its a good idea to ping the netgear's from the main.

2.) The interval is set to 1000 seconds, does that mean the router will reboot every 1000 seconds if it can't ping the main router?
Sponsor
jebise101
DD-WRT Guru


Joined: 25 Sep 2009
Posts: 594

PostPosted: Sun Jan 01, 2012 18:28    Post subject: Reply with quote
I was able to figure out the answer to number 2 which is, it pings every 1000 seconds and if no connection it reboots itself.

Question 1 still applies, and i'm not to sure if the Main need watchdog enabled or just scheduled to reboot every x day.

Did a few more test and if one of the netgear are not not connected via WDS the main router still shows a percentage in signal strength and i think this is why the connection is not established until the main router is rebooted.
met_net
DD-WRT Novice


Joined: 18 Oct 2011
Posts: 12

PostPosted: Tue Jan 03, 2012 3:33    Post subject: Reply with quote
Like you, I too have several WNDR3300 routers; three of them are connected in repeater bridge mode to the main router using the wl0 radio (5 GHz - N only). I prefer to not reboot using the WDS watchdog. Instead, I have a startup script like the one below on the three repeater bridges to take down wl0 and bring it up again if they are unable to ping the main router. I find this is sufficient to keep the routers "talking" to each other.

Code:
#!/bin/sh
while : ; do
    count=`ping -c3 192.168.1.1 2>/dev/null | awk '/packets received/ {print $4}'`
   if [ $count -eq 0 ]; then
   wl -i eth2 down ; wl -i eth2 up
        else
        echo "success" >/dev/null
        fi
    sleep 600
done


Regarding your first question, I do not reboot the routers periodically. Their uptimes range from 31-48 days. There's no noticeable decrease in performance, as measured by occasionally using speedtest, and streaming HD video daily.

Truth be told, I don't know if the routers have ever lost connectivity "spontaneously". But I know the script works because I have intentionally unplugged the main router to test the script.

jebise101 wrote:
I was able to figure out the answer to number 2 which is, it pings every 1000 seconds and if no connection it reboots itself.

Question 1 still applies, and i'm not to sure if the Main need watchdog enabled or just scheduled to reboot every x day.

Did a few more test and if one of the netgear are not not connected via WDS the main router still shows a percentage in signal strength and i think this is why the connection is not established until the main router is rebooted.
jebise101
DD-WRT Guru


Joined: 25 Sep 2009
Posts: 594

PostPosted: Tue Jan 03, 2012 4:28    Post subject: Reply with quote
Thanks this will actually help. It seems i will be returning the E3000 so will having to use Client Bridge rather then WDS on the 3300's because i will keep the WNDR3700. I don't really care if 3300's reboot or not as long as they keep the connection alive.

Your script will help if watchdog does not work in Client Bridge mode. This will be of great use on the main router as well, as i would hate to bring down the entire network because one of the 3300's stopped taking. The 5GHz band only has other routers connected to it so just restart wl0 mean no one else gets disconnected.Laughing

Yes i agree the 3300's are very solid, mine where setup in WDS until i decided to upgrade and went down maybe twice in the entire year.
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1848
Location: Canada

PostPosted: Sat Oct 06, 2018 5:49    Post subject: Reply with quote
I was initially using WDS Watchdog but loosing connection shouldn't reboot the router for a longer startup. So I was searching for a solution to restart the WDS Radio and came to this post and help me come up with my solution to share. I tested this code on a WDS Network with three E3000s using K3.10 Build 35531.

<KONG> posted these commands...
eth1 radio off command "startservice radio_off_0 -f"
eth1 radio on command "startservice radio_on_0 -f"
eth2 radio off command "startservice radio_off_1 -f"
eth2 radio on command "startservice radio_on_1 -f"

Code:

#!/bin/sh
# ---CHECK WDS Radio---
RET=`ping -c 3 192.168.1.1 2> /dev/null | awk '/packets received/ {print $4}'`
sleep 2
if [ $RET -eq 0 ]; then
 startservice radio_off_1 -f 2> /dev/null
 startservice radio_on_1 -f 2> /dev/null
fi
exit 0


Since I'm not using a USB Drive I have this script created from Startup....

Code:

# --StartUp Script---
# DONT USE GUI WDS WatchDog it Restarts Router
# Use Script Below in Cron to just Resart WDS 5Ghz Radio
#
stopservice cron
echo -e "#!/bin/sh" > /tmp/ping-test.sh
echo "# ---CHECK WDS Radio---" >> /tmp/ping-test.sh
echo "RET=\`ping -c 3 192.168.1.1 2> /dev/null | awk '/packets received/ {print \$4}'\`" >> /tmp/ping-test.sh
echo "sleep 2" >> /tmp/ping-test.sh
echo "if [ \$RET -eq 0 ]; then" >> /tmp/ping-test.sh
echo " startservice radio_off_1 -f 2> /dev/null" >> /tmp/ping-test.sh
echo " startservice radio_on_1 -f 2> /dev/null" >> /tmp/ping-test.sh
echo "fi" >> /tmp/ping-test.sh
echo "exit 0" >> /tmp/ping-test.sh
chmod 755 /tmp/ping-test.sh
startservice cron


I run script in Cron Job every 5min...

Code:

*/5 * * * * root /tmp/ping-test.sh

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
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