I have had a few times where my WAN speed is 100mbs and have had to set
to set the 1gb link back. Is there a way to force that and keep it that way as it states auto negotiation is enabled.Code:ethctl eth0 media-type 1000FD
I understand running it at startup but isn't the whole point auto neg is still enabled so at anytime it can flick. I want to rule that out I did try a different cable and it worked for sometime. Want to just rule out any other factors. I am sure there is a way in the SSH commandline to disable auto negotiation.If you want that command to "stick" you will need to run it as a startup script,
I understand running it at startup but isn't the whole point auto neg is still enabled so at anytime it can flick. I want to rule that out I did try a different cable and it worked for sometime. Want to just rule out any other factors. I am sure there is a way in the SSH commandline to disable auto negotiation.
The same bug happens on my AX86U from time to time. So I put this script onto jffs and arranged for it to be invoked periodically. It detects the wrong speed and sets it back again. AFAIK, auto-neg must remain enabled for 1000 to work.I have had a few times where my WAN speed is 100mbs and have had to set
to set the 1gb link back. Is there a way to force that and keep it that way as it states auto negotiation is enabled.Code:ethctl eth0 media-type 1000FD
#!/bin/sh
## Keep the Modem connection at full GigE speed.
## For some reason it periodically drops to 100mbit instead.
if ethctl eth0 media-type | grep -q "Link is Up at Speed: 100M" ; then
sleep 2 ## wait, then check again to make sure it is stable
if ethctl eth0 media-type | grep -q "Link is Up at Speed: 100M" ; then
ethctl eth0 media-type 1000FD >/dev/null 2>&1
fi
fi
exit 0
Does this ever 'drop' your internet connection doing this periodically? Otherwise if not, I'd implement this handy script of yours. Thanks for providing it.The same bug happens on my AX86U from time to time. So I put this script onto jffs and arranged for it to be invoked periodically. It detects the wrong speed and sets it back again. AFAIK, auto-neg must remain enabled for 1000 to work.
I tried the script but I came back today to see my WAN defaulted back to 100mb/sThe same bug happens on my AX86U from time to time. So I put this script onto jffs and arranged for it to be invoked periodically. It detects the wrong speed and sets it back again. AFAIK, auto-neg must remain enabled for 1000 to work.
Don't forget to set any script you create as being executable:I created the script under /jffs/scripts/services-start
I made the changes with 'chmod a+rx /jffs/scripts/*'
I have done this, sorry I shouldn't of put the speech marks inDon't forget to set any script you create as being executable:
chmod a+rx /jffs/scripts/*
All the information provided is correct, I have this script on my router, AC86U. Make sure custom scripts is enabled in the router before doing this, under Administration - SystemCan we start from the top and try again? is there a different name or filepath I should use?
Yes. You have to arrange for the script to be run periodically, rather than just once at start-up.I created the script under /jffs/scripts/services-start
..
Am I missing something here? It's been a little while so just need a refresher on the scripts so this doesn't happen again lol.
#!/bin/sh
## Keep the Modem connection at full GigE speed.
## For some reason it periodically drops to 100mbit instead.
## Background task:
function monitor_eth0(){
while true ; do
if ethctl eth0 media-type | grep -q "Link is Up at Speed: 100M" ; then
sleep 2 ## wait, then check again to make sure it is stable
if ethctl eth0 media-type | grep -q "Link is Up at Speed: 100M" ; then
ethctl eth0 media-type 1000FD >/dev/null 2>&1
fi
fi
sleep 15 ## check again every 15 seconds
done
}
## launch the background task and then exit back to original caller
monitor_eth0 >/dev/null 2>&1 &
exit 0
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!