modemrouter
Occasional Visitor
All,
Hoping you can help with this.
I have a Hitron modem in bridge mode and to this I have connected 2 routers, one an Asus 87U and Asus5300. These have been working fine with no issue until yesterday when the 87U had the red internet light. I have reset the router, reset the modem itself, disconnected the 5300 to see if having the 2 connected was the issue, still the issue persists. I thought maybe the 87U was broken. I had a spare 87U and I tried that but still no internet in these router types. The message on both of them is: Your ISP's DHCP does not function correctly. I am using the regular Asus firmware, and it is currently on: .382_50702
I found something on this forum from a post over a year ago, but I am not sure how to implement it on the Asus 87U.
I searched on this forum and someone suggested this worked for them, but I am not sure how to implement this on my router:
"Use
service "restart_wan_if 0"
service "restart_wan_if 1"
the restart_wan_if is essentially a mini reboot of the wan....."
Someone else suggested this as well after the above is done, still I don't know how to add this to the router:
"
So in the spirit of Colin's and Johns helpful input, one could do this:
Create /jffs/scripts/wan_if_restart.sh and add this code to it:
Code:
#!/bin/sh
# restart primary WAN interface if not connected
check_wanup(){
ping -c 1 -W 1 www.google.com >/dev/null
if [ $? -eq 1 ];then
logger "restarting WAN interface $(nvram get wan_primary) via $0"
service "restart_wan_if $(nvram get wan_primary)" >/dev/null
fi
sleep 10
check_wanup
}
check_wanup
Then call it from /jffs/scripts/services-start:
Create or add to /jffs/scripts/services-start
Code:
#!/bin/sh
/jffs/scripts/wan_if_restart.sh # start the WAN checker
Make sure the files are working:
Code:
dos2unix /jffs/scripts/*
chmod a+rx /jffs/scripts/*
This runs continually in the background and checks every 10 seconds if the WAN interface is reported as up.
If not it restarts the interface."
Thank you!
Hoping you can help with this.
I have a Hitron modem in bridge mode and to this I have connected 2 routers, one an Asus 87U and Asus5300. These have been working fine with no issue until yesterday when the 87U had the red internet light. I have reset the router, reset the modem itself, disconnected the 5300 to see if having the 2 connected was the issue, still the issue persists. I thought maybe the 87U was broken. I had a spare 87U and I tried that but still no internet in these router types. The message on both of them is: Your ISP's DHCP does not function correctly. I am using the regular Asus firmware, and it is currently on: .382_50702
I found something on this forum from a post over a year ago, but I am not sure how to implement it on the Asus 87U.
I searched on this forum and someone suggested this worked for them, but I am not sure how to implement this on my router:
"Use
service "restart_wan_if 0"
service "restart_wan_if 1"
the restart_wan_if is essentially a mini reboot of the wan....."
Someone else suggested this as well after the above is done, still I don't know how to add this to the router:
"
So in the spirit of Colin's and Johns helpful input, one could do this:
Create /jffs/scripts/wan_if_restart.sh and add this code to it:
Code:
#!/bin/sh
# restart primary WAN interface if not connected
check_wanup(){
ping -c 1 -W 1 www.google.com >/dev/null
if [ $? -eq 1 ];then
logger "restarting WAN interface $(nvram get wan_primary) via $0"
service "restart_wan_if $(nvram get wan_primary)" >/dev/null
fi
sleep 10
check_wanup
}
check_wanup
Then call it from /jffs/scripts/services-start:
Create or add to /jffs/scripts/services-start
Code:
#!/bin/sh
/jffs/scripts/wan_if_restart.sh # start the WAN checker
Make sure the files are working:
Code:
dos2unix /jffs/scripts/*
chmod a+rx /jffs/scripts/*
This runs continually in the background and checks every 10 seconds if the WAN interface is reported as up.
If not it restarts the interface."
Thank you!