thanks man

i would lock it down but i dont know whats causing it, im fearful it would
just dump the link all together, which is fine if im on the network, but if
im off network (as i found out the hard way tonite) my remote access to the
shop drops and all the site routers ACLs limit access to the office IP. I
had to VPN into a contact services customer who is on our network and then
connect to our office so i could flip the port back on, this, btw is also
why i hate having to have static routes on our OSPF network,

On Sun, Apr 23, 2017 at 11:08 PM, Adam Moffett <[email protected]> wrote:

> 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?
>
>

Reply via email to