I'm 100% sure a script could do that.
:global interfacestats
:global int "ether2"
:set interfacestats value=[/interface ethernet monitor [find name=$int]
as-value]
:if (($interfacestats->"rate")!="1000Mbps") do={/interface ethernet
disable [find name=$int]; :delay 3; /interface ethernet enable [find
name=$int]}
That took me a strangely long time to figure out how to do because
Mikrotik scripts are friggin weird. But there it is. You could
schedule that every xx minutes if you wanted.
:delay 3; might not be necessary. I'm not sure.
On the other hand, what if you just disallow all auto-negotiation
options except for 1000/F ?
------ Original Message ------
From: "Steve Jones" <[email protected]>
To: "[email protected]" <[email protected]>
Sent: 4/23/2017 10:59:17 PM
Subject: [AFMUG] mikrotik port monitor script
we have a saf 11ghz primary link interconnecting our two upstream
locations, about once every 6 or 7 months the mikrotik renegotiates to
100mbps. disable/enable the port fixes it.
Ive never been able to reproduce it because it only happens once or
twice a year.
Is there a script i can run on the mikrotik that monitors that specific
port and flaps it if it is ever not running 1gbps?