Community discussions

MikroTik App
 
Nexius
newbie
Topic Author
Posts: 45
Joined: Tue Mar 03, 2015 12:24 am

fiber link between rb5009 and crs318 ramdomly down

Fri Jan 17, 2025 1:11 pm

Hi all!

I have a fiber link between rb5009 and crs318.

Due to the fact that it's single mode (S-53LC20D), I had to disable auto-negotiation and set 1g Base X on both. Cause if it's auto-negotiation, I had more disconetions...

But, times to times, ramdomly, the crs318 goes offline, and than, I have to:

-disable sfp interface
-enable sfp interface

and than goes online...

Does anyone have the same behaviour?

If it's normal, can someone give me a hand and create a script that pings from rb5009 to crs318 and if fails disable / enable sfp interface...
 
jaclaz
Forum Guru
Forum Guru
Posts: 2083
Joined: Tue Oct 03, 2023 4:21 pm

Re: fiber link between rb5009 and crs318 ramdomly down

Fri Jan 17, 2025 8:58 pm

If it's normal, can someone give me a hand and create a script that pings from rb5009 to crs318 and if fails disable / enable sfp interface...
Personally I don't think it is normal, but if the crs318 has an IP address, you could use netwatch for the check.
https://help.mikrotik.com/docs/spaces/R ... 8/Netwatch

But it would be IMHO only a temporary workaround.

In the up script you can have "nothing" (or maybe an added log entry).
In the down script you can have *something like*:
/interface disable sfp1
delay 5s
/interface enable sfp1
How often is the "times to times"?
Does disabling/enabling interface "always" re-establish the connection?

The only issue I can see with such a simple netwatch script is that if the disabling/re-enabling of the interface fails to restore the connection or fails before the next run of netwatch the port will start "flapping" so the netwatch should be run not too often (but it also depends on how much delay to insert on the script and how long you can "bear" the loss of connectivity).
 
User avatar
panisk0
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Sun Mar 06, 2016 10:36 pm
Location: Cracow
Contact:

Re: fiber link between rb5009 and crs318 ramdomly down

Fri Jan 17, 2025 9:43 pm

try
/interface/ethernet set sfp-rate-select=low sfp-sfpplus1